Duplicate text find

Manolocs

Active Member
Joined
Mar 28, 2008
Messages
340
Hello,
I concatenate two columns, and delete all spaces from the results, after that I conditional format to find duplicated texts. It works ok. My question is: Is there a way to check duplicate for the 10 first characters, or maybe 5 first ones?
it would help to find some differences in text.
Thanks in advance...
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
This is testing for the same first 3 characters, just change the 3 in the formula to whatever you want.

Excel Workbook
B
1
2abcdef
3abcryu
4plxt
5plot
6abfcd
7plowing
8abcwqt
9
CF same left
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B21. / Formula is =COUNTIF(B$2:B$8,LEFT(B2,3)&"*")>1Abc
 
Upvote 0
@Peter_SSs the formula gives only FALSE or TRUE. Am I doing something wrong?
It is supposed to just give True/False but it should be used in Conditional Formatting, not a cell.
For my example, select B2:B8 then Home ribbon tab -> Conditional Formatting -> New Rule ... -> Use a formula to determine which cells to format -> Format values where this formula is true: =COUNTIF(B$2:B$8,LEFT(B2,3)&"*")>1 -> Format... -> Choose your format -> OK -> OK
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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