+ Reply to Thread
Results 1 to 4 of 4

Correct / Modify Formula for NETWORKDAYS

  1. #1
    Registered User
    Join Date
    11-24-2020
    Location
    Philippines
    MS-Off Ver
    MS Officer 2016 abd Office 365
    Posts
    34

    Correct / Modify Formula for NETWORKDAYS

    Hi I have an existing tracker that follows our local time but since we work graveyard the NETWORKDAYS formula considers Sat-Sun as rest days. However when our shift goes beyond Saturday morning 12:01 AM it gives a negative value but technically it is still our Friday shift.

    I would like to know if theres a way or If Condition or maybe another hidden column that will correct this in order to still consider working days for Saturday morning from 12:00AM to 7:00AM?

    Attached is a sample tracker I am currently using,
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: Correct / Modify Formula for NETWORKDAYS

    Try this in AJ2 then copy down.

    =IF(OR(I2="",Y2=""),"",(NETWORKDAYS.INTL(I2,Y2,1)-Z2)-MOD(I2,1)-(1-MOD(Y2,1))+(WEEKDAY(Y2,1)=7)*MIN(MOD(Y2,1),"7:00"))
    Last edited by kvsrinivasamurthy; 05-24-2021 at 09:53 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    11-24-2020
    Location
    Philippines
    MS-Off Ver
    MS Officer 2016 abd Office 365
    Posts
    34

    Re: Correct / Modify Formula for NETWORKDAYS

    Thank you for your reply, can you please explain how this formula works? I mean what is the interpretation of the additional formula?

    Thanks in advance for your help I appreciate it.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: Correct / Modify Formula for NETWORKDAYS

    (WEEKDAY(Y2,1)=7)
    Checks for weekday as Saturday .
    *MIN(MOD(Y2,1),"7:00")
    If so the minimum of Worked hours OR 7 hours will be added.

+ 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. NETWORKDAYS not giving me correct count
    By tinytutu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-21-2013, 04:10 PM
  2. Help modify NetworkDays function
    By MegaRon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2013, 11:01 AM
  3. Modify this array formula to correct #Num error
    By daymaker in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-13-2011, 11:55 AM
  4. [SOLVED] Modify the official None-working days in the "NETWORKDAYS" Functio
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 PM
  5. [SOLVED] Modify the official None-working days in the "NETWORKDAYS" Functio
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 02:05 PM
  6. Modify the official None-working days in the "NETWORKDAYS" Functio
    By Zewer in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  7. Modify the official None-working days in the "NETWORKDAYS" Functio
    By Zewer in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  8. [SOLVED] Modify the official None-working days in the "NETWORKDAYS" Functio
    By Zewer in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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