Hi
Using: Excel XP, Windows XP
Is there a way to identify peaks and troughs in a data series? Say, I have these values in a column: 8, 7, 6, 7, 8, 7, 6, 5, 4, 3, 4, 5, 6, 7, 8, 9, and 8
The objective is to identify 6 and 3 as troughs and 8 and 9 as peaks. I have been unable to solve this problem using SMALL/LARGE, as they only identify the kth smallest/largest numbers and not the troughs/peaks.
In a nutshell, I would like to devise a formula that would allow me to identify (x) number of lowest troughs and (x) number of highest peaks in a dynamic range. Please note that numbers that are lower than the second trough or higher than second peak but themselves are not troughs or peaks (i.e. numbers in the immediate vicinity of the lowest trough or highest peak) need to be ignored. In other words, a change of direction is required in order for a number to be considered as a peak or trough.
So far it seems that this is beyond my abilities; while I still work on it, I would be grateful if someone could point me in the right direction.
Using: Excel XP, Windows XP
Is there a way to identify peaks and troughs in a data series? Say, I have these values in a column: 8, 7, 6, 7, 8, 7, 6, 5, 4, 3, 4, 5, 6, 7, 8, 9, and 8
The objective is to identify 6 and 3 as troughs and 8 and 9 as peaks. I have been unable to solve this problem using SMALL/LARGE, as they only identify the kth smallest/largest numbers and not the troughs/peaks.
In a nutshell, I would like to devise a formula that would allow me to identify (x) number of lowest troughs and (x) number of highest peaks in a dynamic range. Please note that numbers that are lower than the second trough or higher than second peak but themselves are not troughs or peaks (i.e. numbers in the immediate vicinity of the lowest trough or highest peak) need to be ignored. In other words, a change of direction is required in order for a number to be considered as a peak or trough.
So far it seems that this is beyond my abilities; while I still work on it, I would be grateful if someone could point me in the right direction.