why Excel shows duplicate values when using Conditional formatting

ziycafe

New Member
Joined
Dec 2, 2023
Messages
9
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
New Microsoft Excel Worksheet (2).xlsx
B
3
Sheet2


Conditional formatting>Highlight cells rules>Duplicate values shows duplicate even if there is no identical values
conditional formatting.jpg
 

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
Use formula
Excel Formula:
=CLEAN(TRIM(A1))
Also paste as values the whole column. It has space in between so it is showing as duplicate
 
Upvote 0
New Microsoft Excel Worksheet (2).xlsx
A
1537053000012963
20464053000010099
3822053000003254
4537053000012984
55555053000093726
65555053000093749
75555053000093739
80537053000013098
90537053000013101
100537053000013099
115555053000093743
12537053000013042
135555053000093705
14537053000012992
155555053000093711
16537053000013041
175555053000093728
180537053000013210
195555053000093733
20537053000012981
21537053000013125
220537053000013156
23537053000013074
240537053000013160
25537053000013112
260537053000013159
27537053000013177
285555053000093704
290537053000013178
305555053000093744
315555053000093735
320537053000013108
33537053000013136
34537053000013157
350537053000013172
360537053000013215
370537053000013185
380537053000013213
390537053000013216
40537053000013168
41537053000013053
425555053000093719
430537053000013211
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A:ACell ValueduplicatestextNO
 
Upvote 0
New Microsoft Excel Worksheet (2).xlsx
A
1537053000012963
20464053000010099
3822053000003254
4537053000012984
55555053000093726
65555053000093749
75555053000093739
80537053000013098
90537053000013101
100537053000013099
115555053000093743
12537053000013042
135555053000093705
14537053000012992
155555053000093711
16537053000013041
175555053000093728
180537053000013210
195555053000093733
20537053000012981
21537053000013125
220537053000013156
23537053000013074
240537053000013160
25537053000013112
260537053000013159
27537053000013177
285555053000093704
290537053000013178
305555053000093744
315555053000093735
320537053000013108
33537053000013136
34537053000013157
350537053000013172
360537053000013215
370537053000013185
380537053000013213
390537053000013216
40537053000013168
41537053000013053
425555053000093719
430537053000013211
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A:ACell ValueduplicatestextNO

Excel highlight that as duplicates, because within the default conditional formatting rule Excel converts text that looks like numbers as numbers.
You can avoid that if you add any non numerical char to the number (at front or end).
C1: ="#"&A1
Now Excel "sees" the text as text, does no conversation and compares the strings.

Similar solution in Microsoft Forum
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,178
Members
452,615
Latest member
bogeys2birdies

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