Please can someone help advise where I have gone wrong with this.
In Column N is where this formula is and I want to generate the name of the headed column in O, P, Q, X or Y only (R through to W should not be included in the results)
I want it to find the "largest" (most recent) date, and then that to display the column header.
So in column O is Pipeline, Column P is WIP, Column Q is Testing, Column X is Waiting Promotion, Column Y is Completed, Column Z is Cancelled. These are all date fields, and will be populated as per the progress of each work item.
At the moment, it is looking for the last field to have an entry, (this includes Columns R to W) and not necessarily the most recent date.
In Column N is where this formula is and I want to generate the name of the headed column in O, P, Q, X or Y only (R through to W should not be included in the results)
I want it to find the "largest" (most recent) date, and then that to display the column header.
So in column O is Pipeline, Column P is WIP, Column Q is Testing, Column X is Waiting Promotion, Column Y is Completed, Column Z is Cancelled. These are all date fields, and will be populated as per the progress of each work item.
At the moment, it is looking for the last field to have an entry, (this includes Columns R to W) and not necessarily the most recent date.
Code:
=IFERROR(INDEX($O$1:$Z$1,MATCH(LARGE((O10:Q10,X10:Z10),1),O10:Z10)),"")