The LINEST function returns an incorrect value in Excel 2003

This article has been archived. It is offered "as is" and will no longer be updated.

Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

Symptoms

When you use the LINEST function to calculate the statistics for a line in Microsoft Office Excel 2003, the LINEST function returns an incorrect value.

Cause

This problem occurs if there are more than nine significant digits in the source range values that are used by the LINEST function.

Resolution

This problem was first fixed in a hotfix that is now contained in a service pack. If you installed the latest Office 2003 service pack, you do not have to install the hotfix.

Service pack information

This problem is corrected in Office 2003 Service Pack 3. To resolve this problem, obtain the latest service pack for Office 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

After you install the service pack, follow the steps that are listed in the "How to enable the hotfix" section of the article to set the

SuppressLINESTRounding

registry key and to activate the hotfix.

Hotfix information

How to obtain the hotfix

This issue is fixed in the Excel 2003 post-Service Pack 2 P2 Hotfix Package that is dated November 7, 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

How to enable the hotfix

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To enable this hotfix, follow these steps:

Quit Excel.

Click Start, click Run, type regedit, and then click OK.

Locate and then click to select the following registry key:

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

After you select the key that is specified in step 3, point to New on the Edit menu, and then click DWORD Value.

Type SuppressLINESTRounding, and then press ENTER.

Right-click SuppressLINESTRounding, and then click Modify.

In the Value data box, type 1, and then click OK.

On the File menu, click Exit to quit Registry Editor.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.