NETWORKDAYS Formulas excluding weekends

ITSDISP

New Member
Joined
Oct 8, 2010
Messages
16
I am trying to make a spreadsheet that will calculate free days for our business. This formula is to exclude Holidays (which I understand how to setup in the formula) and Weekends as long as the weekends fall during the free time. Here is an example of 4 free days and charging $1 per day there after. The free day starts on Mon
Mon = Free
Tue = Free
Wed = Free
Thur = Free
Fri = $1
Sat = $1
Sun = $1

Now same rule except the start day will be Tue.
Tue = Free
Wed = Free
Thur = Free
Fri = Free
Sat = Free
Sun = Free
Mon = $1
Tue = $1

Once the $1 charge starts it continues until a stop date is entered into the spreadsheet.
 
Nice job and thank you barry houdini!

I was still trying to work this on out on the long road.

I tested it a few times and it looks good to me.
 
Upvote 0

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I have something that explains this better. Is there a way to upload a document to this forum? I dont see a way to do this?
 
Upvote 0
ITSDISP,

I look at the linked example and then tried barry houdinis suggestion and it did work flawlessly on both examples.

Where he has 'holidays' be sure to substitue your holiday range like b1:b10
 
Upvote 0
barry, I have tried your way, but cant get it to work? I have a spread sheet and in A1 i have 10/17/10 and A2 i have 10/22/10. I put your formula in A3 and i get "#NAME?" error for the answer? The answer should be one day Friday?
 
Upvote 0
I assume WORKDAY function will work OK for you as you were using NETWORKDAYS......but ensure that you have Analysis ToolPak enabled if you are uisng Excel 2003 or earlier

Tools > add-ins > tick "Analysis ToolPak"

Also if you are using holidays you need to define that as a named range......or just use the cell reference for the range containing holiday dates, i.e.

=A2-WORKDAY(A1-1,5,H$1:H$10)+1

where H1:H10 contains holiday dates
 
Upvote 0

Forum statistics

Threads
1,216,172
Messages
6,129,291
Members
449,498
Latest member
Lee_ray

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