Identify Peaks and Troughs in a column in Excel sheet

mailsmithah

New Member
Joined
Feb 19, 2021
Messages
15
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I am new to excel would like to know how to identify peaks and troughs in a column in excel sheet. Able to identify peaks and troughs if they are far apart but if continous values are peak or trough in a sequence it does not identify the peaks and troughs.
 
I've made one change to the formule in column E (highlighted red).
Otherwise it seems to work just fine for mw.

Column A: =your source data
Column B: =if(A2>A1,"grow",if(A2=A1,"steady","decline"))
Column C: =if(B2="steady",C1,B2)
Column D: =if(C2=C3,"",if(C2="grow","high","low"))
Column E: =if(b3="steady",E3,D2)
Since this formula is getting written by an automation tool, require it to be in one formula
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Since this formula is getting written by an automation tool, require it to be in one formula
There's nothing stopping you from adding multiple columns in an automation tool.

Otherwise, you can always calculate using four columns, and remove the three columns you do not need once all calculations have been finished and the results have been saved as values.
 
Upvote 0
Will try it
There's nothing stopping you from adding multiple columns in an automation tool.

Otherwise, you can always calculate using four columns, and remove the three columns you do not need once all calculations have been finished and the results have been saved as values
 
Upvote 0
There's nothing stopping you from adding multiple columns in an automation tool.

Otherwise, you can always calculate using four columns, and remove the three columns you do not need once all calculations have been finished and the results have been saved as values.
1613792572713.png
 
Upvote 0
it looks like you pasted the formulas in row 1 and copied down? The formulas should start in row 2, i assumed there’d be headers i row 1.
 
Upvote 0
I am really sorry, but it works on my computer with the data you provided as an example from reply 14.

Even on your last example, the figures match what is expected, except that the results are all one row too high.
So, once again, I can only come to the conclusion that you did not paste the formulas in row 2 and copied them down from there.
 
Upvote 0
I am really sorry, but it works on my computer with the data you provided as an example from reply 14.

Even on your last example, the figures match what is expected, except that the results are all one row too high.
So, once again, I can only come to the conclusion that you did not paste the formulas in row 2 and copied them down from there.
Here the numbers in column A, 6000,8000 and 9000 are out of series in the column so those need to be marked out from the rest, that is what i am looking at.
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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