conditional format??

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
287
Office Version
  1. 365
Platform
  1. Windows
I'm seriously stuck on this one.
The column "N" is times my drivers are supposed to be at their cars.
The column is highlighted yellow, showing me how many more runs my drivers have for the day.
In N3 I want to put a number (for example 4) that's how many trucks I have ready to be sent out.
How would I be able to use the number in "N3" and it will take the yellow highlights and make them green letting me know that my shipments are safe until a certain time?
Keep in mind that I have a top section and a bottom section, but I need them both to work together.
Thanks

Weekday Bus Cycling - copy.xlsx
N
1
2Sign on
3
410:05
515:00
616:00
718:00
8
920:00
10
11
124
13
14
15Sign on
16
1711:35
1812:02
1912:20
2012:25
2116:00
2217:00
2318:00
24
25
2612:00
2716:00
2819:00
29
305
31
32
Steeprock
Cell Formulas
RangeFormula
N12N12=COUNTIF(N4:N11,">="&$A$1)
N30N30=COUNTIF(N17:N29,">="&$A$1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D4:D11,N4:N11,D17:D29,N17:N29Cell Value>MOD(NOW(),1)textNO
 
This will not work as the "10" is not a constant and will change depending on the # of trucks I have ready to go
Then see the conditional format formula in the post 7 based on cell A2 value
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Then see the conditional format formula in the post 7 based on cell A2 value
I'm trying to put that into my sheet, only problem is that I have 4 ranges to pick data from
d4:d26, d32:d69, n4:n26, n32:n69
when I combine those into your suggestion, it didnt work
***follow the sheet in post 5****
 
Upvote 0
AFAIK you can't use a formula with non-contiguous ranges in conditional formatting (you can use the built in function and edit the value)
 
Upvote 0
AFAIK you can't use a formula with non-contiguous ranges in conditional formatting (you can use the built in function and edit the value)
Is there a way to make a condition based on the color of the cell? Then we can come up with a formula to change the lowest "X" amount of "yellow" cells in a range to "Green"
 
Upvote 0
Not tonight as it is the early hours of the morning here and I am at work tomorrow.

You will also need all your cells in yellow done by VBA as the conditional formatting you have takes priority over any fill colour we put in via VBA.

It is much easier just to do the clicks (or ALT + H, L, R to get you part way there) and change the number in the formatting rules
 
Upvote 0
Sorry, Let me explain it better.
$D$1 =MOD(NOW(),1)
What I want to do is have a number in Cell "A2". That number would be how many trucks are ready to hit the road, (ie 10)
I want a way to take the "10" lowest numbers that are Highlighted in yellow (they have a conditional format already to make them yellow) and make them green

Weekday Bus Cycling - Copy.xlsx
ABCDEFGHIJKLMNOPQRS
4MDDS5115SPLTmuwtf6:106:258:55DDS98.6771MDDS5121RELmuwtf10:0510:2020:20DDS394.644
5MDDS5113SPLTmuwtf5:556:109:50DDS125.8742MDDS5122RELmuwtf10:4010:5519:55DDS328.82
6MDDS5101REGmuwtf2:252:4010:50DDS300.6253MDDS5124RELmuwtf11:5012:0521:50DDS409.936
7MDDS5107REGmuwtf4:505:0511:10DDS222.3474MDDS5125SPLTmuwtf12:0512:2017:45DDS227.905
8MDDS5118SPLTmuwtf6:557:1011:30DDS137.6725MDDS5126RELmuwtf12:1912:3423:45DDS449.661
9MDDS5102REGmuwtf2:252:4012:05DDS442.8966MDDS5127SPLTmuwtf12:5013:0518:30DDS223.105
10MDDS5112REGmuwtf5:405:5512:25DDS227.9147MDDS5128RELmuwtf13:2013:3523:10DDS350.172
11MDDS5106REGmuwtf4:254:4013:05DDS330.0758MDDS5129RELmuwtf13:3013:4522:15DDS255.073
12MDDS5109REGmuwtf4:555:1013:15DDS267.4439MDDS5130RELmuwtf13:3513:5023:43DDS437.086
13MDDS5103REGmuwtf3:253:4013:20DDS420.21210MDDS5131RELmuwtf13:5514:1021:40DDS296.312
14MDDS5104REGmuwtf4:054:2013:50DDS412.59811MDDS5132RELmuwtf14:0514:200:25DDS406.034
15MDDS5105REGmuwtf4:204:3513:55DDS318.80712MDDS5133RELmuwtf14:2014:3522:15DDS307.042
16MDDS5114REGmuwtf6:006:1514:10DDS213.23913MDDS5134RELmuwtf14:3014:4521:15DDS210.293
17MDDS5108REGmuwtf4:555:1014:20DDS420.21214MDDS5135RELmuwtf14:4515:0022:45DDS220.381RPT
18MDDS5110REGmuwtf5:055:2014:30DDS284.5415MDDS5136RELmuwtf15:0515:200:25DDS339.3
19MDDS5111REGmuwtf5:405:5515:20DDS374.47216MDDS5137RELmuwtf16:1516:253:10DDS436.021
20MDDS5116REGmuwtf6:206:3518:10DDS428.41717
21MDDS5117REGmuwtf6:356:5018:35DDS402.57518
22MDDS5119REGmuwtf7:057:2018:55DDS427.62919
23MDDS5120REGmuwtf7:357:5019:55DDS404.48820
2421MDDS5123RELmuwtf10:452:0020:35DDS349.439
25
26
273201717
Steeprock
Cell Formulas
RangeFormula
D27,P27,N27,F27D27=COUNTIF(D4:D26,">="&$D$1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
P4:P26,F4:F26,P32:P69,F32:F69,P73:P1048576,F73:F1048576Cell Value>$D$1textNO
N4:N26,D4:D26,N32:N69,D32:D69,N73:N1048576,D73:D1048576Cell Value>$D$1textNO
How can I combine my already used conditional format with a "SMALL" format to highlight the smaller cells in a different color
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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