Reference column based on multiple cell values in Google Query

拥有回忆 提交于 2019-12-08 12:53:08

问题


I'm trying to return a value in a column based on two cell references.

My current query is:

=QUERY(A:T,"select A WHERE P = '"&S200&"' AND Q = '"&T200&"'")

Column A is a number, P is a string, and Q is a number. S and T correspond to P and Q, respectively.

All it's returning is column headers. What am I doing wrong?


回答1:


Try this, Note the different quotes for the cell number reference.

=QUERY(A:T,"select A WHERE P = '"&S200&"' AND Q="&T200&"")


来源:https://stackoverflow.com/questions/46201053/reference-column-based-on-multiple-cell-values-in-google-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!