+ Reply to Thread
Results 1 to 7 of 7

Display last working day of month, taking into account national holidays?

  1. #1
    Registered User
    Join Date
    07-12-2015
    Location
    Somerset, England
    MS-Off Ver
    Office 2013
    Posts
    18

    Display last working day of month, taking into account national holidays?

    Hello again

    So as the title suggests I need a cell to display the last working day of the month, I've already been using the formula below to do just that but it doesn't take into account bank holiday/national holidays.


    N1 = Start of the month


    =DATE(YEAR(N1),MONTH(N1)+1,0)-(MAX(0,WEEKDAY(DATE(YEAR(N1),MONTH(N1)+1,0),2)-5))


    How would I go about adapting that to include bank/national holidays? I've been searching the web and get the impression I need to use the networkday or workday function but can't get anything to work.


    Any help is greatly appreciated



    Will.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,434

    Re: Display last working day of month, taking into account national holidays?

    Do you have a list of bank holidays somewhere?

    Pete

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Display last working day of month, taking into account national holidays?

    perhaps like this:

    A1= is your month
    C2:C10 = list of holidays

    =DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(WORKDAY(DATE(YEAR(A1),MONTH(A1)+1,1),-1,$C$2:$C$10))

  4. #4
    Registered User
    Join Date
    07-12-2015
    Location
    Somerset, England
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: Display last working day of month, taking into account national holidays?

    No but I gather I will be needing that to make it work.


    will.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Display last working day of month, taking into account national holidays?

    Try this...

    N1 = some date

    G1:G10 = holiday dates

    =WORKDAY(EOMONTH(N1,0)+1,-1,G1:G10)

    Format as Date
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    07-12-2015
    Location
    Somerset, England
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: Display last working day of month, taking into account national holidays?

    Quote Originally Posted by Tony Valko View Post
    Try this...

    N1 = some date

    G1:G10 = holiday dates

    =WORKDAY(EOMONTH(N1,0)+1,-1,G1:G10)

    Format as Date
    That worked like a charm, thanks Tony


    And thanks to Azumi also.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Display last working day of month, taking into account national holidays?

    You're welcome. Thanks for the feedback!

+ 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. [SOLVED] Allocate total price by term taking account start and end date and month affected
    By continue101 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2013, 01:47 PM
  2. Working out staff contribution as a percentage taking into account absences?
    By highland_turkey in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2013, 09:06 PM
  3. Replies: 5
    Last Post: 05-18-2012, 10:24 AM
  4. Replies: 3
    Last Post: 03-09-2012, 08:19 AM
  5. Replies: 2
    Last Post: 09-13-2010, 04:53 AM
  6. exclude international and national holidays into conbobox...
    By sal21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2006, 08:36 AM
  7. name of month in national language
    By Stefi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-21-2005, 10:20 AM
  8. Account for Public Holidays
    By POM in forum Excel General
    Replies: 0
    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