Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

In Microsoft Excel, in a pivot table, you can right click on the dates - while within the pivot table, on a date and select group (from the drop down menu) - then you can choose different groupings, week, month, year, etc.

Then, when in the pivot table field list, for a row or column you can choose the date by week, month, year, etc.

Anyone know if you can do this in Google Spreadsheets?

The Google site for spreadsheets only covered very basic instructions. I was going to ask there, but I found this site while searching and thought I would try here first.

share|improve this question

1 Answer 1

I don't, except I suspect you are out of luck for the time being at least. However, even in Excel I have often found it as, or even more, useful to perform such grouping in the base data rather than in the pivot table. For me the summary provided by the table is often a prelude to drilling down for further detail and rather than end up then with many different extracts I find it much easier to filter the source data, which I have already formatted to suit me.

On that basis a hack of sorts may serve for you. Assuming data as in D:E in the image, I added three columns with formulae:

  • A: =year(D2)
  • B: =month(D2)
  • C: =weeknum(D2)

To reduce the need for recalculation I usually then convert the results to values.

ColumnsA:C can then be included in the pivot table and, unlike Grouping, the components of the date can be split between rows and columns in the pivot table:

WA56780 example

share|improve this answer

Your Answer

 
discard

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.