Hi, I'm seeking a solution for conditionally counting the days between max values.
In the example below, I'm trying to construct a conditional formula for the "DaysUnderPeak" column. This column would output the text "new peak" if the "Peak"(B) value is higher than the previous Date's(A) peak value. If the new peak is the start of a sequence of days where the peak value is unchanged, the output would numerically increment until a new peak is measured.
Note that the first peak in any sequence is always the text "new peak", not "1".
I colored and outlined the data below to help explain what I'm trying to do. Any help or suggestions would be most welcomed. Thank you very much for taking a look.
In the example below, I'm trying to construct a conditional formula for the "DaysUnderPeak" column. This column would output the text "new peak" if the "Peak"(B) value is higher than the previous Date's(A) peak value. If the new peak is the start of a sequence of days where the peak value is unchanged, the output would numerically increment until a new peak is measured.
Note that the first peak in any sequence is always the text "new peak", not "1".
I colored and outlined the data below to help explain what I'm trying to do. Any help or suggestions would be most welcomed. Thank you very much for taking a look.
Last edited: