Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Cell color

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I would like to set colors to cells based on their values. If below or equal to 10, red. If between 10 and 70, yellow. If above or equal to 70, green. I tried using the Conditional Formatting feature, but all the blank cells in the range were colored red. The blank cells need to remain white. Any help will be greatly appreciated.

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-23 09:33, rkawasak wrote:
    I would like to set colors to cells based on their values. If below or equal to 10, red. If between 10 and 70, yellow. If above or equal to 70, green. I tried using the Conditional Formatting feature, but all the blank cells in the range were colored red. The blank cells need to remain white. Any help will be greatly appreciated.
    For the red condition use...

    =AND(LEN(A1)>0,A1<=10)

  3. #3
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Conditional formatting

    Condition 1
    Formula Is
    =AND(NOT(ISBLANK($A$1)),$A$1<=10)

    Condition 2
    Formula Is
    =AND($A$1>10,$A$1<=70)

    Condition 3
    Formula Is
    =AND($A$1>70,ISNUMBER($A$1))

    Format to suit.

    Bye,
    Jay

  4. #4
    New Member
    Join Date
    Apr 2002
    Location
    Capital One
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi Rk,

    Based on what you posted, if I was the computer I would have coloured the blank cells red as well You need to tell the conditional formatting at what point below 10 you want the cell to be white.

    You said 10 and below or:
    => 10 RED so Null (blank) cells will be RED.

    You might try a between statement in your conditional formatting. All cells BETWEEN .0000001 and 10 will be RED (this assumes that you will never have an amount less than .0000001).

    Take care,
    Tres

  5. #5
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks guys! Problem solved. Really appreciated the quick response, wow!

Some videos you may like

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
  •