Google Sheets: How to replace text in column header?

Guillaume Perrot picture Guillaume Perrot · Jan 16, 2013 · Viewed 52.6k times · Source

I have a query like this =QUERY(B2:C9; "select (C * 100 / B) - 100") in my Google Sheets. What is displayed as a column header is:

difference(quotient(product(100.0()))100.0()).

I want to put a human readable description there instead.

How can I achieve this?

Answer

AdamL picture AdamL · Jan 16, 2013

=QUERY(B2:C9;"select (C*100/B)-100 label (C*100/B)-100 'Value'")

https://developers.google.com/chart/interactive/docs/querylanguage#Label