I am trying to set up a pivot table using Query function in Google Spreadsheets, so that this can be used for various different reports.
Below is the sample data i have.
I already have this below Query function which helps me to pull the relevant columns and the sum of certain columns as well.
=QUERY(Data!$A$1:$Y$73, "Select A, SUM(B), SUM(C), SUM(G) Group by A Order by SUM(B) DESC ")
Giving the below output
But in the above i would like to make the "SUM" function a bit more dynamic. So instead of referencing to Column B,C and G, i would like the query to sum any columns that has "Q2" in its heading. is it possible to do that?
Please find the below link for the sample data.
Thanks in advance!!
Ramya