Microsoft KB Archive/831824

= Multilevel subtotals are in the wrong position in Excel 2002 and in Excel 2003 =

Article ID: 831824

Article Last Modified on 4/7/2006

-

APPLIES TO


 * Microsoft Office Excel 2003
 * Microsoft Excel 2002 Standard Edition

-



Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry





SYMPTOMS
When you create multilevel subtotals for data in Microsoft Excel 2002 or Microsoft Office Excel 2003, and you set the subtotals to appear in the rows that are immediately above the data that they are based on, the totals appear in the incorrect order (staggered incorrectly) and may exclude extra Grand Totals values.



How to obtain the hotfix
This issue is fixed in the Excel 2002 post-Service Pack 3 Hotfix Package that is dated November 13, 2003. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

829348 Excel 2002 post-Service Pack 3 hotfix package: May 6, 2004

This fix is enabled by default when you install the hotfix.

Excel 2003
This fix is included in Microsoft Office 2003 Service Pack 1 (SP1). For more information, click the following article number to view the article in the Microsoft Knowledge Base:

842532 Description of Office 2003 Service Pack 1

After you install Office 2003 SP1, see the &quot;More Information&quot; section for information about how to enable the registry key.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

The fix is enabled by default when you install the update. However, it may cause incorrect ordering of subtotals when the following conditions are true:
 * The summary appears below the detail data.
 * One or more subtotal breaks contain only a single item.

Follow these steps to disable this hotfix and to resolve this issue by reverting to the subtotal functionality of Excel 97 and Excel 2000:  Quit all Microsoft Office programs. Click Start, and then click Run. In the Open box, type regedit, and then click OK. Locate and then click to select the following registry key:

Excel 2002

HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel\Options

Excel 2003

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Options

 After you select the key that is specified in step 4, point to New on the Edit menu, and then click DWORD value.</li> Type Excel97Subtotals, and then press ENTER.</li> Right-click Excel97Subtotals, and then click Modify.</li> In the Value data box, type 1, and then click OK.</li> On the File menu, click Exit to quit Registry Editor.</li></ol>

Note If there is a current worksheet that contains subtotals, the subtotals must be deleted and recreated in order for the fix to take a effect.

<div class="references_section">