I'm trying to have my query reference a cell, but I keep getting errors:
=query(Sheet1!A3:X2838,"Select I, H, Q, P, J, N, O, S Where (N>10) and (J>"""&K2&""") Order By Q Desc Limit 80")
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityI'm trying to have my query reference a cell, but I keep getting errors:
=query(Sheet1!A3:X2838,"Select I, H, Q, P, J, N, O, S Where (N>10) and (J>"""&K2&""") Order By Q Desc Limit 80")
Replace
J>"""&K2&"""
by
J>"&K2&"
The above because QUERY doesn't require a delimiter for numbers
It contains =query(Sheet1!A3:X2838,B2)
where the content of B2 is not a formula.
Replace the content of B2 by
="Select I, H, Q, P, J, N, O, S Where (N>10) and (J>"&K2&") Order By Q Desc Limit 80"