Conditional formatting for numbers

SAXON10

Board Regular
Joined
Jun 1, 2017
Messages
109
Hi,

Column A1:A10 which contains text and numbers with duplicate entry. How to apply conditional formatting for numbers not text. If cells

contain duplicate numbers then CF indicate red colors.


I am apply the following formula in A1=ISNUMBER(COUNTIF($A1:$A10,$A1))>1 but its not working.

Any help much appreciated.


DATA

4512
6510
6510
AA
AA
2111
8548
6547
6547
5587


<colgroup><col width="64" style="width: 48pt;"></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try this Conditional Formatting formula:
Code:
[COLOR=#333333]=AND(ISNUMBER($A1),COUNTIF($A$1:$A$10,$A1)>1)[/COLOR]
that will highlight all the duplicates.

If you only want the 2nd, 3rd, etc occurrence of a number highlighted (and not the first one), try:
Code:
[COLOR=#333333]=AND(ISNUMBER($A1),COUNTIF($A$1:$A1,$A1)>1)[/COLOR]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,324
Messages
6,124,250
Members
449,149
Latest member
mwdbActuary

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