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.....?
 

c_m

Well-known Member
Joined
May 29, 2008
Messages
836
Hello and Welcome to the Board!
If formatted numbers are supposed to be of length 8 then try this:
=LEN($A1)<>8
 

jbeaucaire

Well-known Member
Joined
May 8, 2002
Messages
6,012
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
 

Fazza

MrExcel MVP
Joined
May 17, 2006
Messages
9,189
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
 

Forum statistics

Threads
1,081,693
Messages
5,360,664
Members
400,592
Latest member
katekoz

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top