In a Google spreadsheet, I want to request data on another sheet, but the problem is that the sheet name is present in the cell. So, there is a way in QUERY to dynamically mention a sheet name. Basically I am trying to do something similar, but with a dynamic sheet name:
=QUERY('2012'!A2:F;"select C, sum(F) where A='December' group by C order by sum(F) desc")
I tried to do this, but get Parse Error:
=QUERY(INDIRECT("Overview!L5")!A2:F;"select C, sum(F) where A='December' group by C order by sum(F) desc")
In which Review! L5 is the cell with the sheet name for the request. I also tried to combine the quotes around INDIRECT, but that didn't work either.
I think itβs quite obvious what I'm trying to do from the query, that is, get the sum of the values ββin the cells, grouped by the values ββin other cells.
Haris source share