I am trying to create a spreadsheet that can find the relevant records in an external data source. So let's say I have column A with a list of identity values. I want to create column B, which possibly shows the number of rows in the table with this value. Something like:
AB 758348 "=SELECT COUNT(*) FROM MYTABLE WHERE IDVALUE=$A$1" 173483 "=SELECT COUNT(*) FROM MYTABLE WHERE IDVALUE=$A$2"
... and so on. So, I thought that I would use a parameterized query (where IDVALUE =?), But this prompts me to enter the parameter value, and not use the value from the cell to the left. Is there any way to do this?
excel parameterized-query
Jay imerman
source share