+ Reply to Thread
Results 1 to 3 of 3

Number of workdays in a month

Hybrid View

Guest Number of workdays in a month 03-02-2005, 12:06 AM
Guest Re: Number of workdays in a... 03-02-2005, 01:06 AM
Guest Re: Number of workdays in a... 03-02-2005, 08:06 AM
  1. #1
    Nigel Bennett
    Guest

    Number of workdays in a month

    I am looking for some advice on how to do the following

    A user will enter a date in Cell A1

    I want excel to calculate the workdays that that
    represents for the month

    ie he puts in 1 Jan the result will be 0

    he puts in Jan 15 the result would be 10 etc
    Thanks

    Nigel

  2. #2
    Tom Ogilvy
    Guest

    Re: Number of workdays in a month

    Look in Excel help at the Networkdays function from the analysis toolpack

    Demo'd from the immediate window:

    ? application.Run( "ATPVBAEN.XLA!NetWorkDays","01/01/2005","01/15/2005")
    10



    --
    Regards,
    Tom Ogilvy

    "Nigel Bennett" <nigelben@yahoo.com> wrote in message
    news:327101c51ed9$bac97ab0$a601280a@phx.gbl...
    > I am looking for some advice on how to do the following
    >
    > A user will enter a date in Cell A1
    >
    > I want excel to calculate the workdays that that
    > represents for the month
    >
    > ie he puts in 1 Jan the result will be 0
    >
    > he puts in Jan 15 the result would be 10 etc
    > Thanks
    >
    > Nigel




  3. #3
    Ron Rosenfeld
    Guest

    Re: Number of workdays in a month

    On Tue, 1 Mar 2005 19:41:34 -0800, "Nigel Bennett" <nigelben@yahoo.com> wrote:

    >I am looking for some advice on how to do the following
    >
    >A user will enter a date in Cell A1
    >
    >I want excel to calculate the workdays that that
    >represents for the month
    >
    >ie he puts in 1 Jan the result will be 0
    >
    >he puts in Jan 15 the result would be 10 etc
    >Thanks
    >
    >Nigel


    =networkdays(A1-DAY(A1)+1,A1,Holidays)

    Holidays is a range in which you have entered the dates of Holidays. It is
    optional.

    If the NETWORKDAYS function is not available, and returns the #NAME? error,
    install and load the Analysis ToolPak add-in.

    On the Tools menu, click Add-Ins.
    In the Add-Ins available list, select the Analysis ToolPak box, and then click
    OK.
    If necessary, follow the instructions in the setup program.



    --ron

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1