Below is a simple table. I would like to know of a formula that will look for the latest date within a row, taking into consideration of matching dates, and return the farthest right header.
[TABLE="width: 336"]
<colgroup><col><col span="4"></colgroup><tbody>[TR]
[TD]Dates[/TD]
[TD="align: right"]HD1[/TD]
[TD="align: right"]HD2[/TD]
[TD="align: right"]HD3[/TD]
[TD="align: right"]HD4[/TD]
[/TR]
[TR]
[TD]1st[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"] 1/2/2018[/TD]
[TD="align: right"]1/2/2018[/TD]
[TD="align: right"]1/2/2018[/TD]
[/TR]
[TR]
[TD]2nd[/TD]
[TD="align: right"]2/5/2018[/TD]
[TD="align: right"] 2/5/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"] [/TD]
[/TR]
[TR]
[TD]3rd[/TD]
[TD="align: right"]1/15/2018[/TD]
[TD="align: right"] 1/16/2018[/TD]
[TD="align: right"] 1/16/2018[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]4th[/TD]
[TD="align: right"]2/26/2018[/TD]
[TD="align: right"]2/26/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
Thus, column next to HD4 should look like this:
FORMULA
HD4
HD2
HD3
HD2
Thank you!
[TABLE="width: 336"]
<colgroup><col><col span="4"></colgroup><tbody>[TR]
[TD]Dates[/TD]
[TD="align: right"]HD1[/TD]
[TD="align: right"]HD2[/TD]
[TD="align: right"]HD3[/TD]
[TD="align: right"]HD4[/TD]
[/TR]
[TR]
[TD]1st[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"] 1/2/2018[/TD]
[TD="align: right"]1/2/2018[/TD]
[TD="align: right"]1/2/2018[/TD]
[/TR]
[TR]
[TD]2nd[/TD]
[TD="align: right"]2/5/2018[/TD]
[TD="align: right"] 2/5/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"] [/TD]
[/TR]
[TR]
[TD]3rd[/TD]
[TD="align: right"]1/15/2018[/TD]
[TD="align: right"] 1/16/2018[/TD]
[TD="align: right"] 1/16/2018[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]4th[/TD]
[TD="align: right"]2/26/2018[/TD]
[TD="align: right"]2/26/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
Thus, column next to HD4 should look like this:
FORMULA
HD4
HD2
HD3
HD2
Thank you!