Find duplicates

NichoD

Board Regular
Joined
Jul 31, 2022
Messages
54
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I have different columns with date. All data in column O are sorted ID-numbers, while column c are dates. I want to first check i duplicates exists in colmn O, and if it does check if column C, containing dates differ.

For example; If O4, O5 and O6 all have ID-number 12345. C4 is 2023-05-20, C5 2023-05-20 and C6 2023-05-22, this should be alerted.

If O7 and O8 have ID-number 5678 and C7 and C8 is 2023-06-01, nothing is alerted.

How should this be performed?

Kind Regards.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi NichoD,

Try this formula:
=IF(COUNTIF(O:O,O4)>COUNTIFS(O:O,O4,C:C,C4),"Alert","Good")

Logic as follows, count how many same IDs there are, then count that to how many same IDs+Date there are. If less, then there's a differing date for the same ID.

Thanks.

Book1
CDEFGHIJKLMNOP
3DateID-numbers
42023-05-2012345Alert
52023-05-2012345Alert
62023-05-2212345Alert
72023-06-015678Good
82023-06-015678Good
92023-07-011Good
102023-07-012Good
Sheet1
Cell Formulas
RangeFormula
P4:P10P4=IF(COUNTIF(O:O,O4)>COUNTIFS(O:O,O4,C:C,C4),"Alert","Good")
 
Upvote 1
Another option
Excel Formula:
=IF(COUNTIFS(O:O,O2,C:C,"<>"&C2),"Alert","Ok")
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,756
Messages
6,174,320
Members
452,555
Latest member
colc007

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