+ Reply to Thread
Results 1 to 5 of 5

Adding days in Excel Office 365

  1. #1
    Registered User
    Join Date
    10-04-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    13

    Adding days in Excel Office 365

    Good afternoon,

    I have a formula that takes a date and adds 5 days to it excluding weekends and Holidays

    Easy yes

    But I need it to only add an additional day IF the actual date falls on the holiday.

    What is happening is

    =WORKDAY(C8,5,V5:V24)

    I have the date of 11/5/2021 - in C8
    + 5 Days
    Exclude holidays that are located in V5:V24
    This is putting my new date as 11/15/2021

    Veterans day falls on 11/11/2021 so I see why it is adding the 6th day

    BUT if the holiday does not fall on the "New" date then I do not want it to add the 6th day. I only want it to add the 6th day if the "New" date actually falls on a holiday.

    Any help would be appreciated

    Thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Adding days in Excel Office 365

    So in your example, you want the result to be 11/12.

    If you started on 11/4, you would also want it to be 11/12.

    So you can't use the holiday list in WORKDAYS. Use this formula to add a day if the calculated day falls on a holiday:

    =WORKDAY(C8,5) + IF(ISNUMBER(MATCH(WORKDAY(C8,5),V5:V24,0)),1,0)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Adding days in Excel Office 365

    Quote Originally Posted by 6StringJazzer View Post
    =WORKDAY(C8,5) + IF(ISNUMBER(MATCH(WORKDAY(C8,5),V5:V24,0)),1,0)
    Your final result might fall into weekend.
    For example: C8=5-Nov; Holiday=12-Nov ==> result=13-Nov (Sat)

    Try to start from WORKDAY(C8,5) as starting date, back 1 day, then plus 1 working day:

    =WORKDAY(WORKDAY(C8,5)-1,1,V5:V24) = 15-Nov
    Quang PT

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Adding days in Excel Office 365

    Quote Originally Posted by bebo021999 View Post
    Your final result might fall into weekend.
    Excellent solution. I failed to consider all cases.

  5. #5
    Registered User
    Join Date
    10-04-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    13

    Re: Adding days in Excel Office 365

    Thank you so much! This did exactly what I needed it to do!!!!!!!

+ 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. Adding days and half days in an Attendance sheet
    By Felix_I in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2018, 12:28 PM
  2. [SOLVED] Adding the correct number of working days to the chart, skipping off days
    By Vitalite in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-15-2017, 03:31 AM
  3. Replies: 1
    Last Post: 08-07-2016, 05:52 PM
  4. [SOLVED] Formula Help: Determine days total from arrival to current date then stop adding days
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2016, 12:45 PM
  5. [SOLVED] Adding Total Number of Days Elapsed and Displaying >31 Days
    By cwwazy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2013, 08:18 AM
  6. Adding dates in Excel - Tracking fractional days
    By bronsonb in forum Excel General
    Replies: 0
    Last Post: 01-27-2009, 11:09 PM
  7. Adding Excel charts to PowerPoint presentation in Office 2003
    By trooper665 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2005, 01:05 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