English 中文(简体)
IF 的 Google 工作表阵列错误, 无法在公式以下的行中找到任何东西
原标题:Google Sheets Array Error from IF can t have anything in rows below formula

< 坚固 > 解决了第一个问题,但另一个小问题 < /坚固 >

下面的代码固定了我的错误, 但我需要它返回“ 全部选择 ” 如果下载设定为100%, 并且是一个学生的名字 。

=IF(B31 = "All", IF(D31 = Master Data !AC1, FILTER({ Master Data !AC2:AC, Master Data !AF2:AF, Master Data !AH2:AH, Master Data !AI2:AI}, Master Data !AC2:AC <> "" ), IF(ISNUMBER(MATCH(D31, Master Data !AC2:AC, 0)), FILTER({ Master Data !AC2:AC, Master Data !AF2:AF, Master Data !AH2:AH, Master Data !AI2:AI}, Master Data !AC2:AC = D31 ), "Select a student name" ) ), IF(B31 = "<100%", FILTER({ Master Data !AC2:AC, Master Data !AF2:AF, Master Data !AH2:AH, Master Data !AI2:AI}, ( Master Data !AI2:AI < 1) * (NOT(ISBLANK( Master Data !AC2:AC))) ), "Invalid selection for B31" ) )

我在 Google 工作表中创建一个仪表板。 我有一个用于过滤列表的下列公式 。 除了 。 除了 。 B31 = “ lt; 100% ” 以外, 一切工作都正常 。 当 B31 = “ lt; 100% ” 和 D31 = master Data 时 。 AC1 只有当整个页面下的任何行中没有任何内容时, 它才会正确返回 。 我需要能够随着数据的变化而将结尾保持开放, 并且我需要能够添加这些新数据行, 而不必更改代码 。 本代码的每个其它部分都工作良好, 并返回列表, 即使下面的行里有东西, 只要它不在返回的值范围内 。 我尝试了如此多的工作间隔, 并且是这里的总的零点 。 帮助我理解为什么代码中只有这部分返回了这个错误, 但代码的其余部分不会受到下面有数据的行的影响 。 这可以被固定吗?

对不起,我不能分享表 因为它有学生信息。

=IF(
    B31 = "All",
    IF(
        D31 =  Master Data !AC1,
        FILTER(
            { Master Data !AC2:AC,  Master Data !AF2:AF,  Master Data !AH2:AH,  Master Data !AI2:AI},
             Master Data !AC2:AC <> ""
        ),
        IF(
            ISNUMBER(MATCH(D31,  Master Data !AC2:AC, 0)),
            FILTER(
                { Master Data !AC2:AC,  Master Data !AF2:AF,  Master Data !AH2:AH,  Master Data !AI2:AI},
                 Master Data !AC2:AC = D31
            ),
            "Select a student name"
        )
    ),
    IF(
        B31 = "<100%",
        IF(
            D31 =  Master Data !AC1,
            FILTER(
                { Master Data !AC2:AC,  Master Data !AF2:AF,  Master Data !AH2:AH,  Master Data !AI2:AI},
                 Master Data !AI2:AI < 1
            ),
            "Select  All  to filter by student name"
        ),
        "Invalid selection for B31"
    )
)

我尝试了多种方法来用相同的结果来修正代码并测试代码的该部分, 使用镜头和助手行帮助和显示不匹配的行。 即使是用于过滤 & lt; 100% 的最基本版本也造成了同样的问题 。

< a href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

问题回答

尝试 :

=LET(r, CHOOSECOLS( Master Data !AC2:AI,1,4,6,7), n, INDEX(r,,1), p, INDEX(r,,4),
 IFERROR(FILTER(r, IF(B31="All", n<>"", p<1), 
 IF(ISNUMBER(MATCH(D31, n, )), n=D31, n<>"")), "no data for this selection"))





相关问题
How to use year counter google app script?

I need an urgent help i have data as follows in a google sheet i need to add a year counter to the column d as follows using google apps script

Google Spreadsheet multiple column filter using OR

I have a Google Spreadsheet with 3 columns that are either blank or have a value. I want to get the count of the number of rows that has A and either B or C populated. If I were writing a SQL query ...

Run Google Apps Script on Google-Spreadsheet event?

If I create a Google apps script, can I hook it up to Google spreadsheet to run based on an event, or must I manually invoke it? I don t know if Google Sheets supports any events. For example: a ...

How do I insert a row in to a Google spreadsheet using c#

I ve seen; Accessing Google Spreadsheets with C# using Google Data API and http://code.google.com/apis/spreadsheets/data/2.0/developers_guide_dotnet.html#CreatingRows However i m still having ...

using Zend_Gdata_Spreadsheets for public spreadsheets?

I have this code which is working, to load a Google Spreadsheet and load some data from it. If the spreadsheet in question is public, how do i modify the code to not require a username/password? $key=...

Programatically updating a Google spreadsheet

I ve got a pre-existing Google spreadsheet. Each month I update this document. I ve got a template workseet in the spreadseet that I d like to clone and then update. I d prefer to clone the ...

热门标签