# Formula for 3 days prior excluding weekends and holidays

#### Thunderer

##### New Member
I'm working with this formula but I keep getting the dreaded #VALUE!. I need to validate whether the date in Column J is <= 3 days prior to today, minus holidays and weekends.

=IF(NETWORKDAYS(J2<=TODAY()-300, J2<=TODAY()-3,Q1:Q12),"Y","N")

Q1:Q12 is the range of my holidays which I have formatted as 1-Jan, 25-Dec, etc.

Column J is formatted as 1/7/2014 7:26

I set the networkdays as anywhere between 300days prior to today and 3 days prior to today.

Can anyone help?

Respectfully,

Tim

### Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

#### btomjack

##### Board Regular
Try this:

=IF(3>=
(NETWORKDAYS(J2,TODAY(),Q1:Q12)),"Y","N")

When you're embedding one function inside another, it is helpful to start with the innermost function (NETWORKDAYS in this case) and compute that in a separate cell. Once you have that function calculating correctly, copy the text and paste it into the outer function; this saves a lot of mess and frustration trying to figure out which function is causing the problem.

Last edited:

Replies
5
Views
3K
Replies
5
Views
232
Replies
2
Views
467
Replies
2
Views
170
Replies
5
Views
252

1,195,671
Messages
6,011,077
Members
441,581
Latest member
rp4717

### 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.

### Which adblocker are you using?

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

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