Import Range from spreadsheet but exclude rows with missing data

后端 未结 1 1171
北荒
北荒 2021-01-14 17:26

I have 2 spreadsheets (sheet1 + sheet2)

Sheet2 Pulls in data from Sheet1 using the IMPORTRANGE function which works fine, except that there are a few rows that have

相关标签:
1条回答
  • 2021-01-14 18:27

    The QUERY function provides this ability. The "IS NOT NULL" argument works with numbers, and "!=" is for Strings (anything that's not just numbers).

    =QUERY({IMPORTRANGE("YourKey","SheetName!A:B");
    IMPORTRANGE("YourKey,"SheetName!A:B");},
    "SELECT Col1, Col2 WHERE Col2 IS NOT NULL")
    

    Or

    =QUERY({IMPORTRANGE("YourKey","SheetName!A:B");
    IMPORTRANGE("YourKey,"SheetName!A:B");},
    "SELECT Col1, Col2 WHERE Col2 != ''")
    
    0 讨论(0)
提交回复
热议问题