Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a set of data which is similar to the following:

Groceries     5.00
Groceries    14.75
Groceries     6.37
Dinner Out   43.50
Dinner Out   15.00

I'd like to be able to use this data to create some graphs, such that (in this case) I'd have two categories, and the graph displays the sum, namely Groceries -> 26.12, Dinner Out -> 58.50. etc etc.

Is this possible to do automatically, without me collapsing these rows into one sum per category?

share|improve this question
up vote 1 down vote accepted

In Excel you would use a Pivot Table and in Google Spreadsheets you would need to use a Gadget. I tried it with the "Table by Google" gadget and it was straightforward though, I've used pivot tables before so it was very familiar.

Here is a more complicated example using a gadget I couldn't find.

share|improve this answer
Great thanks - I found it under the table section of the gadgets – Noel M Aug 31 '10 at 21:21

In new Google Sheets a chart can be drawn from a pivot table, no gadget necessary:

WA6107 example

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.