conditional format??

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
292
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
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Do you mean you want to know how many time slots are available for the remainder of the day that can meet your remaining deliveries?
Will you be entering a time value somewhere to do the comparison, or do you want the system time?

How do you enter the time values in Cells N4:N12, etc? Just hh:mm or is a a complete date? Do you ever go across midnight to a new day?
 
Upvote 0
what is the value in cell $A$1 that you are comparing your counts to?
 
Upvote 0
okay. I had to develop this with a fixed time value instead of now. So you'll need to update cell references and the NOW() value as appropriate.
This will highlight all times after your time check value that where the count of those is >= to your count check in row 3.
Conversely it will highlight in RED ALL times in the column above the time check count that are a>= to your count check in row 3.

Book1
NOPQ
1w NOW()w Q3 for dev
2Sign onSign ontime used for development
3516:00
410:05:0010:05:00
515:00:0015:00:00
616:00:0016:00:00
718:00:0018:00:00
8
920:00:0020:00:00
10
11
1202
Sheet1
Cell Formulas
RangeFormula
N12N12=COUNTIF(N4:N11,">="&$A$1)
O12O12=COUNTIF(O4:O11,">="&$Q$3)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O4:O11Expression=AND(SUM((--($Q$3<=$O$4:$O$11)))<$O$3,O4>=$Q$3)textNO
O4:O11Expression=AND(SUM((--($Q$3<=O4:O11)))>=N3,O4>=$Q$3)textNO
 
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
 
Upvote 0
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


Can you not just use the built in conditional format function for bottom 10 items for this?

1677798900034.png

1677799309484.png



Book1.xlsb
KLMNO
4MDDS5121RELmuwtf10:05:0010:20:00
5MDDS5122RELmuwtf10:40:0010:55:00
6MDDS5124RELmuwtf11:50:0012:05:00
7MDDS5125SPLTmuwtf12:05:0012:20:00
8MDDS5126RELmuwtf12:19:0012:34:00
9MDDS5127SPLTmuwtf12:50:0013:05:00
10MDDS5128RELmuwtf13:20:0013:35:00
11MDDS5129RELmuwtf13:30:0013:45:00
12MDDS5130RELmuwtf13:35:0013:50:00
13MDDS5131RELmuwtf13:55:0014:10:00
14MDDS5132RELmuwtf14:05:0014:20:00
15MDDS5133RELmuwtf14:20:0014:35:00
16MDDS5134RELmuwtf14:30:0014:45:00
17MDDS5135RELmuwtf14:45:0015:00:00
18MDDS5136RELmuwtf15:05:0015:20:00
19MDDS5137RELmuwtf16:15:0016:25:00
Sheet7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
N4:N19Cell Valuetop 10 bottom valuestextNO
 
Upvote 0
Or use the formula below

Book1.xlsb
A
25
Sheet7

Book1.xlsb
N
410:05:00
510:40:00
611:50:00
712:05:00
812:19:00
912:50:00
1013:20:00
1109:30:00
1213:35:00
1313:55:00
1410:05:00
1514:20:00
1614:30:00
1714:45:00
1815:05:00
Sheet7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
N4:N19Expression=N4<=SMALL($N$4:$N$19,$A$2)textNO
 
Upvote 0
will you ever have any values in the highlighted yellow column that is less than result of the formula in D1?
 
Upvote 0
Can you not just use the built in conditional format function for bottom 10 items for this?

View attachment 86641
View attachment 86644


Book1.xlsb
KLMNO
4MDDS5121RELmuwtf10:05:0010:20:00
5MDDS5122RELmuwtf10:40:0010:55:00
6MDDS5124RELmuwtf11:50:0012:05:00
7MDDS5125SPLTmuwtf12:05:0012:20:00
8MDDS5126RELmuwtf12:19:0012:34:00
9MDDS5127SPLTmuwtf12:50:0013:05:00
10MDDS5128RELmuwtf13:20:0013:35:00
11MDDS5129RELmuwtf13:30:0013:45:00
12MDDS5130RELmuwtf13:35:0013:50:00
13MDDS5131RELmuwtf13:55:0014:10:00
14MDDS5132RELmuwtf14:05:0014:20:00
15MDDS5133RELmuwtf14:20:0014:35:00
16MDDS5134RELmuwtf14:30:0014:45:00
17MDDS5135RELmuwtf14:45:0015:00:00
18MDDS5136RELmuwtf15:05:0015:20:00
19MDDS5137RELmuwtf16:15:0016:25:00
Sheet7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
N4:N19Cell Valuetop 10 bottom valuestextNO
This will not work as the "10" is not a constant and will change depending on the # of trucks I have ready to go
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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