Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Blank Cells in Input Range of Regression Tool Return Error Message


View products that this article applies to.

Symptoms

When you use the Regression tool from the Analysis ToolPak in Microsoft Excel versions 5.0 or later, if there are blank cells in either the X range or the Y range, the Regression tool halts and you receive the following error message:
Regression - LINEST() function returns error. Please check input ranges again.

↑ Back to the top


Cause

This behavior occurs because the LINEST function is unable to correctly calculate results if you use blank input values.

↑ Back to the top


Workaround

To correctly calculate results from the Regression tool, follow these steps:
  1. Select the entire range used for the input values.
  2. Press F5.
  3. Click Special.
  4. In the Go To Special dialog box, click Blanks, and then click OK.
  5. Type 0 (zero), and then press CTRL+ENTER.

↑ Back to the top


More information

The add-in that is discussed in this article is provided as-is. Microsoft does not guarantee that it can be used in all situations. Although Microsoft Support Professionals can help with the installation and existing functionality of this add-in, they will not modify the add-in to provide new functionality.

↑ Back to the top


References

For more information about regression analysis, click Microsoft Excel Help on the Help menu, type regression analysis tool in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB214254, kbprb, kbarchive, kbnosurvey

↑ Back to the top

Article Info
Article ID : 214254
Revision : 5
Created on : 11/2/2013
Published on : 11/2/2013
Exists online : False
Views : 250