Conditional format using workday function

gully176

New Member
Joined
Aug 1, 2018
Messages
7
I’m looking for a very specific formula. My data would be laid out as such.

A5 would contain a date that a document was forwarded
B5 is the slot for the documents due date

I want multiple things to happen

I want B5 to auto populate a due date using the workday function that part is simple enough. BUT I want to set up 3 conditional format rules for this cell.

1. If cell B5 is populated with a date and cell C5 is empty then I want it to highlight B5 yellow to indicate it is the most current date
2. If cell B5 is populated with a date and cell C5 is empty and cell B5’s date is within 5 business days (excluding holidays so workday will be a must) then I want it to highlight B5 orange
3. If cell B5 is populated with a date and cell C5 is empty and Cell B5’s date is the current date or past the current date I want it to highlight Red

Can anyone help me out?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
What if B5 is not a date or C5 is not empty?
 
Upvote 0
The only thing that would be placed in B5 is a date, if it is empty, then the cell should be left unformatted. If Cell C5 contains data, then it can remove all formatting already done by the rule.
 
Upvote 0
How about
=AND(B5<=TODAY(),C5="") for red
=B5<=WORKDAY(B5,5,Sheet1!A2:A10) for orange, change the part in red to look at your holiday list
=AND(B5<>"",C5="") for yellow
 
Upvote 0
How about
=AND(B5<=TODAY(),C5="") for red
=B5<=WORKDAY(B5,5,Sheet1!A2:A10) for orange, change the part in red to look at your holiday list
=AND(B5<>"",C5="") for yellow

This is leaving the cell formatted Red until an entry is placed, which defeats the purpose as the red is a visual indicator for me.
 
Upvote 0
Sorry that should be
=AND(B5<=TODAY(),B5<>"",C5="")
=AND(B5<=WORKDAY(B5,5,Sheet1!A2:A10),B5<>"")
 
Upvote 0

Forum statistics

Threads
1,215,616
Messages
6,125,860
Members
449,266
Latest member
davinroach

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