Solved

Excel 2007 Groupings

Posted on 2011-09-16
6
300 Views
Last Modified: 2012-05-12
Hi Experts

I have 400 rows in a spreadsheet with the following columns

Name, Value, Reference Number

The data looks like this

SMITH      100      GT12121
SMITH        50       YT81779
JONES     20       HYYHHG
JONES     120     UTTTYY
JONES      75     UYUUU
BLACK       37     HKIKKKI
BLACK     20      YHHYH

I am trying to present it so I have a count of each name, a total by each name (on the same row if possible) and the detail rolled up so that if challenged, we can see how the total and count were derived.

So I should end up with

SMITH   Count = 2 SUM=150
JONES COunt= 3 SUM=215
BLACK COunt=2 SUM=57

Then click a cross alongside each of these rows (or whatever mechanism that works, and it expands the selection to show each row that contributed to the total.

I am not bothered about the wording (so Count=xxx SUM= xxx is arbitary as long as its obvious what the numbers represent)

Looking at it Im sure I should be able to achieve this using a pivot table or grouping, butcant figure it out.

Has anyone ever done anything similar and can help me out?
0
Comment
Question by:stummj
  • 3
  • 3
6 Comments
 
LVL 24

Accepted Solution

by:
StephenJR earned 500 total points
ID: 36550405
Not exactly that format but have you tried a pivot table? Will do all the donkey work in a second.

Name in the row field, and Ref in the data field twice (sum and count).
0
 
LVL 24

Expert Comment

by:StephenJR
ID: 36550428
Missed your reference to pivot table in the question so obviously you do know about them. Attached is what it would look like (in 2003).
pic.JPG
0
 

Author Comment

by:stummj
ID: 36550464
Hi Stephen

Yes tried doing a pivot and can get sum or the count, but not both at the same time AND RETAIN THE ROLLED UP VALUES.

I end up with rolled up valued but no count or a sum and a count but no rolled up values
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 24

Expert Comment

by:StephenJR
ID: 36550473
Not sure I follow, but if you double-click any of the names you get the option to see the underlying values.
0
 

Author Comment

by:stummj
ID: 36550488
So you do! That wasn't immediately obvious. Very many thanks :)
0
 

Author Closing Comment

by:stummj
ID: 36550494
Wonderful! Thank you
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now