XL: LINEST Function Returning Only One ValueLast reviewed: February 2, 1998Article ID: Q99639 |
The information in this article applies to:
SUMMARYThe LINEST() function will return only one value, the slope, when you enter the formula with one cell selected. To obtain both the slope and the y- intercept, you must select two adjacent horizontal cells and then enter the LINEST() formula as an array. The syntax of the LINEST() formula is
=LINEST(known_y's,known_x's)where "known_y's" and "known_x's" are ranges on the worksheet containing the y-values and the x-values, respectively. You must enter the LINEST() formula as an array. To enter a formula as an array, press CTRL+SHIFT+ENTER in Microsoft Excel for Windows, or COMMAND+RETURN in Microsoft Excel for the Macintosh.
MORE INFORMATIONTo return the additional regression statistics, select a range of cells consisting of n columns (where n represents the number of known x's) and 5 rows. Because LINEST is an array formula, you must enter the function as an array: press CTRL+SHIFT+ENTER in Microsoft Excel for Windows, or COMMAND+RETURN in Microsoft Excel for the Macintosh. Refer to the LINEST() section of the Microsoft Excel Function Reference for an illustration that depicts the order in which the additional regression statistics are returned.
REFERENCES"Microsoft Excel Function Reference," version 4.0, pages 254-258 "Microsoft Excel User's Guide 1," version 4.0, pages 153-166 "Microsoft Excel Function Reference," version 3.0, pages 138-141 "Microsoft Excel User's Guide," version 3.0, pages 277-289
|
Additional query words: 2.1 2.10 3.0 3.00 4.0 4.00 4.0a 4.00a 5.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |