QUERY Data from IMPORTRANGE not populating data

16 views
Skip to first unread message

Jay Bryant

unread,
Aug 12, 2024, 12:09:37 PM8/12/24
to Google Sheets Community
I am trying to import data from another sheet based on the date in B1. In the source sheet, column 4 is the date column and column 2 is the data I need to import. Here is the formula I'm using. I get the header for column 2, but no data is populating.

=QUERY({IMPORTRANGE("https://myURL","Project Entry Response!a:f")}," select Col2 where Col4 ='"&B1&"'")

Rani Urbis

unread,
Dec 13, 2024, 9:17:03 PM12/13/24
to Google Sheets Community
Try this: 

=QUERY(IMPORTRANGE("https://myURL","Project Entry Response!A:F"), "SELECT Col2 WHERE Col4 = DATE '"&TEXT(B1, "yyyy-mm-dd")&"'")
Reply all
Reply to author
Forward
0 new messages