Solved

Separating out categories in an Excel Pivot table

Posted on 2016-08-17
7
58 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 7

Accepted Solution

by:
tomfarrar earned 500 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
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
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 33

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

627 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