Duplication Condition Format Formula

Newbienew

Active Member
Joined
Mar 17, 2017
Messages
376
Office Version
  1. 2016
Platform
  1. Windows
Hello All,

I have a condition formate that allows me to highlight names in to separate columns. but I need the formula to exclude characters buy still highlight them as duplicates if that makes sense.
So some names have ( ' ) or a space or even ( - ). But I am looking for the formula to count it as a duplicate.
Jameso'brien
Jamesobrien
JoseArroz-Ortega
JoseArroz Ortega
JoseArroz-Ortega

The formula that i am using is =COUNTIFS($F$1:$F$96739,$F1,$G$1:$G$96739,$G1)>1

I also use a modified verison to detect duplicates on other sheets as well. I have provided a link as I am not able to use XL2BB. It crashes every time i use it. BLANK WORKBOOK.xlsb
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Does the below help?
I would suggest that a pair of 'helper columns', which could be hidden, would be the way to go if you can.
Otherwise you could use a single Sumproduct formula but it would be a bit unwieldy.

Book1
FGHIJ
2Jameso'--- brien3Jamesobrien
3Jamesobrien3Jamesobrien
4Fredo brien1Fredobrien
5Jame's obrien3Jamesobrien
6Jamesonion1Jamesonion
Sheet10
Cell Formulas
RangeFormula
H2:H6H2=COUNTIFS($I$2:$I$100,I2,$J$2:J$100,J2)
I2:J6I2=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(F2,"'",""),"-"," ")," ","")
 
Upvote 0
I think i am lost on how your formula would work as a condition format. It would seem I would have two columns of names I think. Is this about right from what iam following
 
Upvote 0
I think i am lost on how your formula would work as a condition format. It would seem I would have two columns of names I think. Is this about right from what iam following

I'm not surprised that you are lost! My apologies, I totally lost sight of the fact that this was related to conditional formatting.:oops:

However maybe the below will make more sense.

Book1
FG
2Jameso'--- brien
3Jamesobrien
4Fredo brien
5Jame's obrien
6Jamesonion
7james o brien
Sheet10
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:G7Expression=SUMPRODUCT(--(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($G$2:$G$11&$F$2:$F$11,"'",""),"-","")," ","") =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($G2&$F2,"'",""),"-","")," ","")))>1textNO


Obviously, you will need to tweak the range references.
 
Upvote 0
I attempted to try it but this is what i got for my results

LAST NAME (0)FIRST NAME (0)
LEWISTHOMAS
LEWISTHOMAS
JONESKELLY
 
Upvote 0
What columns and range of rows for the names, excluding the header row?
 
Upvote 0
The Columns are F and G. This is what i am currently using.

=COUNTIFS($F$1:$F$96739,$F1,$G$1:$G$96739,$G1)>1 (same sheet condition format)
=COUNTIFS(GAINS!$E$2:$E$8610,$F1,GAINS!$F$2:$F$8610,$G1)>0 (gains sheet condition format) this checks the top sheet and find duplicates on that sheet with this sheet.
=COUNTIFS('APP LOG'!$F$2:$F$13452,$F1,'APP LOG'!$G$2:$G$13452,$G1)>0 (app sheet condition format) this checks the top sheet and find duplicates on that sheet with this sheet.
 
Upvote 0
This would prevent highlighting rows with blanks but, sadly, I think if you extend this approach to nearly 70000 rows it will struggle.

Book1
FG
1 LAST NAME (0)FIRST NAME (0)
2LEWISTHOMAS
3LEWISTHOMAS
4JONESKELLY
5JONESKEILY
6O'BRIENCHARLIE
7JONESKelly
8OBRIENCHARLIE
9
10
11SmithclarkJoe
12Smith ClarkJoe
13ScuttleFred
14SmithTom
15
Sheet13
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F1:G700Expression=SUMPRODUCT((SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($G$1:$G$7000&$F$1:$F$7000,"'",""),"-","")," ","") =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($G1&$F1,"'",""),"-","")," ",""))*($G$1:$G$7000>""))>1textNO
 
Upvote 0
This would prevent highlighting rows with blanks but, sadly, I think if you extend this approach to nearly 70000 rows it will struggle.

Book1
FG
1 LAST NAME (0)FIRST NAME (0)
2LEWISTHOMAS
3LEWISTHOMAS
4JONESKELLY
5JONESKEILY
6O'BRIENCHARLIE
7JONESKelly
8OBRIENCHARLIE
9
10
11SmithclarkJoe
12Smith ClarkJoe
13ScuttleFred
14SmithTom
15
Sheet13
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F1:G700Expression=SUMPRODUCT((SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($G$1:$G$7000&$F$1:$F$7000,"'",""),"-","")," ","") =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($G1&$F1,"'",""),"-","")," ",""))*($G$1:$G$7000>""))>1textNO
I think i see your point. I did get it to work but I do see how it may struggle. The workbook already freezes time to time. I am not sure if it is due to how much data there is, formulas, or the computer memory lol
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,834
Members
449,051
Latest member
excelquestion515

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