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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,215,945
Messages
6,127,856
Members
449,411
Latest member
adunn_23

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