Hello,
Please consider helping me with my problem. I have different length rows I would like to analyze with the trend function but I don't know how. For example:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Trend 1[/TD]
[TD]Trend 2[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]4[/TD]
[TD]3.5[/TD]
[TD]4[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8[/TD]
[TD]11[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]6[/TD]
[TD]6[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]4.5[/TD]
[TD]4.8[/TD]
[TD]1[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to be able to use trend to produce the results in columns A & B. The function I used to get the results in A2 & B2 is below.
Cell A2:
TREND(C2:E2,C1:E1,F1)
Cell B2 (for the day after the 1st trend):
TREND(C2:E2,C1:E1,G1)
Y values equal current row from column C to the right until last cell that contains a number.
X Values equal the cells in row 1 above the Y Values.
New X Value for trend 1 equals the cell to the right of the rightmost X value. For trend 2 the new X value equals 2 cells to the right of the rightmost X value. Otherwise trend 2 is the same as trend 1.
If someone knows how to do this and doesn't mind helping me I would greatly appreciate it. If I need to provide more information please let me know as well. Thanks again.
Please consider helping me with my problem. I have different length rows I would like to analyze with the trend function but I don't know how. For example:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Trend 1[/TD]
[TD]Trend 2[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]4[/TD]
[TD]3.5[/TD]
[TD]4[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8[/TD]
[TD]11[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]6[/TD]
[TD]6[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]4.5[/TD]
[TD]4.8[/TD]
[TD]1[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to be able to use trend to produce the results in columns A & B. The function I used to get the results in A2 & B2 is below.
Cell A2:
TREND(C2:E2,C1:E1,F1)
Cell B2 (for the day after the 1st trend):
TREND(C2:E2,C1:E1,G1)
Y values equal current row from column C to the right until last cell that contains a number.
X Values equal the cells in row 1 above the Y Values.
New X Value for trend 1 equals the cell to the right of the rightmost X value. For trend 2 the new X value equals 2 cells to the right of the rightmost X value. Otherwise trend 2 is the same as trend 1.
If someone knows how to do this and doesn't mind helping me I would greatly appreciate it. If I need to provide more information please let me know as well. Thanks again.
Last edited: