Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kjc kjc is offline
external usenet poster
 
Posts: 3
Default Subtact 2 dates to get the number without counting weekends?

How do I enter a formula that subtracts 2 dates and returns a number (days)
that does not include weekends?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Subtact 2 dates to get the number without counting weekends?

=NETWORKDAYS(A2,A1)

A2 holds the later date, A1 holds the earlier one.

HTH
Kostis Vezerides

kjc wrote:
How do I enter a formula that subtracts 2 dates and returns a number (days)
that does not include weekends?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 210
Default Subtact 2 dates to get the number without counting weekends?

Use the networkdays function. You should enter the start and end dates using
the dates function.
--
http://HelpExcel.com




"kjc" wrote:

How do I enter a formula that subtracts 2 dates and returns a number (days)
that does not include weekends?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Subtact 2 dates to get the number without counting weekends?

If you have the Analysis ToolPak add-in installed:

A1 = start date
B1 = end date

=NETWORKDAYS(A1,B1)-1

If you don't have the ATP installed, try one of these:

=SUM(INT((WEEKDAY(A1-{1,2,3,4,5},2)+B1-A1)/7))-1

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&B1)),2)<6))-1

Biff

"kjc" wrote in message
...
How do I enter a formula that subtracts 2 dates and returns a number
(days)
that does not include weekends?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kjc kjc is offline
external usenet poster
 
Posts: 3
Default Subtact 2 dates to get the number without counting weekends?

Hello - I do not have the Analysis ToolPak but I did use your suggestion
below (=SUM(INT etc. and it seems to have worked. Could you provide me with
what this formula is stating so I can better understand?

Many thanks!

"T. Valko" wrote:

If you have the Analysis ToolPak add-in installed:

A1 = start date
B1 = end date

=NETWORKDAYS(A1,B1)-1

If you don't have the ATP installed, try one of these:

=SUM(INT((WEEKDAY(A1-{1,2,3,4,5},2)+B1-A1)/7))-1

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&B1)),2)<6))-1

Biff

"kjc" wrote in message
...
How do I enter a formula that subtracts 2 dates and returns a number
(days)
that does not include weekends?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Subtact 2 dates to get the number without counting weekends?

To be honest, I don't know the logic behind that particular formula, I just
know that it works. I know the "mechanics", but explaining the mechanics
won't help in understanding the logic (or, "why it works"). I'm not sure of
the original author, maybe Daniel Maher.

Because I don't know the logic of that formula, I prefer the other formula
because I do know the logic behind it.

Biff

"kjc" wrote in message
...
Hello - I do not have the Analysis ToolPak but I did use your suggestion
below (=SUM(INT etc. and it seems to have worked. Could you provide me
with
what this formula is stating so I can better understand?

Many thanks!

"T. Valko" wrote:

If you have the Analysis ToolPak add-in installed:

A1 = start date
B1 = end date

=NETWORKDAYS(A1,B1)-1

If you don't have the ATP installed, try one of these:

=SUM(INT((WEEKDAY(A1-{1,2,3,4,5},2)+B1-A1)/7))-1

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&B1)),2)<6))-1

Biff

"kjc" wrote in message
...
How do I enter a formula that subtracts 2 dates and returns a number
(days)
that does not include weekends?






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
challenging formula(for me), counting days between dates for multipleyears TG Excel Worksheet Functions 5 April 19th 06 05:31 PM
Calculate Number of Days Between Dates Minus Weekends Melissa Excel Discussion (Misc queries) 3 March 6th 06 07:20 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Counting the total number of cells with specified condition(freque Kelvin Excel Discussion (Misc queries) 2 July 10th 05 12:22 PM
counting entries between two dates? Todd Excel Worksheet Functions 7 November 1st 04 11:07 PM


All times are GMT +1. The time now is 08:50 AM.

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

About Us

"It's about Microsoft Excel"