Avatar of vmccune
vmccuneFlag for United States of America

asked on 

excel pivot table subtotal with no values fields

I want to have a subtotal on a pivot table that is essentially a list and has no value fields.  I don't want to add one and have a bunch of 1's running down the side of the table.  It seems it should be easy but not so much.  the fields would be like category, first name, last name and I want a subtotal on category as an example.
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Rob Henson
ASKER CERTIFIED SOLUTION
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of vmccune
vmccune
Flag of United States of America image

ASKER

It is a count rather than a subtotal.  
3 fields, category, First Name, Last Name.  Nothing in the Value Area.

I want a count of the people in the category.
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Just drag category into value area
Avatar of vmccune
vmccune
Flag of United States of America image

ASKER

which gives me 50 1's running down the right side of my report and an extra column just for the total.  I was hoping there was a more elegant way to do it.
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Yeah realised that after I'd commented.

I will have a think.
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Maybe you can use the subtotal function instead. To use this feature:

1) Sort the data by Category and ensure all columns have headers
2) From Data menu choose Subtotal and a popup screen will come up with various selection options:
  - Subtotal by: Choose "Category"
  - Calculation:  Choose Count
  - Various options at the bottom that are fairly self explanatory
Click OK

This will add rows between each category with a count by Category. It will also add Grouping icons in the left margin so that each group can be expanded or collapsed. Use the + and - buttons against each group to expand (+ button) or collapse (- button) individual groups or there will be buttons with numbers on at the very top left. The numbers will display the levels of expansion, level 1 will be only grand total, level 2 subtotals, level 3 detail.

Hope that helps instead.
Avatar of vmccune
vmccune
Flag of United States of America image

ASKER

Subtotal does not work it a pivot table. As soon as I click in it greys out.
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

I didn't mean on the pivot, I meant on the source data.
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo