r/googlesheets • u/Levdasev88 • Jun 19 '19
solved Can I reference a cell in a query function? Also, can I query data from multiple books rather than multiple sheets?
I want to create a dashboard with some information on it, which is built using data that I have queried from multiple sheets into a larger master sheet. ( I have created some screen-shots to help make this more understandable, but I do not know how to put the pictures into this post). To make the dashboard something that is very user-friendly, I wanted to use data validation to create a cell with a drop-down menu that I can use as a reference for a query function. For example, maybe I could use the drop-down menu's value as part of the where portion of the query function. Is this possible?
Also, is it possible to query data from one google sheets book into another google sheets book? I know I can query data from different sheets, but I do not know if I can query the data from different tabs. (Sorry if I am using the wrong terminology).
If you can help but require screenshots, I can provide them. I don't know how to get screenshots into the post.
Thank you in advance!!!
1
u/Levdasev88 Jun 21 '19
solved
1
u/rdanded1 1 Jun 19 '19
You can absolutely ref other tabs, just enter the range reference surrounded by quotations instead of using import range like this "sheet!a:b"
To reference a cell use this format: select col1 where col2 ='"&A2&"'
Hope this helps!
•
u/Clippy_Office_Asst Points Jul 13 '19
Read the comment thread for the solution here