+ Reply to Thread
Results 1 to 7 of 7

Networkdays counting weekend/holiday

  1. #1
    Registered User
    Join Date
    05-11-2020
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Networkdays counting weekend/holiday

    Hi I'm currently using NETWORKDAYS formula to find the amount of days lapsed before an invoice is processed after it was submitted to my company. I'm using the formula to account for holidays as well.

    I noticed that if the date the invoice is raised falls on a weekend or a holiday, it would effectively count 1 less workday. Is there any workaround for this?

    Thank you in advance.
    Last edited by viperexp87; 05-11-2020 at 06:56 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Networkdays counting weekend/holiday

    Attach an example with your desired answers as per the yellow banner

  3. #3
    Registered User
    Join Date
    05-11-2020
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Networkdays counting weekend/holiday

    Attached as requested. Basically I'm trying to calculate the number of days passed excluding the date the invoice was submitted by deducting 1 day off the result. But this would cause an issue if the date the invoice was raised falls on a weekend or holiday as the day itself wasn't already accounted for, resulting in 1 less day from the total.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Networkdays counting weekend/holiday

    but if the day was a weekend and a Saturday what should you do? You should really include all eventualities in your example
    weekday to weekday
    saturday to weekday this does snot exist in the sample
    sunday to weekday
    holiday to weekday
    saturday to weekday but with a holiday in the middle

  5. #5
    Registered User
    Join Date
    05-11-2020
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Networkdays counting weekend/holiday

    Not sure if you have worked with networkdays before. It basically counts the number of weekdays from date to date, with option to include holiday. Reason I didn't include the examples you stated is because those dates work perfectly fine. The only issue here is that if the start date falls on a weekend or predefined holiday, then it affects my formula to deduct 1 day with the intention to exclude the day it was submitted. Basically I just wanted to deduction of 1 work day to happen only if the start date doesn't fall on a holiday or weekend cause it would double count the deduction.

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Networkdays counting weekend/holiday

    Yes I have worked with networkdays before and I know what it does
    =NETWORKDAYS(A2,B2,G2:G100)-IF(OR(COUNTIF(G:G,A2),WEEKDAY(A2,2)>5),0,1)

    might be what you want

  7. #7
    Registered User
    Join Date
    05-11-2020
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Networkdays counting weekend/holiday

    Thanks for the solution. It worked out as it should.

+ 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] Formula to add days with holiday & weekend
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2019, 04:29 AM
  2. [SOLVED] Weekend and Holiday Exclusion From Count
    By Winship in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2017, 05:25 PM
  3. [SOLVED] Long Weekend Formula for Holiday
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-27-2015, 04:30 AM
  4. Networkdays with holiday - start date falls on a holiday
    By skexcelforum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2014, 01:47 AM
  5. Weekend and Holiday analysis with Time
    By leenie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2014, 12:46 PM
  6. how to sum day if it falls in a weekend or holiday?
    By jgomez in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-30-2011, 01:54 PM
  7. Time difference - without weekend/holiday
    By blizard in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-08-2005, 03:14 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