B
bmook
I am trying to display the coefficients of a trendline in cells. This way I
can reference the cells and if the data changes, the coefficients are
dynamically updated (as opposed to if the trendline was just displayed on the
chart and you had to manually update every time).
I am using the following formulas:
Equation: y = (c2 * x^2) + (c1 * x ^1) + b
c2: =INDEX(LINEST(y,x^{1,2}),1)
C1: =INDEX(LINEST(y,x^{1,2}),1,2)
b = =INDEX(LINEST(y,x^{1,2}),1,3)
This works fine when I have the data set up in 2 columns
ex. Columns
X Y
1 5
3 6
5 7
but I can't seem to get the equations to work with the data set in rows
ex.
ROW
X 1 3 5
Y 5 6 7
The data is set in place based on some other stuff, so I'm trying to avoid
have to copy and transpose everything. Is there a way to incorporate the
TRANSPOSE function into the formulas? Or any other idea?
Thanks, any and all help is much appreciated!
-B
can reference the cells and if the data changes, the coefficients are
dynamically updated (as opposed to if the trendline was just displayed on the
chart and you had to manually update every time).
I am using the following formulas:
Equation: y = (c2 * x^2) + (c1 * x ^1) + b
c2: =INDEX(LINEST(y,x^{1,2}),1)
C1: =INDEX(LINEST(y,x^{1,2}),1,2)
b = =INDEX(LINEST(y,x^{1,2}),1,3)
This works fine when I have the data set up in 2 columns
ex. Columns
X Y
1 5
3 6
5 7
but I can't seem to get the equations to work with the data set in rows
ex.
ROW
X 1 3 5
Y 5 6 7
The data is set in place based on some other stuff, so I'm trying to avoid
have to copy and transpose everything. Is there a way to incorporate the
TRANSPOSE function into the formulas? Or any other idea?
Thanks, any and all help is much appreciated!
-B