HOW TO MAKE SIMPLE FORMULA FOR TREND IDENTIFICATOR ?? (INCREASING/DECREASING)

ZEBRAX

New Member
Joined
Sep 17, 2024
Messages
2
Office Version
  1. 2021
Platform
  1. MacOS
HI I HAVE 6 CELLS (A1:F1) FILLED WITH 6 PAST WEEKS OF SALES VALUES. I NEED TO CALCULATE IN (G1) CELL IF THAT RANGE HAS INCREASING OR DECREASING TREND.
IDENTIFICATOR (G1) CAN BE WORD ''DECREASE'' OR CAN BE PERCENTAGE VALUE. WHAT WOULD FORMULA FOR BOTH IDENTIFICATOR TYPES LOOK LIKE?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
To use a mathematical approach, you could do a regression of weekly values against week numbers. If the slope of fitted line is positive, it is increasing trend, if it's negative, it is decreasing.
So G1:
Excel Formula:
=IF(SLOPE(A1:F1,COLUMN(A1:F1))>0,"increasing","decreasing")

I skiped answer 0 - when there is no change, but it can be added in nested second if, like:
Excel Formula:
=IF(SLOPE(A1:F1,COLUMN(A1:F1))>0,"increasing",IF(SLOPE(A1:F1,COLUMN(A1:F1))<0,"decreasing","steady"))

BTW: Please don't write with CapsLock activated. Writing in all capital letters is treated in internet as SHOUTING. And you probaly (I hope) don't want to shout on those who want to help you.
 
Upvote 0
Thank you so much you are an angel. Can I have please one more additional question? Is it possible to improve formula by replacing simple +/- trend identificator by precise trend number like in % G1? so i can colour highlight only models that have very strong decreasing sales trend above 30%.
formula should be able to process zero values without returning error. thanks:)
 
Upvote 0
Hi, The answer is probably not an easy one. At first one could say, that the slope gives .... a slope of the trendline:
Excel Formula:
=SLOPE(A1:F1,COLUMN(A1:F1))
but this value would be the same for
1 2 3 ... 6
and
101 102 103 ... 106
while we would like to say, that this first is very intensive increase, and the second mere "just better than flat".

So my proposition would be to take into account also intercept.

Excel Formula:
=SLOPE(A1:F1,COLUMN(A1:F1)-1)*5/INTERCEPT(A1:F1,COLUMN(A1:F1)-1)

of course result cell shall be formatted as percent

COLUMN(A1:F1)-1) returns an artificial X axis for SLOPE and INTERCEPT with values 0 1 2 ... 5

As for errors for 0 - I dont think 0's will generate errors, except of all zero values.

The possible problem with the approach proposed is when intercept is 0. Then we will observe error (of division by 0).
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top