Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default NETWORKDAYS in a distributed file

If it isn't even installed (a distinct possibility) then no.

You would need to write your own function.

--
Regards,
Tom Ogilvy

Tim Childs wrote in message
...
Hi

if I want to use the NETWORKDAYS function in a spreadsheet
that will be sent to colleagues and forwarded by them
elsewhere is there a bulletproof* way of getting round the
problem of the end user not having the Analysis Toolpak
installed? i.e. I want the function to work
without "people having to mess around with the add-in
manager" - many of them will never have used it (even if
they should have <g)

THANKS

Tim

* e.g. creating the function in VB in the workbook's
modules etc



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default NETWORKDAYS in a distributed file

Hi Tom

Thanks for response

I previously did a search on google without success -the code is not
available is it?

Regards

Tim

"Tom Ogilvy" wrote in message
...
If it isn't even installed (a distinct possibility) then no.

You would need to write your own function.

--
Regards,
Tom Ogilvy




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default NETWORKDAYS in a distributed file

Not the code in the analysis toolpak.

Chip might have some code that does the calculation.

wouldn't you just get the number of days and divide by 7, then multiply by
5, then adjust for the weekday of the start and enddate and subtract
holidays.

--
Regards,
Tom Ogilvy


Tim Childs wrote in message
...
Hi Tom

Thanks for response

I previously did a search on google without success -the code is not
available is it?

Regards

Tim

"Tom Ogilvy" wrote in message
...
If it isn't even installed (a distinct possibility) then no.

You would need to write your own function.

--
Regards,
Tom Ogilvy






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default NETWORKDAYS in a distributed file

Here is a KB article with a formula approach (doesn't appear to consider
holidays).

http://support.microsoft.com/default...kb;en-us;61575
Formula to Find Number of Weekdays Between Dates

You could decipher the logic and put that into code. Add in some logic to
check holidays.

This doesn't help, but an interesting reference:

http://support.microsoft.com/default...b;en-us;214094
HOW TO: Use Dates and Times in Excel


--
Regards,
Tom Ogilvy


Tim Childs wrote in message
...
Hi Tom

Thanks for response

I previously did a search on google without success -the code is not
available is it?

Regards

Tim

"Tom Ogilvy" wrote in message
...
If it isn't even installed (a distinct possibility) then no.

You would need to write your own function.

--
Regards,
Tom Ogilvy






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
Justify distributed? Highland Cow Excel Discussion (Misc queries) 3 August 12th 08 10:55 PM
Networkdays to open previous day's file Dave Excel Worksheet Functions 3 July 31st 08 06:22 PM
is there a test of whether the data is normally distributed? melekcandan Excel Discussion (Misc queries) 2 November 9th 06 07:10 PM
Distributed retrival Ulf Excel Worksheet Functions 1 August 30th 05 04:58 PM
Distributed Spreadsheets Julie[_3_] Excel Programming 0 August 26th 03 06:56 PM


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