How to find partial duplicate vs no duplicate values in a column

GomaPile

Active Member
Joined
Jul 24, 2006
Messages
334
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

A common problem question (I'm sure its been mentioned here before). How to find partial duplicate vs no duplicate values in a column.

For instance both of these 2 shift times have the same shift code at the end "ED1" - 0630-1500 ED1 & 0700-1500 ED1 (one is 30mins less).

I can't figure out what I'm doing wrong, how to find this partial text ED1 to the right, though it's returning the #VALUE! error (I'm thinking to myself I'm way off the mark).

Code:
=IF(K7="For the period of:","",(IF(K7="","",IF(MAX(COUNTIF($K$6:$K$15,$K$6:$K$15),"*"&RIGHT($K6,7))>1,"Duplicate","No Duplicate"))))

Regards
Goma (NASA) :)
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi all,

[SOLVED]
It's all good, I managed to work it out myself, it works now. I removed this piece of coding ',$K$6:$K$15)'. If you guys come up with another solution I would like to know too.... cheers

Code:
=IF(K5="For the period of:","",(IF(K5="","",IF(MAX(COUNTIF($K$6:$K$15,"*"&RIGHT($K5,7)))>1,"Duplicate","No Duplicate"))))

Thanks
Goma (NASA) :)
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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