# Colour format based on cell value question

#### M Welsh

##### New Member
Hi

I've been trying for a couple of hours to conditional colour format cells based on cell value but can't get it right. I have the formulas but I only seem to be able to enter 1 formula but I need to enter 3?

My rules are:

If B7=>99 but less than 99.9 then shade amber

Any help is much appreciated in how I can enter 3 different formulas

Michael

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

#### Special-K99

##### Well-known Member
Re: Colour format bsed on call value question

Select the range to highlight (presumably just B7 in this case)

Conditional Formatting
New Rule
Use a formula to determine...

3 colours = 3 formulas

=AND(B7>=99,B7<99.9)
format as amber

=AND(B7>=0,B7<99)
format as red

=B7=100
format as green

QUESTION: Are you sure you meant B7=100 ? Not greater than or equal 100 ?

Last edited:

#### M Welsh

##### New Member
Re: Colour format bsed on call value question

Thanks for the quick response SpecialK. Do you know how I enter 3 formulas when in "new rule", "use formula to determine...". I can enter one formula to format 1 colour but can't see a way of doing it to get 3 colours.

Hope that makes sense. I've tried to take screenshot but I'm not able to paste into the forum.

#### Special-K99

##### Well-known Member
Re: Colour format bsed on call value question

Enter one formula at a time.

New formula (amber)
New fromula (red)
New formula (green)

FYI You cant attach files on this forum.
Should you want to post a spreadsheet at some future stage there are tools on this forum for adding small spreadsheet images

Last edited:

#### M Welsh

##### New Member
Re: Colour format bsed on call value question

You are a star Special K - all sorted, just had to do one at a time. Been bugging me for years so much appreciated

1,102,266
Messages
5,485,762
Members
407,513
Latest member
Gregor Lockyer

### This Week's Hot Topics

• Finding issue in If elseif else with For each Loop
Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
• MsgBox Error
Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
• CELL FORMAT - IF CONDITION
My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
• Show numbers nearly the same
Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...