Solved

Excel 2007 Groupings

Posted on 2011-09-16
6
302 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

778 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