I have some entries as shown in the image below and I am looking for a formula or VBA code (best to be formula) to do a calculation in column J.
The logic I want is:
Under the condition that values in column D are the same, return the latest day in column I. For example, D2 to D14 are with the same value, so return the latest day from I2 to I14 which is 3/16/17.
Column D is the report number, one report can include several transactions, e.g. if I have 10 transactions in one report, I have 10 lines with the same report number. I am trying to identify the date of the last transaction of this report. With right formula, J2 to J14 should all be 3/16/2017.
Can anyone tell me how to do it?