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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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