Return column header of first cell identified in consecutive cells that meet criteria

zara007

New Member
Joined
May 30, 2018
Messages
3
Hello, I would like to be able to get the column header of the first cell from an identified event of consecutive cells that fall below a threshold. Example data is below (column headers on 2nd row).

I can identify the longest consecutive event, when more than one cell has data that falls below the threshold, using the following CSE formula: =MAX(FREQUENCY(IF(A3:N3
P3,COLUMN(A3:N3))))

In column S, I'd like the cell to return '9' for the first row of data (the first cell at the start of the longest event) and '1' for the next row.

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
90th Percentile
Threshold
Number of times data drops below threshold
Longest consecutive event
Start (Column Header)
50
50
50
50
50
50
50
50
25
20
25
28
50
50
50
30
4
4
22
22
25
25
50
50
50
25
25
25
50
50
25
50
50
30
8
4

<tbody>
</tbody>


Any help would be greatly appreciated.</P3,COLUMN(A3:n3)),if(a3:n3>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,214,431
Messages
6,119,458
Members
448,899
Latest member
maplemeadows

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