Networkdays but excluding holidays for conditional formatting

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
731
Office Version
  1. 365
Platform
  1. Windows
Column A contains dates. I have a named range called Holidays (=Sheet2!$A$1:$A$10) with our holidays for the year (7/4/23, 9/4/23,...)
I need a conditional format that changes the background of cells in column B if the value of the cell in column A on that row is 5 business days older than today().
The combination of Holidays and NETWORKDAYS and >5 days is confusing me.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I don't get any formatting change when I do this. Not sure why.
If I point to the cells with the holiday, this works great - thanks Tetra201. Pointing to the named range does not.
If I look at Name Manager, Holidays point to the same cells so I'm not clear where my problem is.
 
Upvote 0
Is "Holidays" the name of your sheet or named range, or both?
If both, I would recommend using a different name for your named range.
 
Upvote 0
Is "Holidays" the name of your sheet or named range, or both?
If both, I would recommend using a different name for your named range.
Jut the named range. I still haven't figured this one out but pointing to the cells works. Strange because I do the same thing in another sheet and it works fine.
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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