+ Reply to Thread
Results 1 to 3 of 3

How to have an IF statement w/ NETWORKDAYS return a 0 when there is no date?

  1. #1
    Registered User
    Join Date
    03-13-2013
    Location
    Rochester,NY
    MS-Off Ver
    Excel 2007
    Posts
    4

    How to have an IF statement w/ NETWORKDAYS return a 0 when there is no date?

    I'm working in a data table trying to capture the amount of actual business days it takes to complete a project.

    I have two different columns to capture the start and end dates of a project: "Actual_St_Dt" and "Actual_End_Dt". In some cases the Actual_End_Dt has not yet been filled with a date because the project has not yet been completed.

    When there is no Actual_End_Dt I want the returned value to come back blank ("").

    The formula I currently have in the column labeled Actual Business Days to Complete returns the value as -29534.

    =IF(Table1[[#This Row],[Target_End_Dt]]="","",NETWORKDAYS(K2,M2))

    thanks
    Tammy

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: How to have an IF statement w/ NETWORKDAYS return a 0 when there is no date?

    Well, just to be safe check both of them:

    =IF(OR(K2="",M2=""),"",NETWORKDAYS(K2,M2))

    assuming the dates are in columns K and M.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-13-2013
    Location
    Rochester,NY
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to have an IF statement w/ NETWORKDAYS return a 0 when there is no date?

    Worked like a charm! Thank you! I think I was over engineering the process.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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