Hello,
I was wondering if the below could be done but if it is I have no idea how so any pointer would be welcome.
I have a row ranging from B2:BO2
Is there a way to determine if the values are trending up or down?
Thanks
Ludo
Hello,
I was wondering if the below could be done but if it is I have no idea how so any pointer would be welcome.
I have a row ranging from B2:BO2
Is there a way to determine if the values are trending up or down?
Thanks
Ludo
Hi,
You can use LINEST to return the gradient of the best fit line to your data to establish the direction of trend.
![]()
=IF(LINEST(B2:BO2,,,TRUE)>0,"Trending Up",IF(LINEST(B2:BO2,,,TRUE)<0,"trending down","Stable"))
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
Excellent! Thanks.
I works on some lines but not on all of them as my data are not continuous there are some blank cells
I tried to do something like that with OFFSET:
and to come up with something with ISNUMBER but I am still stuck=LINEST(OFFSET('Unit Shipped'!B2:BO2,0,0,COUNT('Unit Shipped'!B2:BO2),1),,,TRUE
Any idea on how to use linest on these, will be more than welcome=LINEST(IF(ISNUMBER('Unit Shipped'!B2:BO2),'Unit Shipped'!B2:BO2,0),,,TRUE)
Ludo
Hi,
This array formula should do it.
This replaces empty cells with zero, which will alter the gradient, so may affect you results depending on the amount and magnitude of the data present.![]()
=IF(LINEST(IF(ISNUMBER(B2:BO2),B2:BO2,0),,,TRUE)>0,"up",IF(LINEST(IF(ISNUMBER(B2:BO2),B2:BO2,0),,,TRUE)=0,"Stable","Down"))
Remember to commit an array formula using CTRL, SHIFT and ENTER
Last edited by sweep; 03-23-2010 at 08:37 AM. Reason: quote instead of code
Or =LINEST(B2:BO2), which returns the slope
Or =CHOOSE(SIGN(LINEST(B2:BO2)) + 2, "Down", "Stable","Up")
Both entered normally.
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks