XL: How to Solve for New X-Values Using INDEX and LINESTLast reviewed: February 2, 1998Article ID: Q147266 |
The information in this article applies to:
SUMMARYThis article contains information about how to determine values for a set of unknown x-values when you are given a set of known x-values and known y-values.
MORE INFORMATIONIn order to determine new x-values for a given set of data, you must solve for the following linear equation
y = mx + bwhere y is the dependent y-value, m is the slope coefficient corresponding to each x-value, and b is a constant representing the y-intercept of the line. You can solve this equation using the INDEX and LINEST functions. The LINEST function is used to calculate the slope and the y-intercept values for the line, which are returned as a two-element array. The INDEX function allows you to retrieve these two values from the array and to use them to calculate the following formula:
x = ( y - b ) / m -or- UnknownX = ( NewY - y-intercept ) / slopeThe following example illustrates how to determine a set of unknown x's using the formula shown above. Assume that you have the following table of known x- and y-values:
A1: Known x's B1: Known y's A2: 2 B2: 100 A3: 4 B3: 110 A4: 6 B4: 120 A5: 8 B5: 130 A6: 10 B6: 140 A7: B7: 95 A8: B8: 105 A9: B9: 115 A10: B10: 135To solve for the unknown x-values in cells A7:A10, perform the following steps:
NOTE: You may need to format the cells so they do not show decimal values.
A1: Known X's B1: Known Y's A2: 2 B2: 100 A3: 4 B3: 110 A4: 6 B4: 120 A5: 8 B5: 130 A6: 10 B6: 140 A7: 1 B7: 95 A8: 3 B8: 105 A9: 5 B9: 115 A10: 9 B10: 135 REFERENCESFor more information about the INDEX function, click the Search button in Microsoft Excel Help and type the following text:
index functionFor more information about the LINEST function, click the Search button in Microsoft Excel Help and type the following text:
linest function |
Additional query words: y's TREND LOGEST GROWTH least squares line XL98
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |