Search code examples
filtergoogle-sheetsgoogle-sheets-formulagoogle-sheets-queryimportrange

Google Sheets' IMPORTRANGE rows that only contain content


In Google Sheets, how to IMPORTRANGE rows that only contain content from another spreadsheet

like:

=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1cNtce7pkPlCF6YzpRoDeucSZq9iaiw6K8hILfQ3WHog/","Sheet1")

Solution

  • it could be like this:

    =QUERY(IMPORTRANGE("1cNtce7pkPlCF6YzpRoDeucSZq9iaiw6K8hILfQ3WHog", "Sheet1!A:D"), 
     "where Col1 is not null", 0)
    

    which translates as: import range A:D from another spreadsheet from tab called Sheet1 but only if column A is not empty