0

I am trying to use the Google Sheets QUERY function, and I have two sheets, and am trying to query a range in one sheet using a value from another sheet.

Here is the query:

=query(EntireLI, "Select * where D is not null and D CONTAINS "&C43&"", false)

I also tried LIKE instead of CONTAINS.

The error I am getting is:

Error: Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: 
       Discord

When I change "&C43&" to 'Discord', then the function works, but I want it to grab this value dynamically, rather than hardcoding it.

I do not understand why it is using the value of the cell as the name of the column.

The broken query:

enter image description here

The sheet I am querying:

enter image description here

1 Answer 1

0

use:

=QUERY(EntireLI, "where D is not null and D contains '"&C43&"'", 0)
Sign up to request clarification or add additional context in comments.

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.