I have a list if ID's in column A where some ID's are repeated and column B I have a list of dates.
I want to be able to find the latest date for a specific ID and wondered if the best way to do this is to use VBA code to use the 'Find & Replace' option to find each instance of the ID and establish if the date is greater than the one stored in memory.
So prior to the first instance of the ID there would be no stored date and the first instance would be stored as the date, then when the 2nd instance of the ID is found, if the date is greater then the stored date the this 2nd date is then stored in memory as the date, on so on until the last instance of the ID has been found.
I am struggling to work out what the code would be to do this so if anyone could help it would be appreciated.
TIA
I want to be able to find the latest date for a specific ID and wondered if the best way to do this is to use VBA code to use the 'Find & Replace' option to find each instance of the ID and establish if the date is greater than the one stored in memory.
So prior to the first instance of the ID there would be no stored date and the first instance would be stored as the date, then when the 2nd instance of the ID is found, if the date is greater then the stored date the this 2nd date is then stored in memory as the date, on so on until the last instance of the ID has been found.
I am struggling to work out what the code would be to do this so if anyone could help it would be appreciated.
TIA