Hello,
I have the following data set. It contains different products (P1,P2,P3,P4) and two variables (Var1, Var2).
I've condensed the product names in column F with the following formula: =OFFSET($B$3,(ROW(F1)*4)-4,0).
I've also calculated the slope and intercept for product P1 using: =LINEST(D3:D6,C3:C6)
I'd like to calculate R2 statistic into the same row in column i
Also, I'd like to use OFFSET with LINEST so that I can fill LINEST down the slope, intercept and R2 columns for use with the "Product name condensed" column.
Thanks so much in advance for your assistance.
I have the following data set. It contains different products (P1,P2,P3,P4) and two variables (Var1, Var2).
I've condensed the product names in column F with the following formula: =OFFSET($B$3,(ROW(F1)*4)-4,0).
I've also calculated the slope and intercept for product P1 using: =LINEST(D3:D6,C3:C6)
I'd like to calculate R2 statistic into the same row in column i
Also, I'd like to use OFFSET with LINEST so that I can fill LINEST down the slope, intercept and R2 columns for use with the "Product name condensed" column.
Thanks so much in advance for your assistance.
A1 | B | C | D | E | F | G | H | I |
2 | Product | var1 | var2 | Product name condensed | slope | intercept | R2 | |
3 | P1 | 10 | 0.39 | P1 | 0.0306 | 0.065 | ||
4 | 20 | 0.65 | P2 | |||||
5 | 30 | 0.98 | P3 | |||||
6 | 40 | 1.30 | P4 | |||||
7 | P2 | 10 | 0.50 | |||||
8 | 20 | 0.75 | ||||||
9 | 30 | 1.10 | ||||||
10 | 40 | 1.40 | ||||||
11 | P3 | 10 | 0.75 | |||||
12 | 20 | 1.20 | ||||||
13 | 30 | 1.40 | ||||||
14 | 40 | 1.80 | ||||||
15 | P4 | 10 | 0.30 | |||||
16 | 20 | 0.70 | ||||||
17 | 30 | 0.90 | ||||||
18 | 40 | 1.20 |