Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bobbie @ NPH
 
Posts: n/a
Default Subtotaling Problems (Excel incorrectly grouping items)

I am having trouble with subtotaling in Excel. I'm having trouble finding a
way to clearly describe the problem, so I'll just give a very simple example:

I have two columns, one is "Letter" and the other is "Number." I put
letters in the "Letter" column and put various numbers in the "Number" column
to correspond with them. But then I add numbers that don't have a letter
associated with them. For example,
Letter Number
A 3
B 5
B 1
3
A 1
C 6
A 4
C 2
1
4

I sort the worksheet so that all A's are grouped together, all B's are
together, all C's are together, and all of the numbers without a
corresponding letter are together. However, once I go to do a subtotal, the
numbers without a corresponding letter are included in the subtotal for C
(since C is the last header listed when sorted).

Why is it grouping the undesignated group with C? Is there any way to get
it to do subtotals for A, B, C, and the undesignated group separately?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Subtotaling Problems (Excel incorrectly grouping items)

I have no problems grouping by empty cells, however I don't know how you can
sort empty cell below C since if you sort your example either it would start
with the empty cells or it would start with C and end with the empty cells.
I have no problems using subtotal though



--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Bobbie @ NPH" wrote in message
...
I am having trouble with subtotaling in Excel. I'm having trouble finding
a
way to clearly describe the problem, so I'll just give a very simple
example:

I have two columns, one is "Letter" and the other is "Number." I put
letters in the "Letter" column and put various numbers in the "Number"
column
to correspond with them. But then I add numbers that don't have a letter
associated with them. For example,
Letter Number
A 3
B 5
B 1
3
A 1
C 6
A 4
C 2
1
4

I sort the worksheet so that all A's are grouped together, all B's are
together, all C's are together, and all of the numbers without a
corresponding letter are together. However, once I go to do a subtotal,
the
numbers without a corresponding letter are included in the subtotal for C
(since C is the last header listed when sorted).

Why is it grouping the undesignated group with C? Is there any way to get
it to do subtotals for A, B, C, and the undesignated group separately?



  #3   Report Post  
Posted to microsoft.public.excel.misc
John James
 
Posts: n/a
Default Subtotaling Problems (Excel incorrectly grouping items)


Hi Bobby,

You are correct in your description of the problem (as well as in how
Excel sorts).

After sorting, perhaps you could copy a period (".") into the blank
cells and this should give the correct totals. A bit messy but gives a
result.

Alternatively, you might choose not to use data-subtotals and have a
summary total area using a pivottable or using formulae like::
=SUMIF($A$2:$A$11,"c",$B$2:$B$11)
=SUMPRODUCT($B$2:$B$11,--($A$2:$A$11="c"))


--
John James
------------------------------------------------------------------------
John James's Profile: http://www.excelforum.com/member.php...o&userid=32690
View this thread: http://www.excelforum.com/showthread...hreadid=529396

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
enable automatic refresh Vass Excel Worksheet Functions 2 March 11th 06 04:36 AM
Remove Excel Menu Items robbybobby New Users to Excel 1 February 23rd 06 11:41 PM
How do I get Excel to automatically group items? jiba Excel Discussion (Misc queries) 3 January 18th 06 04:10 AM
Excel Standard Toolbar button addition/removal problems? Valerie Dyet Excel Discussion (Misc queries) 1 July 13th 05 10:01 PM
Is Excel causing me system problems? Sandra Excel Discussion (Misc queries) 1 April 7th 05 09:04 PM


All times are GMT +1. The time now is 02:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"