Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Business day difference between 2 dates

Is there a pre-defined VB function to compute the count of the business days
between any 2 given days?

Thank you for your help.
--
Diana
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Business day difference between 2 dates

Try this link -

http://groups-beta.google.com/group/...6ac39a62717ce1

It shows an attempt at replacing the worksheet function NetWorkDays with
code.
--
steveB

Remove "AYN" from email to respond
"Rock*" wrote in message
...
Is there a pre-defined VB function to compute the count of the business
days
between any 2 given days?

Thank you for your help.
--
Diana



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Business day difference between 2 dates

=NETWORKDAYS(date1,date2)

you can even include a list of holidays

=NETWORKDAYS(date1,date2, holidays)

This needs the Analysis Toolpak installed.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Rock*" wrote in message
...
Is there a pre-defined VB function to compute the count of the business

days
between any 2 given days?

Thank you for your help.
--
Diana



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Business day difference between 2 dates

Sorry meant to add that to use it in VBA, add a reference to the toolpak,
APTVBAEN.XLS, and call it like so

Debug.Print NETWORKDAYS(Range("M1"), Range("N1"), Range("holidays"))


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bob Phillips" wrote in message
...
=NETWORKDAYS(date1,date2)

you can even include a list of holidays

=NETWORKDAYS(date1,date2, holidays)

This needs the Analysis Toolpak installed.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Rock*" wrote in message
...
Is there a pre-defined VB function to compute the count of the business

days
between any 2 given days?

Thank you for your help.
--
Diana





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Business day difference between 2 dates

Thank you, I appreciate your help.
--
Diana


"Rock*" wrote:

Is there a pre-defined VB function to compute the count of the business days
between any 2 given days?

Thank you for your help.
--
Diana



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Business day difference between 2 dates

Thank you very much!
--
Diana


"Bob Phillips" wrote:

Sorry meant to add that to use it in VBA, add a reference to the toolpak,
APTVBAEN.XLS, and call it like so

Debug.Print NETWORKDAYS(Range("M1"), Range("N1"), Range("holidays"))


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bob Phillips" wrote in message
...
=NETWORKDAYS(date1,date2)

you can even include a list of holidays

=NETWORKDAYS(date1,date2, holidays)

This needs the Analysis Toolpak installed.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Rock*" wrote in message
...
Is there a pre-defined VB function to compute the count of the business

days
between any 2 given days?

Thank you for your help.
--
Diana






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
Remove non-business days between dates dgold82 Excel Discussion (Misc queries) 4 June 29th 09 04:00 PM
Calculate business days between 2 dates Vic Excel Discussion (Misc queries) 2 May 21st 09 03:42 PM
Calculate business Dates Wanna Learn Excel Discussion (Misc queries) 3 February 28th 07 03:14 PM
Calculating Business Hours Between 2 Dates tanya216 Excel Discussion (Misc queries) 3 April 11th 06 03:22 PM
How do I find how many business days are between two dates S trainer Excel Worksheet Functions 2 December 15th 04 07:30 PM


All times are GMT +1. The time now is 08:05 PM.

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"