Re:
Since we are copying the formula across to the right from E2
we want to know when to stop finding dates and start displaying
text blanks ("").
• This part:
calculates the count of values that match the MAX TEMP
• This part:
Counts the columns referenced.
When copied across..it returns:
1 for COLUMNS($E:E)
2 for COLUMNS($E:F)
etc
So this combination determines when the count of MAX TEMP days
has been reached:
For the "VALUE IF TRUE" calculation...
The ROW NUMBER for each referenced cell is
multiplied by 1 (if the cell equals the MAX TEMP)
or by 0 if it does not.
The result is an array of 0's interspersed with row numbers.
The SMALL function looks in that array for the nTH smallest value
after the count of 0's (which is the count of cells that DO NOT
equal the MAX TEMP):
So, if there are 3 MAX TEMP days out of 49 cells,
this combination finds the 47 smallest value
(46 non-matches + the row of the first match):
That value is the row of the matched value.
The INDEX function that wraps around the first part
of the SMALL function eliminates the need for CTRL+SHIFT+ENTER.
Finally, the outer INDEX function returns the date associated
with the calculated row.
I hope that helps.
Bookmarks