Find Duplicate data in rows and place X on both rows

Peptide

Board Regular
Joined
Apr 12, 2016
Messages
224
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have data set example as follows: I want to call out the duplicate names so if A! and B1 match AND B1 and B2 match then place an X in C1 and C2. Is this possible with a formula (not VBA) or other option?

Thanks in advance!

A1 Bob B1 Jensen
A2 Bob B2 Jensen
A3 Tom B3 Allann
A4 Bill B4 Sun
A5 Bob B5 Jacobs
A6 Joe B6 Black
A7 Joe B7 Black
A8 Jeff B8 Thompson
A9 Larry B9 Pappas
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hello,

I have data set example as follows: I want to call out the duplicate names so if A! and B1 match AND B1 and B2 match then place an X in C1 and C2. Is this possible with a formula (not VBA) or other option?

Thanks in advance!

A1 Bob B1 Jensen
A2 Bob B2 Jensen
A3 Tom B3 Allann
A4 Bill B4 Sun
A5 Bob B5 Jacobs
A6 Joe B6 Black
A7 Joe B7 Black
A8 Jeff B8 Thompson
A9 Larry B9 Pappas


You could create a helper column in, say, Column Z.
in Z1
=a1&b1
[drag down]

in C1
=if(countif(z:z,z1)>1,"x","")
[drag down]
 
Upvote 0
Another option like

Excel 2013/2016
FGH
9BobjensenX
10BobjensenX
11Tomallan
12BobSun
13JoeBlackX
14JoeBlackX
2Years
Cell Formulas
RangeFormula
H9=IF(SUMPRODUCT(--(F$9:F$14&"|"&G$9:G$14=F9&"|"&G9))>1,"X","")
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
Fluff...what does the "|" do in your formula?

I hope that follow up question doesn't violate the posting rules.
 
Upvote 0
It's just a delimiter to ensure that the formula works correctly.
If you concatenated the two value like F9&G9, without the delimiter then if you had values like
F9 = 12 & G9 =345
you would end up with 12345
and then if you had
f11= 123 & g11= 45
you would also have 12345 which would give a false positive.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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