duplicate name differing ID finder

I need a formula to help identify cases where the name column (column C), appear more than once in a column of data, but only where the customer ID (column B) is different for these customers. If the customer name and ID is the same on each row that that name appears, that's not a true duplicate.

e.g.
ID--Name
123-J Bloggs
123-J Bloggs
456-A Bloggs
678-A Bloggs

should flag only the last 2 records as both have same customer name, but differing ID's. I then need to do it the other way round, where supplier ID is the same for however many rows but flag instances where the same ID shows 2 differing CUSTOMER names against that ID.
LVL 4
pma111Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ShumsDistinguished Expert - 2017Commented:
Try below in D2 and drag down:
=IF(COUNTIFS($B$2:$B$5,$B2,$C$2:$C$5,$C2)>1,"","Flag")

Open in new window

CountDupsChange the range accordingly.
1
Juan OcasioApplication DeveloperCommented:
Try this:
=IF(C2=C1,IF(B2<>B1,TRUE,FALSE),IF(C2=C3,IF(B2<>B3,TRUE,FALSE),FALSE))
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pma111Author Commented:
first solution doesn't seem to work with the ranges changed, ithe first row I picked that was flag there was only 1 row in the data specific to that customer name so it cant be correct.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

pma111Author Commented:
2nd solution does work, but as per the question I'd like to also "I then need to do it the other way round, where supplier ID is the same for however many rows but flag instances where the same ID shows 2 differing customer names against that ID." - any guidance most welcome.
0
ShumsDistinguished Expert - 2017Commented:
Please upload sample/dummy workbook with expected result
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Formula suggested by Shums should work as per the condition you set to flag a duplicate.
Can you upload a sample workbook and show where does it not work?
0
Juan OcasioApplication DeveloperCommented:
"I then need to do it the other way round, where supplier ID is the same for however many rows but flag instances where the same ID shows 2 differing customer names against that ID."

=IF(B2=B1,IF(C2<>C1,TRUE,FALSE),IF(B2=B3,IF(C2<>C3,TRUE,FALSE),FALSE))
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.