conditional formatting for numbers only

mbnott

New Member
Joined
Aug 1, 2024
Messages
7
Office Version
  1. 2016
Platform
  1. Windows
Column N has a list of numbers (ie: 2024-001) but it also contains some cells with text (ie: see comments). I want to create a formatting rule that will highlight only the duplicate numbers. So, in this case the formatting would highlight both cells N218 and N219.

Picture2.jpg
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
"2023-013" is not a number, it's text.

Do all the "numbers" in N start with a 4-digit year? If so you can use this CF rule

Applies To: $N:$N
Rule formula:
Excel Formula:
=AND(ISNUMBER(VALUE(LEFT(N1,4))),COUNTIF(N:N,N1)>1)
 
Upvote 1
Solution
"2023-013" is not a number, it's text.

Do all the "numbers" in N start with a 4-digit year? If so you can use this CF rule

Applies To: $N:$N
Rule formula:
Excel Formula:
=AND(ISNUMBER(VALUE(LEFT(N1,4))),COUNTIF(N:N,N1)>1)

"2023-013" is not a number, it's text.

Do all the "numbers" in N start with a 4-digit year? If so you can use this CF rule

Applies To: $N:$N
Rule formula:
Excel Formula:
=AND(ISNUMBER(VALUE(LEFT(N1,4))),COUNTIF(N:N,N1)>1)
Yes, that worked perfectly! Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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