+ Reply to Thread
Results 1 to 6 of 6

Going to the next level after using IF(NETWORKDAYS...) to make crazy numbers blank

  1. #1
    Registered User
    Join Date
    06-10-2015
    Location
    Birmingham, England
    MS-Off Ver
    Office 365
    Posts
    20

    Question Going to the next level after using IF(NETWORKDAYS...) to make crazy numbers blank

    Hi everyone,

    I hope someone can help me with their expertise.... I have just got the hang of using NETWORKDAYS function along with the IF function, so that if there are no dates then the cell will come out blank. My issue is if only one of the two dates required are missing, the resulting number in the final cell comes out to be 30,000ish if the first date is missing, and to-30,000ish if the second date is missing (fair enough, as I am still gathering the data!)

    Is there a way of hiding those +/-30,000 numbers because they are messing up the rest of the spreadsheet?! I would just like it to come out blank. I am guessing I need another IF clause in there, but not sure how it fits into the formula... I am guessing I need something along the lines of IF(xxxx>30000,"",yyyyy) but not sure what the xxxx and yyyy values need to be.... (or there is an easier way?!)

    To put into context, I have the following data:

    C column has starting date
    S column has completion date
    T column has the number of business days between the two, which has the following formula in it:

    =IF(NETWORKDAYS(C5,S5)=0,"",(NETWORKDAYS(C5,S5)))

    I hope that makes sense - can anyone please help me??

    Thanks.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Going to the next level after using IF(NETWORKDAYS...) to make crazy numbers blank

    Try

    =IF(COUNT(C5,S5)=2,IF(NETWORKDAYS(C5,S5)=0,"",(NETWORKDAYS(C5,S5))),"")

  3. #3
    Registered User
    Join Date
    06-10-2015
    Location
    Birmingham, England
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Going to the next level after using IF(NETWORKDAYS...) to make crazy numbers blank

    Wowsers, it works! Thank you!

    Can I ask, where does the 2 come from? is that a "if there are 2 data points" in the formula, then keep going?

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Going to the next level after using IF(NETWORKDAYS...) to make crazy numbers blank

    Count returns the count of Numeric Values in the referenced ranges (C5 and S5)

    So if the count is 2 (meaning both cells have a date in them), then do the network days formula, otherwise return ""

  5. #5
    Registered User
    Join Date
    06-10-2015
    Location
    Birmingham, England
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Going to the next level after using IF(NETWORKDAYS...) to make crazy numbers blank

    OK Great, thank you so much....

    #Solved

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Going to the next level after using IF(NETWORKDAYS...) to make crazy numbers blank

    You're welcome.

+ 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. Need to make a service level scorecard
    By tchetche in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-01-2013, 11:28 PM
  2. How to delete cells (i.e. make a blank cell) if numbers are negative
    By geomatics in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2012, 11:18 AM
  3. Make Sucurity level always low
    By mohan.r1980 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-04-2012, 08:23 AM
  4. Networkdays Ignore if Two Cells are Blank
    By rebeccajp76 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2011, 02:32 AM
  5. NETWORKDAYS question to make work-back schedule
    By justywusty in forum Excel General
    Replies: 1
    Last Post: 07-08-2011, 06:00 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