+ Reply to Thread
Results 1 to 10 of 10

Last Working Day In Month

  1. #1
    Registered User
    Join Date
    10-25-2005
    Posts
    21

    Unhappy Last Working Day In Month

    Hi All

    What is the formula for the last working day in month?

    Anyone HELP?

    Winston.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Please define working day... is that a Friday or a Saturday?
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    10-25-2005
    Posts
    21
    Quote Originally Posted by swatsp0p
    Please define working day... is that a Friday or a Saturday?

    Monday to Friday

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Place the desired month's date in a cell (e.g. B2=Dec-01-05). Use this formula to return the last workday of the month (holidays are not factored in--is Dec 31 a holiday?)

    =IF(WEEKDAY(EOMONTH(B1,0))>5,6,WEEKDAY(EOMONTH(B1,0)))

    for Dec '05, returns Friday as the last workday, as the 31st falls on Saturday..


    I believe the EOMONTH function requires the Analysis Toolpak addin from Tools>Addins

    Good Luck

  5. #5
    Registered User
    Join Date
    10-25-2005
    Posts
    21

    Last Workday In Month

    Hi

    =IF(WEEKDAY(EOMONTH(B1,0))>5,6,WEEKDAY(EOMONTH(B1,0)))

    When I copy and paste this formula in and enter 1-11-2005 I get 4-1-2005.

    Can anyone HELP??

    Could you not use the Workday function??

    Winston

  6. #6
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    What format is the cell that contains the formula? Set it to General and what do you get? (should be 2 for Jan 11, 2005 or 4 for Nov 1, 2005)

    Then format the cell as Custom>DDDD

    It should show the correct day, e.g. 'Monday' (Jan.) or 'Wednesday' (Nov.)

    Does this work for you? If not, what does it show?
    Last edited by swatsp0p; 11-02-2005 at 10:24 AM.

  7. #7
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Also, the WORKDAY function COUNTS the number of workdays between two stated dates (and allows for entry of Holidays). It makes no reference to individual days of the week. Will not work for your desired result.

    HTH

  8. #8
    Sandy Mann
    Guest

    Re: Last Working Day In Month

    Without having to install the Analysis Toolpak try:

    =B2+32-DAY(B2+32)-MAX((WEEKDAY(B2+32-DAY(B2+32),2)-5),0)


    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "Winston" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi All
    >
    > What is the formula for the last working day in month?
    >
    > Anyone HELP?
    >
    > Winston.
    >
    >
    > --
    > Winston
    > ------------------------------------------------------------------------
    > Winston's Profile:
    > http://www.excelforum.com/member.php...o&userid=28344
    > View this thread: http://www.excelforum.com/showthread...hreadid=480968
    >




  9. #9
    Peo Sjoblom
    Guest

    Re: Last Working Day In Month

    How about

    =WORKDAY(DATE(YEAR(A1),MONTH(A1)+1,1),-1)

    or even shorter

    =WORKDAY(EOMONTH(A1,0)+1,-1)

    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "swatsp0p" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Also, the WORKDAY function COUNTS the number of workdays between two
    > stated dates (and allows for entry of Holidays). It makes no reference
    > to individual days of the week. Will not work for your desired result.
    >
    > HTH
    >
    >
    > --
    > swatsp0p
    >
    >
    > ------------------------------------------------------------------------
    > swatsp0p's Profile:
    > http://www.excelforum.com/member.php...o&userid=15101
    > View this thread: http://www.excelforum.com/showthread...hreadid=480968
    >



  10. #10
    Sandy Mann
    Guest

    Re: Last Working Day In Month

    > =B2+32-DAY(B2+32)-MAX((WEEKDAY(B2+32-DAY(B2+32),2)-5),0)
    >


    I'm talking to myself so just for the record the above will produce errors
    towards the end of the month so use:

    =(B2-DAY(B2))+32-DAY((B2-DAY(B2))+32)-MAX((WEEKDAY((B2-DAY(B2))+32-DAY((B2-DAY(B2))+32),2)-5),0)

    Eight function calls? Doesn't look so good now Sandy

    --

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "Sandy Mann" <[email protected]> wrote in message
    news:[email protected]...
    > Without having to install the Analysis Toolpak try:
    >
    > =B2+32-DAY(B2+32)-MAX((WEEKDAY(B2+32-DAY(B2+32),2)-5),0)
    >
    >
    > --
    > HTH
    >
    > Sandy
    > [email protected]
    > Replace@mailinator with @tiscali.co.uk
    >
    >
    > "Winston" <[email protected]> wrote in
    > message news:[email protected]...
    >>
    >> Hi All
    >>
    >> What is the formula for the last working day in month?
    >>
    >> Anyone HELP?
    >>
    >> Winston.
    >>
    >>
    >> --
    >> Winston
    >> ------------------------------------------------------------------------
    >> Winston's Profile:
    >> http://www.excelforum.com/member.php...o&userid=28344
    >> View this thread:
    >> http://www.excelforum.com/showthread...hreadid=480968
    >>

    >
    >




+ 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