Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Separating out categories in an Excel Pivot table

Posted on 2016-08-17
7
Medium Priority
?
64 Views
Last Modified: 2016-08-22
I think what I want to do should be simple, but I can't quite figure it out.
I have a table of records with different values.  eg.....
Gender   Age    Ethnicity
Male        60      British
Male        60      American
Female    40      British
...... etc

All I want is the count of each category in the table
Male   n
Female nnn
60   nn
40 nn
American nn
British nn
etc...

It's easy to use a Pivot table to get these results separately, But when I include multiple categories in the Pivot table they are always nested, so I can't easily see the individual values.

Hope this is clear.  I am using Excel 2013 on Windows 7
0
Comment
Question by:rltomalin
  • 4
  • 2
7 Comments
 
LVL 7

Accepted Solution

by:
tomfarrar earned 2000 total points
ID: 41759589
You could use the "countif" function.  See attached.
EE.xlsx
1
 

Author Comment

by:rltomalin
ID: 41760669
OK Tom - I will do that.  It gives nice flexibility, but I was just checking if I had missed an option on the Pivot Table wizard.
0
 
LVL 7

Expert Comment

by:tomfarrar
ID: 41760999
Hmmm.  Let me think on that.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Expert Comment

by:tomfarrar
ID: 41761072
Only way I know would be to use the GetData function like shown in attached.
EE.xlsx
0
 
LVL 7

Expert Comment

by:tomfarrar
ID: 41764693
Thanks for the points!
0
 
LVL 34

Expert Comment

by:Rob Henson
ID: 41765191
I know this is too late for points but I will comment anyway. Standard Default display for Pivots from 2010 onwards is nested categories, so they all go in one column.

Right click on the Pivot and Choose Pivot Options. On the Display tab choose the Option for Classic Display, this will split the categories into different columns/rows.

Thanks
Rob H
1
 

Author Comment

by:rltomalin
ID: 41765235
Rob
Thanks for this.  It does actually answer the original question!
However, based on feedback I have rethought the application and will now create the report using ICOUNT.
In the end I think this is a more elegant solution.
But it's good to know that the original format is available!!
Regards
Richard
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question