How to use Column Value as header in Query in google sheet

zongshita

enter image description here

I was trying use query to show results as below. But I couldn't figure out how to use Column A (months) as a header.

I knew how to use Vlook or Filter function to generate same results. Since my data is huge, I prefer to use Query function to keep my data flexible. Thank you for helping.

https://docs.google.com/spreadsheets/d/1ljrMdM4m0YT35EP7HxY-Gdj9SrEv6DHoQw_qL8Z9c-Y/edit?usp=sharing

Yoyó

Something like this should work, needs tweaking with ordering though.

=query(Sheet1!A1:C71,"select B, sum(C) group by B pivot A")

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to get maximum of a column in google sheet that contains string header?

use Google Sheets QUERY to sum column where = x on a different sheet

How do you add an Arrayformula in column header in google sheet and adding predefined text to populate in google sheet?

How to use Countif function to count rows that has a specific value in either of column A or B in Google sheet?

How to check if column header exists and if not add header column - Google Sheet Apps Script

How to query Google Sheet text and number column in one statement

How to add an additional custom column with select * all in Google Sheet Query

How to fix "Query returns and empty value" error in google spread sheet

How to use query to filter data based on certain conditions in google sheet

How to get the last value of a column that is not blank and match it with a cell in a Google Sheet?

How to use sum if value has decimals values - google sheet

How to use PostgreSQL varchar column value in IN query

String manipulation on column in Google Sheet Query

google sheet : insert blank column in query output

google sheet query group by content of column

Adding sheet name as column to query in Google Sheets

google sheet formula to get convert two column table into JSON and use display value instead of cell value

Use date in column as column header in query result

How to use a column header to reference a cell in Google Apps Script Spreadsheet

Google Sheets - How to retrieve a value from a range in one sheet to use in a formula on another sheet?

How to use If statement to transfer a cell value from sheet1 to sheet 2 in Google Sheets?

Google Sheet Query outputting value into wrong row

How to use google Sheet as an database

To use AND and OR both together in google sheet query

Referencing a variable column value in a Google Sheet formula

How to use calculated column value to another column in the same SQL Query

How to automatically sorting continuously only if a certain value is set for a certain column in Google Apps Script/Google Sheet?

How to use column of strings to find that same string in another sheet, and paste a corresponding value from sheet 1 next to the found value?

Google sheet Query formula that use text from one column to match another column returning text from adjacent cell