Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 929

Matching frequency function output with a column header

$
0
0

This function: =MAX(FREQUENCY(IF(K4:AQ4=0, IF(COLUMN(K4:AQ4)>=MIN(IF(K4:AQ4<>0, COLUMN(K4:AQ4))), COLUMN(K4:AQ4))), IF(K4:AQ4<>0, COLUMN(K4:AQ4)))) correctly returns the greatest number of consecutive zeros in an array after ignoring zeros prior to the first nonzero value.

The header row (row 3) on my sheet is months from Jan-22 to Sep-24. I need to return the month at the end of the longest consecutive string of zeroes.

For example, after the first nonzero value, there is a string of 20 zeros and then another nonzero value. I need to return the month (which are the headers above the data) of the column of the 20th zero.


Viewing all articles
Browse latest Browse all 929

Trending Articles