+ Reply to Thread
Results 1 to 5 of 5

Calculate end of month less n workdays

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Calculate end of month less n workdays

    Hi

    How would you calculate the day which represents the end of the month less, say, two work days? In June, the last day of the month is Monday 30th. Less two working days would bring the date back to Friday 27th. Can that be put into a formula?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,943

    Re: Calculate end of month less n workdays

    maybe
    =EOMONTH(TODAY(),0)-3
    but your example is treating Sat/Sun as "working" days?
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Re: Calculate end of month less n workdays

    I'm not sure that approach works. The problem arises that some end of months are on a Friday in which working days less 2 takes it back to Thursday. If the end of the month is a Monday, working days -2 takes it back to the previous Friday.

  4. #4
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Calculate end of month less n workdays

    Refer workbook attached.
    Formula: copy to clipboard
    =IF(WEEKDAY(EOMONTH($B$1,0),1)=2,EOMONTH($B$1,0)-3,EOMONTH($B$1,0)-2)
    Is this what you need?
    Attached Files Attached Files
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: Calculate end of month less n workdays

    Mr Saarang84 i think your formula will not works for the month of August'14 and September'14

    See the attachement
    Attached Files Attached Files
    Last edited by samba_ravi; 06-26-2014 at 03:43 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Workdays in Month
    By aschwalge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-26-2013, 05:43 PM
  2. Count workdays for each month between two dates
    By MitchellG in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-16-2013, 02:01 PM
  3. [SOLVED] How many workdays are left in the month
    By crazyape in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2012, 12:22 PM
  4. How to calculate workdays in a month?
    By ExcelNewby in forum Excel General
    Replies: 4
    Last Post: 06-19-2008, 06:26 PM
  5. [SOLVED] Number of workdays in a month
    By Nigel Bennett in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2005, 08:06 AM

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