Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Calculate date difference exclude Wkend

Hello,

What formula to use to calculate number of days between two different dates
excluding weekend and holiday? THanks
Example:

Start End #days
2/5/08 3/9/08 23
2/8/08 3/9/08 20
2/14/08 3/9/08 16
2/29/08 3/9/08 5
3/3/08 3/9/08 4
2/26/08 3/9/08 8

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Calculate date difference exclude Wkend

You can use the following formula:

NETWORKDAYS(start_date,end_date,holidays)

Look up NETWORKDAYS in Excel's help facility for all the details and
suggestions, such as the recommended method for entering date, excluding
holidays, etc...


--
Kevin Backmann


"Cam" wrote:

Hello,

What formula to use to calculate number of days between two different dates
excluding weekend and holiday? THanks
Example:

Start End #days
2/5/08 3/9/08 23
2/8/08 3/9/08 20
2/14/08 3/9/08 16
2/29/08 3/9/08 5
3/3/08 3/9/08 4
2/26/08 3/9/08 8

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Calculate date difference exclude Wkend

Try this:

If you have the Analysis ToolPak installed:
C2: =NETWORKDAYS(A2,B2)

Otherwise....
C2: =SUMPRODUCT(--(WEEKDAY(ROW(INDEX(A:A,A2):INDEX(A:A,B2)),2)<6))

Note: It appears that all of your date differences are off by 1.
I get 24 weekdays from 05-FEB-2008 through 09-MAR-2008.
If you do not want to count the start or end dates,
just subtract 1 from the formulas.

Is that something you can work with?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Cam" wrote in message
...
Hello,

What formula to use to calculate number of days between two different
dates
excluding weekend and holiday? THanks
Example:

Start End #days
2/5/08 3/9/08 23
2/8/08 3/9/08 20
2/14/08 3/9/08 16
2/29/08 3/9/08 5
3/3/08 3/9/08 4
2/26/08 3/9/08 8




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Calculate date difference exclude Wkend

Look up the function NETWORKDAYS in Excel help.
--
David Biddulph

"Cam" wrote in message
...
Hello,

What formula to use to calculate number of days between two different
dates
excluding weekend and holiday? THanks
Example:

Start End #days
2/5/08 3/9/08 23
2/8/08 3/9/08 20
2/14/08 3/9/08 16
2/29/08 3/9/08 5
3/3/08 3/9/08 4
2/26/08 3/9/08 8



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculate date difference exclude Wkend

Try

=NETWORKDAYS(A1,B1)

Mike

"Cam" wrote:

Hello,

What formula to use to calculate number of days between two different dates
excluding weekend and holiday? THanks
Example:

Start End #days
2/5/08 3/9/08 23
2/8/08 3/9/08 20
2/14/08 3/9/08 16
2/29/08 3/9/08 5
3/3/08 3/9/08 4
2/26/08 3/9/08 8

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate Difference in Times with Considering Date CB Excel Worksheet Functions 4 May 23rd 07 03:58 PM
formatt to Calculate difference in now() and date in cell, GARDNERGUY Excel Discussion (Misc queries) 1 April 27th 07 04:06 AM
Calculate Elapsed time: difference between 2 Date/Timestamp perio beadedbeauty Excel Worksheet Functions 4 August 24th 06 04:49 PM
Calculate difference between 2 date and times with average Aeryn635 Excel Discussion (Misc queries) 1 December 15th 05 02:56 AM
How do I calculate the difference between 2 dates (m,d,y) ? ady_sandu Excel Worksheet Functions 8 September 29th 05 05:09 PM


All times are GMT +1. The time now is 07:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"