Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Trying to get work days out of two dates

Hello all,

This is what I have:
A: 07/22/08
B: 07/29/08

I want to get the result of = A - B in working days. Right now I am
getting 7 as a result but I want to get 5 as a result (not include the
weekends).

Any ideas how to accomplish this?

Thanks in advace.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Trying to get work days out of two dates

Actually, working days starting 7/22/08 and ending 7/29/08 = 6 (as there are
a total of 8 days from 7/22 to 7/29, including 7/22).
=NETWORKDAYS(startdate,enddate,holidays)
If you are are, for example, trying to say a deadline in 5 working days,
then you could just subtract 1 from the formula above.

holidays is a range of dates that are actual holidays. There is good info in
the MS Help on NETWORKDAYS.
--
John C


"erick-flores" wrote:

Hello all,

This is what I have:
A: 07/22/08
B: 07/29/08

I want to get the result of = A - B in working days. Right now I am
getting 7 as a result but I want to get 5 as a result (not include the
weekends).

Any ideas how to accomplish this?

Thanks in advace.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Trying to get work days out of two dates

I want to get 5 as a result

This requires the Analysis ToolPak add-in be installed if you're using a
version of Excel prior to Excel 2207.

=NETWORKDAYS(A1,B1)-(WEEKDAY(A1,2)<6)

--
Biff
Microsoft Excel MVP


"erick-flores" wrote in message
...
Hello all,

This is what I have:
A: 07/22/08
B: 07/29/08

I want to get the result of = A - B in working days. Right now I am
getting 7 as a result but I want to get 5 as a result (not include the
weekends).

Any ideas how to accomplish this?

Thanks in advace.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Trying to get work days out of two dates

Thanks for ur reply.

I am trying the =networkdays() formula, but I am getting the #NAME?
error

What do I need check?

Thanks
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Trying to get work days out of two dates

I tried on MS Excecl 2007 and it worked just fine. I wonder what can
be wrong in MS Excel 2003.

Any ideas???


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Trying to get work days out of two dates

Nothing wrong, you need to go to toolsadd-ins, select ATP (Analysis
ToolPak,)
if it was installed when office /excel was installed it will be available,
if not you would need the Excel/Office CD and follow the instructions to
install it.


--


Regards,


Peo Sjoblom

"erick-flores" wrote in message
...
I tried on MS Excecl 2007 and it worked just fine. I wonder what can
be wrong in MS Excel 2003.

Any ideas???



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Trying to get work days out of two dates

That worked. Thanks :-)
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Trying to get work days out of two dates

if you're using a version of Excel prior to Excel 2207.

I wonder if we'll still be dealing with the ribbon in that version? <g

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
I want to get 5 as a result


This requires the Analysis ToolPak add-in be installed if you're using a
version of Excel prior to Excel 2207.

=NETWORKDAYS(A1,B1)-(WEEKDAY(A1,2)<6)

--
Biff
Microsoft Excel MVP


"erick-flores" wrote in message
...
Hello all,

This is what I have:
A: 07/22/08
B: 07/29/08

I want to get the result of = A - B in working days. Right now I am
getting 7 as a result but I want to get 5 as a result (not include the
weekends).

Any ideas how to accomplish this?

Thanks in advace.





  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Trying to get work days out of two dates

You need to check MS help on NETWORKDAYS, as John C recommended.
--
David Biddulph

"erick-flores" wrote in message
...
Thanks for ur reply.

I am trying the =networkdays() formula, but I am getting the #NAME?
error

What do I need check?

Thanks



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
Work days difference between 2 dates. Jeremy Excel Worksheet Functions 7 February 5th 08 05:36 PM
Calc days between two dates and exclude leap year days scoz Excel Worksheet Functions 5 November 23rd 07 03:58 PM
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux[_2_] Excel Worksheet Functions 2 October 11th 07 02:04 PM
Difference between 2 dates, incl weekends, with variable work days babryanton Excel Discussion (Misc queries) 4 July 11th 06 06:56 PM
Difference between 2 dates, incl weekends, with variable work days babryanton Excel Worksheet Functions 0 July 7th 06 11:24 PM


All times are GMT +1. The time now is 09:27 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"