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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
"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,223,885
Messages
6,175,184
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