Conditional formatting formula/steps to format based on criteria

Amos N

New Member
Joined
Dec 14, 2022
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
  2. Web
MinStock ROL On Hand
0.0 300 2298.48
0.0 300 2318.48
49.9 50 46.08
49.9 50 47.67

assist with formula for conditional formatting or Formula to change colour on on Hand column after meeting 3 conditions below
RED if on hand < Minstock
Yellow if min<on hand<=ROL
Green if ROL<on hand
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
three rules

Not sure on the Yellow , as the other 2 rules in your example RED and GREEN are met

RED
=$C2<$A2

GREEN
=$B2<$C2

can you explain YELLOW again
Min is < ONHAND
OR
ONHAND <= ROL
or we can use an AND
AND( Min < ONHAND , ONHAND <= ROL )

But as i say in your example all 4 rows meet either Green or RED


Book5
ABCDEFG
1MinStockROLOn Hand
203002298.48RED if on hand < Minstock
303002318.48Yellow if min<on hand<=ROL
449.95046.08Green if ROL<on hand
549.95047.67
6
7
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:C5Expression=$B2<$C2textYES
A2:C5Expression=$C2<$A2textNO


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A2:C100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=$C2<$A2

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Try the below:
Book1.xlsm
ABCDEFGH
1
2Min StkROLOn HandRedYellowGreen
303002298.48FALSEFALSETRUE
403002318.48FALSEFALSETRUE
549.95046.08TRUEFALSEFALSE
649.95047.67TRUEFALSEFALSE
7
Sheet2
Cell Formulas
RangeFormula
E3:E6E3=D3<B3
F3:F6F3=AND(B3<D3,D3<=C3)
G3:G6G3=C3<D3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D3:D6Expression=D3<B3textNO
D3:D6Expression=AND(D3<B3,B3<=A3)textNO
D3:D6Expression=C3<D3textNO
 
Upvote 0
Solution

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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