Share via

Excel Function for Max Date in a row

Anonymous
2014-11-24T12:52:12+00:00

A workbook has just over 500 rows and 52 columns.  Column A is an identifier and row 1 is a list of objects.  For each row columns B through AZ is either blank or a date.  For column BA, rows 2 through N, I need a function that will pick out the max date for columns B through AZ for that row (remember, some cells may be blank).  Thanks in advance!!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2014-11-24T13:33:13+00:00

For row 2:

=MAX(B2:AZ2)  will return the largest date in the row (first instance if repeated)

=MATCH(MAX(B2:AZ2),A2:AZ2,0)  would return the column number where that date was found

combine those into an ADDRESS() function and this formula

=ADDRESS(ROW(),MATCH(MAX(B2:AZ2),A2:AZ2,0))

will return the address of the (first) cell containing the greatest date on the row.

Take that last formula and fill down to get the information for each row.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful