Conditional Format a cell should the value in teh cell fall between the numbers in two other cells

damian_r_Home

Board Regular
Joined
Jan 8, 2005
Messages
231
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Afternoon All.

A Friday afternoon failing on my part...

I require cell G8 to change colour if the value in G8 (which is achieved by the sum =E8-C8) falls between the values which are manually entered into G3 & G4.
G3 will have a positive number (such as 10) while G4 will have a negative number (such as -10).

You help, as always, will be much appreciated.

D
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
select G8
then in conditional formatting
set a formula
=AND( G8 > G4 , G8 < G3 )
if you want to include if equal

then
=AND( G8 > = G4 , G8 < = G3 )

Book6
ABCDEFGH
1
2
3G3 will have a positive number (such as 10) while G4 will have a negative number (such as -10).select G8 then in conditional formatting set a formula =AND( G8 > G4 , G8 < G3 ) if you want to include if equal then =AND( G8 > = G4 , G8 < = G3 )10
4-10
5
6
7
84
9
10
11
12
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G8Expression=AND(G8>=G4,G8<=G3)textNO
 
Upvote 0
Solution
Thanks etaf, I'll give that a go now and then i can finish work for the week (hopefully)
 
Upvote 0
to stop blank cells being included then add G8<>""
Book6
G
2
310
4-10
5
6
7
8
9
10
11
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G8Expression=AND(G8<>"",G8>=G4,G8<=G3)textNO
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,542
Members
449,316
Latest member
sravya

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