Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

Is there a way in Excel to create a pivot table with multiple column totals?

Here's column names to demonstrate what I'm trying to do:

Jan | Feb | Mar | Apr | May | Jun | 6 Month total | Jul | Aug | Sep | Nov | Dec | 6 Month total | 12 Month total

The 12 Month total column is of course the regular Grand Total. The two 6 Month Total columns are the ones I'm looking to create.

share|improve this question

1 Answer

Add a variable to indicate the total. In this case, 6 months is half a year, so we will call this variable "half". Sample data below for columns A,B,C

enter image description here

Now set up a pivot table with both half and month as rows and sales as the value, as shown below.

enter image description here

share|improve this answer
Would be great if you copied excel output to the text file and then posted here as a code. Then it should look much nicer. – mpiktas Aug 5 '11 at 12:04
Can you explain a bit more how to setup the variables? I'm not seeing how to set it up. Specifically, how do I tell the one to only include the first 12 months and the other to only include the last 6? – ak112358 Aug 5 '11 at 17:49
@mpiktas: thanks for the suggestion. I hope this is clearer now. – zbicyclist Aug 13 '11 at 4:26

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.