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

[TABLE="width: 64"]
<colgroup><col width="64" style="width: 48pt;"></colgroup><tbody>[TR]
[TD="width: 64, align: right"]4512[/TD]
[/TR]
[TR]
[TD="align: right"]6510[/TD]
[/TR]
[TR]
[TD="class: xl63, align: right"]6510[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[/TR]
[TR]
[TD="align: right"]2111[/TD]
[/TR]
[TR]
[TD="align: right"]8548[/TD]
[/TR]
[TR]
[TD="align: right"]6547[/TD]
[/TR]
[TR]
[TD="class: xl63, align: right"]6547[/TD]
[/TR]
[TR]
[TD="align: right"]5587

[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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