pablotravel

New Member
Joined
Jan 19, 2009
Messages
16
:confused:.... So I am trying to apply conditional formatting to a document of mine and I cant seem to figure out how to make this conditional formatting work. I have in column A numbers formatted this way, here is an example: 00087965. When the numbers are not formatted this way I need it to be flagged in red or blue. Any suggestions.....?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hello and Welcome to the Board!
If formatted numbers are supposed to be of length 8 then try this:
=LEN($A1)<>8
 
Upvote 0
You could use a custom number format to make sure the numbers in column A always show the leading zeros.

Highlight the column (or range this applies to)
Ctrl-1 to open Format Cells box
Number > Category > Custom
Type: 00000000
 
Upvote 0
Hi pablo,

Please paste the exact format for which you want to check. Such as, go to a cell with the desired format and get from the format dialog box (CTRL-1) the exact format. So it might be "00000000"

When this is known, a formula can be created to do what you want via conditional formatting.

regards, Fazza
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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