Format if date is more than 5 working days

Geek Girl 007

Board Regular
Joined
Mar 12, 2022
Messages
152
Office Version
  1. 2021
Platform
  1. Windows
1723974563930.png


I want O2 to go red if O2 is more than 5 working days.
This is the formula I used, but it didn't work :(

=NETWORKDAYS.INTL(TODAY(),O2,1)<=5
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hello, would this work for you:

Excel Formula:
=NETWORKDAYS.INTL(O2,TODAY(),1)>=5
 
Upvote 0
Sorry, I just tried it with different dates, and it is only working at 5 days, not working days???
Works for me (shouldn't have the equals sign though if greater than 5 working days)
Cell Formulas
RangeFormula
P2:P14P2=O2
O4:O14O4=O3+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O2:O14Expression=NETWORKDAYS.INTL(O2,TODAY(),1)>5textNO
 
Upvote 0
Works for me (shouldn't have the equals sign though if greater than 5 working days)
Cell Formulas
RangeFormula
P2:P14P2=O2
O4:O14O4=O3+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O2:O14Expression=NETWORKDAYS.INTL(O2,TODAY(),1)>5textNO
Maybe because it's a Sunday and I shouldn't be working, but I can't work out what I'm missing?
So sorry :(
1723978267603.png


1723978308991.png
 
Upvote 0
Upvote 0
Solution
Don't know where you are getting the 8 from

Cell Formulas
RangeFormula
P2:P14P2=NETWORKDAYS.INTL(O2,TODAY(),1)
O4:O14O4=O3+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
P2:P14Cell Value>5textNO
O2:O14Expression=NETWORKDAYS.INTL(O2,TODAY(),1)>5textNO

The 8 is a different format, that's the total number of days: =TODAY()-O2
I want the date formula to show up in column O
 
Upvote 0
10/8/2024 shouldn't be red it is only 5 working days from today, you specified more than 5 working days and is a Saturday
 
Upvote 0
If I got you right, you are looking for a formula with 6 working days (monday to saturday) and only sunday as weekend and he formula should count if there are less then 5 working days.

Is this working for you?

Book1
AB
1Date loggedDays
217/08/20241
305/08/202412
Sheet1
Cell Formulas
RangeFormula
B2:B3B2= NETWORKDAYS.INTL(A2,TODAY(),11)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A3Expression= NETWORKDAYS.INTL(A2,TODAY(),11) <= 5textNO
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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