how to remove duplicate day entries

bigdan

Well-known Member
Joined
Oct 5, 2009
Messages
846
Office Version
  1. 2013
Platform
  1. Windows
I'm dealing w/ a file about 1800 rows long.

This is the log of who entered the gym at any given time. Now each time someone enters that's recorded. Which means if someone enters 3x a day I get 3 entries.

I want to remove the duplicates so that if I enter twice today and twice tomorrow I only see one entry for each date (per person).

An example of duplicates below. The date and time is col A, name is col B.
It doesn't matter which of the 3 entries is gotten rid of.

7/13/2011 9:23:50 AM Howard, John
7/13/2011 9:58:14 AM Howard, John
7/13/2011 2:01:00 PM Howard, John
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
thanks for this. this is close but not fully complete.

this removes exact duplicates. i.e. if the same person came in on august 2nd at the same time then this would remove it. but if he came in on same day but different time, as would of course be the case, then it doesnt catch it.

one way around this would be to split the first cell into 2, date in one column time in the other, remove the times, and just concentrate on the dates with names. how does one do that?

alternatively there may be a way to remove duplicate days directly?
 
Upvote 0
When you remove duplicates, Select both columns then click Remove Duplicates. Now a window displays and says "Which col has duplicates?" and by default both columns will have a check box next to them.

Just uncheck the Col that contains date/time, but leave the Col with the names checked, then click OK.

Excel will ignore the date/time col and delete every row that has a dup name, leaving you with one name left.
 
Upvote 0
got it thanks!

not sure how it works on this forum, when my question is done do i say thread closed or something, or is this automatic or not necessary?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,275
Members
452,902
Latest member
Knuddeluff

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