Help for excel formula; find duplicate names and then find most recent date

MSchädler

Board Regular
Joined
Apr 27, 2017
Messages
95
Hello there and I require some help to build an excel formula.

Situation: I have a column A with names and a column B with dates.
In my table there are entries with the exact same name, but of those with different entry dates.
I want in column C to identify for each row name duplicates and within these duplicates which one has the most recent date.

The result should give an entry in Column C as =1. All other results should give an entry of = 0.

Can somebody tell me the formula to use in C to achieve this? By the way I have >5000 rows.:)

Here is my example:
A (Name)B (Date)C (most recent entry)
Toronto12.03.2017 0
Halifax15.06.2017 0
Toronto18.05.2017 1
Maxim01.03.2016 0
Triton16.06.2017 1
Maxim05.03.2017 1
Halifax20.08.2017 1
Toronto15.04.2017 0

<tbody>
</tbody>

Thank you for the help.
M.
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try this in C1 and drag down.

=IF(COUNTIFS(A:A,A1,B:B,"<="&B1)=COUNTIF(A:A,A1),1,0)

If you have headers, put it in C2, and change A1 and B1 to A2 and B2.
 
Upvote 0
Hello Eric

Many thanks for your help and for the formula. Your inputs with a bit of adaptation works wonderful.
You saved my day:)!!!

Regards, M.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top