0

I'm using query and import range to get from another sheet. Example

=query(IMPORTRANGE("KEY","Form Responses 1!A:L"), "select * where J = '2020-02-01' ")

I want the where part of the query to be driven from a cell on the current sheet, which contains a date. Something like

=query(IMPORTRANGE("KEY","Form Responses 1!A:L"), "select * where J = A1")

How can I use the value from a cell in the current sheet to drive the import query where?

2 Answers 2

1

You can use it on cell reference. You have to set the a1 notaion between: '"& A1 &"'

See this post: QUERY syntax using cell reference

Sign up to request clarification or add additional context in comments.

Comments

1

try:

=QUERY(IMPORTRANGE("KEY", "Form Responses 1!A:L"), "where Col10 = "&DATEVALUE(A1))

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.