Need Help With Conditional Formatting
VBA Telemetry pings you when your VBA projects fail
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 6 of 6

Thread: Need Help With Conditional Formatting

  1. #1
    Guest

    Default

     
    I would like cell A1 to have conditional formatting set so that if the number entered is less than 100, the cell turns red. That part I have, but if the cell is blank, I do not want it to turn any color.
    Can someone please show me how to porperly write out the formula to achive this?

    Thanks in advance!

    Randy

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,861
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-03-04 08:19, Anonymous wrote:
    I would like cell A1 to have conditional formatting set so that if the number entered is less than 100, the cell turns red. That part I have, but if the cell is blank, I do not want it to turn any color.
    Can someone please show me how to porperly write out the formula to achive this?

    Thanks in advance!

    Randy
    Select A1.
    Activate Format|Conditional Formatting.
    Choose Cell Value Is and Less Than, the enter the number 100 in the box next to the Less Than box.
    Activate Format.
    Select red as color on the Patterns tab.
    Click OK, OK.


  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sunny, spring-like Hull
    Posts
    3,339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I think you need a formula for this Aladin. Change the Cell Value Is to Formula Is and enter the following formula: -

    =AND(A1<>"",A1<100)

    Where A1 is the cell with your data in.

  4. #4
    Guest

    Default

    That formula works great, but there is one other thing that I can't figure out. It also changes the cell to red if the value is over 100. How do I prevent that?

    Thanks for all your help.

    Randy


  5. #5
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,861
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-03-04 13:53, Anonymous wrote:
    That formula works great, but there is one other thing that I can't figure out. It also changes the cell to red if the value is over 100. How do I prevent that?
    Randy

    =AND(ISNUMBER($A$1),$A$1<100)

    As Mudface noted, I failed to attend to your "but if the cell is blank".

    Aladin



  6. #6
    Guest

    Default

      
    That is exactly what I needed.

    Thanks, guys.

    Randy

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com