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
227
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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
5,682
Office Version
  1. 365
Platform
  1. MacOS
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
 
Solution

damian_r_Home

Board Regular
Joined
Jan 8, 2005
Messages
227
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Thanks etaf, I'll give that a go now and then i can finish work for the week (hopefully)
 

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
5,682
Office Version
  1. 365
Platform
  1. MacOS
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,139
Messages
5,835,638
Members
430,373
Latest member
swartzfeger

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
Top