Solved

Excel grouping with subtotal

Posted on 2014-02-06
3
187 Views
Last Modified: 2014-02-06
Hi, I have the following data
 
MYMONTH      E_NAME      XID      IS_LOCAL       TTLVOL
2013-11      Employee x      ESX      0       18,800
2013-11      Employee x      ESX      0             -  
2013-11      Employee x      ESX      1       1,110,200
If i use subtotal on the data i get

MYmonth              E_Name   XID IS_LOCAL ttlvol
Employee X Total 0               0      0       1,129,000

Is there another function that i can use to get the e_name to show up rather than 0?
0
Comment
Question by:Extreme66
  • 2
3 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 39838789
I assume you mean the XID since E_NAME is showing? There is no direct way to do it within the subtotal function, but if you don't include an aggregate function for that column (so you get a blank cell rather than 0), you can then select the column once the subtotals are in place, press f5, click Special..., choose Blanks and OK. This will select the empty cells in the subtotals rows. You may then type = and press the up arrow once, then press Ctrl+Enter together.
0
 

Author Comment

by:Extreme66
ID: 39838801
Sorry i actually typed it in because i was thinking it, bu basically i want to get a subtotal grouped on multiple fields. Is that possible?
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 200 total points
ID: 39838894
I'm not sure exactly what you mean by that? You can have multiple levels of subtotal but the subtotals only occur based on a change in one column. Perhaps you would be better off with a pivot table? (Personally, I rarely use subtotals)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
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 use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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…

919 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

23 Experts available now in Live!

Get 1:1 Help Now