Problems with Nested Subtotals

by Allen Wyatt
(last updated April 19, 2019)

3

Kathy is having problems creating nested subtotals in Excel. It seems that when she thinks she has it right, she ends up with disorganized subtotals, with the subtotals being after the grand total.

This problem seems to be a known issue to the folks at Microsoft; it has affected users of both Excel 2002 and Excel 2003. The problem and its solution is discussed in this Knowledge Base article:

http://support.microsoft.com/?kbid=831824

In short, you can fix the problem in Excel 2002 and Excel 2003 by downloading a hotfix or service pack.(You can also do a Registry edit to effect a fix.)

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3080) applies to Microsoft Excel 2002 and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Default Worksheet when Opening

When opening a workbook, you may want to make sure that a particular worksheet is always displayed first. The only way to ...

Discover More

Handling Leading Zeros in CSV Files

When dealing with files containing comma-separated values, you want to make sure that what gets imported into Excel ...

Discover More

Making Use of Extra Labels

Got extra labels left over after printing a mail merge? Here's what you can do to put those labels to good use.

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (menu)

Copying Subtotals

If you have added subtotals to your worksheet data, you might want to copy those subtotals somewhere else. This is easy ...

Discover More

Moving Subtotals

When you add subtotals to a worksheet, Excel typically places them in the same column that you are subtotaling. If you ...

Discover More

Excel Refuses to Put Page Breaks between Subtotal Groups

Page breaks not appearing where you expect them in your subtotaled data? It could be because of a setting you made in ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 + 8?

2018-07-17 16:07:00

Benny

Hi Allen,
FYI, I've seen mentions of this for more recent versions of Office than you list (more recent than 2002 and 2003).
Today I've experienced this bug in my copy of Office 2016 32Bit for Windows 10 Home 64bit.
I have a sizable table of ~25 columns and ~3.5K rows. If I delete a bunch of rows and then subtotal twice, they nest correctly. If I do not delete the rows, the "nested subtotals" are broken as you've described.
I'm hunting for any special values/rows which may be causing it, but otherwise I think it may just be table-size which breaks this.
I'm desperate for a solution, if anyone hears how to consistently/reliably get proper nested subtotals in Excel 2016.
Thanks,
-Benny

P.S. Just FYI the Knowledge Base link is broken.
Don't feel bad, as it looks like 90% of the internet's links to Knowledge Base have been broken (even their own Support search results).


2016-06-22 15:39:50

elaines03`

I am having issues in Excel 2010 also with Nesting subtotals. Not all the time but sometimes the last item total in a sub group will fall below the grand total


2016-06-05 21:28:23

yodayoda

And I'm still seeing the problem in Excel 2010. Has anyone found a solution that REALLY works?


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.