Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / May 2008

Tip: Looking for answers? Try searching our database.

formula for total days, excluding holidays but including weekends

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wtfisch - 08 May 2008 03:55 GMT
I need a formula to calculate total days (working days) that excludes
holidays, but includes weekends.   The networkdays formula doesn't work since
we work on weekends and have variable days off.  I wanted to put the select
days off( some weekdays and some weekends in a holiday range), and have them
subtracted from the start date, end date range if they fall in the range.
T. Valko - 08 May 2008 04:21 GMT
Try this...

List off dates and holiday dates in a range of cells, say, H1:H10

A1 = start date
B1 = end date

=B1-A1+1-MEDIAN(FREQUENCY(H1:H10,A1:B1-{1,0}))

Format as General or Number

Signature

Biff
Microsoft Excel MVP

>I need a formula to calculate total days (working days) that excludes
> holidays, but includes weekends.   The networkdays formula doesn't work
[quoted text clipped - 4 lines]
> them
> subtracted from the start date, end date range if they fall in the range.
T. Valko - 08 May 2008 04:37 GMT
Correction:

> =B1-A1+1-MEDIAN(FREQUENCY(H1:H10,A1:B1-{1,0}))

Use this one:

=B1-A1+1-INDEX(FREQUENCY(H1:H6,A1:B1-{1,0}),2)

Signature

Biff
Microsoft Excel MVP

> Try this...
>
[quoted text clipped - 15 lines]
>> them
>> subtracted from the start date, end date range if they fall in the range.
wtfisch - 08 May 2008 18:26 GMT
> Correction:
>
[quoted text clipped - 23 lines]
> >> them
> >> subtracted from the start date, end date range if they fall in the range.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.