+ Reply to Thread
Results 1 to 6 of 6

Date matching from previous year taking into account holidays

Hybrid View

  1. #1
    Registered User
    Join Date
    12-11-2020
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    2013
    Posts
    37

    Date matching from previous year taking into account holidays

    Hello everyone, I have column A where the dates are inconsistent due to weekends and holidays. I have a holidays tab where the holiday dates are stored. This formula is meant to pick the exact date from a year ago or the closest forward date.

    E.g. if we have 30th of April 2024, we want the same date in 2023 however, that is a sunday so we should be picking 1st of May, Monday as that would be the date available in column A.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,380

    Re: Date matching from previous year taking into account holidays

    Try NETWORKDAYS.INTL with EDATE(date, 12). On my phone, so can’t do it for you at the mo.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-11-2020
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    2013
    Posts
    37

    Re: Date matching from previous year taking into account holidays

    Thank you AliGW, it gave me an answer but the holiday filter aspect didn't work the way I had hoped.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Date matching from previous year taking into account holidays

    Please try and copy down:
    Formula: copy to clipboard
    =WORKDAY(EDATE(A2,-12)-1,1,Holidays!A$2:A$99)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-11-2020
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    2013
    Posts
    37

    Re: Date matching from previous year taking into account holidays

    Hello @HansDouwe, this seems to be working just fine. Thank you!

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Date matching from previous year taking into account holidays

    You are Welcome! Thanks for the feedback and rep . Glad to have helped.

+ 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. Subtracting Date & Time taking into account NETWORKDAYS
    By Millerrrrrrr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-07-2018, 10:42 AM
  2. [SOLVED] Subtotal of time, should not taking into account the date
    By excelnabb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-22-2018, 11:32 AM
  3. [SOLVED] Count working days and toggle include today or not, taking into account holidays
    By D.Lovell in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-14-2015, 03:25 PM
  4. [SOLVED] Display last working day of month, taking into account national holidays?
    By will1565 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-29-2015, 06:53 PM
  5. Replies: 5
    Last Post: 05-18-2012, 10:24 AM
  6. Replies: 1
    Last Post: 03-25-2005, 01:06 PM
  7. [SOLVED] Date difference taking into account weekends.
    By annonymous in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2005, 02:06 PM

Tags for this Thread

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