Formula to spot upward trend

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
907
Hi, I am looking to create some sort of formula that can throw an alert for the user if the upward trend is increasing.

I need help with the algorithm

For example, Months Jan, Feb, Mar, Apr, May, Jun
Values
1024, 1130, 1250, 1375, 1425, 1250

Displaying this in a chart you could say the cost has increased month over month for 5 months before it started to decline.
The algorithm needs to detect the upward trend, not just if the next month is greater than than the previous month
The result needs to be text to tell the user about the upward trend.

Something like this is what I envision.

Month 1 has a cost
Month 2 , if greater than month 1, it would throw an alert, a text message in a box to a user
Month 3, if greater than month 2 and month 1, then throw an alert
Month 4, if greater than month 3, 4, 2, alert

I was thinking to use a basic If(AND , would this be the right approach? Any thoughts on a robust method? Considering one month that could dip, then if it shoots back up where the visual trend is still upward. Its like trying to put in text what a user would be thinking looking at a chart. "Yep the cost is increasing!"
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Thinking about this more, what I need is a text based alert that I can alert the user when the rolling average has been observed as increasing. If it drops
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,112
Members
452,302
Latest member
TaMere

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