Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2006

Tip: Looking for answers? Try searching our database.

Calculating Row/Column Headers in PivotTable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mikelee101@hotmail.com - 30 Jan 2006 21:20 GMT
Hello,
I have a table of data, the first two columns of which are Date and
Transaction Amount.  What I'm trying to do is put together a table that
will summarize total transactions by month/year.  My goal is to have 1
through 12 (months) as the column headers, and have the years be the
rows.  Then I could use Sum of Transaction Amount as my data field.

However, I can't seem to figure out how (or if I can) force a pivot
table to base both the rows and columns on the same data point.  I've
right clicked on the column headers and selected both Calculated Item
and Calculated Field.  When I try to enter:

=Month(Date) 'where Date is my field name

I get an error that says "References to multiple item names per field
cannot be included in PivotTable formulas."

If it's possible to do this with a pivottable, please let me know.  I
know I can add a two new columns to my underlying data and use them to
calculate the month and year of each individual data point, but that
would change the layout of my table and would require rewriting of some
macros, so I'd like to avoid that if at all possible.

Thanks,
Mike
McKinney, TX
Roger Govier - 30 Jan 2006 23:58 GMT
Hi Mike

Make the Date field a Row Item
Right click on your date field in the PT.
Group and Show Detail>Group>select both Years and Months
You will now see Years then Date in the Row area. Grab the Years label,
and drag it to the Total field and you will then see

Months        2006  2007
Jan
Feb

Alternatively, drag the date field to the column area, leaving Years in
the Row area and you will see

               Jan   Feb   Mar
2006
2007

Signature

Regards

Roger Govier

> Hello,
> I have a table of data, the first two columns of which are Date and
[quoted text clipped - 24 lines]
> Mike
> McKinney, TX
mikelee101@hotmail.com - 31 Jan 2006 15:42 GMT
Roger,
Wow.  Worked like a charm.

I could have tried for years and never figured that out.

Thanks a million for the help.

Mike
Dexsquab - 31 Jan 2006 15:48 GMT
Looks like this solves my request, too.

Many thanks
Roger Govier - 31 Jan 2006 22:32 GMT
Hi Mike

You (and Dexsquab) are very welcome. Thanks for the feedback and glad
its sorted your problem

Signature

Regards

Roger Govier

> Roger,
> Wow.  Worked like a charm.
[quoted text clipped - 4 lines]
>
> Mike
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.