Identify

richmcgill

Board Regular
Joined
Feb 4, 2019
Messages
83
Office Version
  1. 2016
Platform
  1. Windows
I need help.
In this example, the Account number is constant. I am looking for duplicates.
I need to identify if the account number is on here more than once.
The description dates match (the words do not matter)
Gives me a result of Delete for the persons ID of AABB.
Person CCDD would be "Okay"
If there is not a match or duplicate it should read "Okay"
Make sense?
Any help is appreciated.

Account NumberPersonDescriptionSolution or Desired Results
123456789AABBChanged 05/01/24Delete
123456789AABBChanged 05/15/24Delete
123456789CCDDCorrected 05/01/24Okay
123456789CCDDCorrected 05/15/24Okay
 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Assuming the date is always on the right:

Book1
ABCD
1Account NumberPersonDescriptionSolution or Desired Results
2123456789AABBChanged 05/01/24Delete
3123456789AABBChanged 05/15/24Delete
4123456789CCDDCorrected 05/01/24Okay
5123456789CCDDCorrected 05/15/24Okay
Sheet5
Cell Formulas
RangeFormula
D2:D5D2=IF(AND(COUNTIF($C$2:$C$5,"*"&TRIM(RIGHT(SUBSTITUTE(C2," ",REPT(" ",99)),99)))>1,NOT(B2="CCDD")),"Delete","Okay")
 
Upvote 0
Solution
Assuming the date is always on the right:

Book1
ABCD
1Account NumberPersonDescriptionSolution or Desired Results
2123456789AABBChanged 05/01/24Delete
3123456789AABBChanged 05/15/24Delete
4123456789CCDDCorrected 05/01/24Okay
5123456789CCDDCorrected 05/15/24Okay
Sheet5
Cell Formulas
RangeFormula
D2:D5D2=IF(AND(COUNTIF($C$2:$C$5,"*"&TRIM(RIGHT(SUBSTITUTE(C2," ",REPT(" ",99)),99)))>1,NOT(B2="CCDD")),"Delete","Okay")
That works awesome!!!!

Thank you for the help!
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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