+ Reply to Thread
Results 1 to 6 of 6

Adding Holidays between two dates

  1. #1
    Registered User
    Join Date
    08-17-2016
    Location
    Victoria, Australia
    MS-Off Ver
    Office 365 Home
    Posts
    10

    Post Adding Holidays between two dates

    Hi,

    I have a formula to be able to work out the number of Mondays, Tuesdays and so on through to Sunday in between certain dates but i'm looking for a way to be able to holidays off a certain day so if a holiday happens to fall on a monday it would show as let say 5 mondays instead of 6, and i'd need it to work for each day between Sunday to Saturday.

    Have uploaded file

    Thanks
    Donald
    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 (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Adding Holidays between two dates

    I think you need to look at the NETWORKDAYS.INTL function:

    https://support.office.com/en-us/art...rs=en-US&ad=US
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-17-2016
    Location
    Victoria, Australia
    MS-Off Ver
    Office 365 Home
    Posts
    10

    Re: Adding Holidays between two dates

    Hi AliGW,

    While that sort of works i need it to just work out how many mondays Tuesdays etc then if a public holiday happens to fall on a
    tuesday it will only take it off a tuesday and not the others from what i can tell NETWORKDAYS.INTL function won't allow me to do that.

    Donald

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

    Re: Adding Holidays between two dates

    Try in E2 then drag accross:

    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Adding Holidays between two dates

    Quote Originally Posted by dharvey078 View Post
    i can tell NETWORKDAYS.INTL function won't allow me to do that.
    You can use NETWORKDAYS.INTL function.

    Sunday:

    =NETWORKDAYS.INTL($A$2,$B$2,"1111110",$B$2)

    Monday:

    =NETWORKDAYS.INTL($A$2,$B$2,"0111111",$B$2)

    ...

  6. #6
    Registered User
    Join Date
    08-17-2016
    Location
    Victoria, Australia
    MS-Off Ver
    Office 365 Home
    Posts
    10

    Re: Adding Holidays between two dates

    Quote Originally Posted by Phuocam View Post
    You can use NETWORKDAYS.INTL function.

    Sunday:

    =NETWORKDAYS.INTL($A$2,$B$2,"1111110",$B$2)

    Monday:

    =NETWORKDAYS.INTL($A$2,$B$2,"0111111",$B$2)

    ...
    Thankyou very much for this formula it has worked a treat.

    Donald

+ 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] Generate list of dates between dates based on criteria - Onsite/Offshore holidays
    By sreeks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2017, 12:37 AM
  2. Need help with formula, adding holidays
    By orion23 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-31-2014, 08:04 PM
  3. Adding holidays and weekends to sumproduct formula
    By rhudgins in forum Excel General
    Replies: 5
    Last Post: 04-29-2010, 10:30 AM
  4. Adding a Meal and Transport Allowances on Public Holidays
    By gloom52 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-10-2009, 04:32 PM
  5. Adjusting dates for holidays
    By mike.heath in forum Excel General
    Replies: 1
    Last Post: 07-28-2008, 06:13 PM
  6. Adding weekends and holidays
    By nikita in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2008, 01:18 PM
  7. Dates with Holidays question
    By HJ in forum Excel General
    Replies: 1
    Last Post: 03-30-2006, 10:15 PM

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