+ Reply to Thread
Results 1 to 7 of 7

Return blank cell if 0 value when using =NETWORKDAYS formula

  1. #1
    Registered User
    Join Date
    10-25-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    30

    Return blank cell if 0 value when using =NETWORKDAYS formula

    Hello,

    I have yet another formula question.

    I have a set of columns which calculate the number of working days passed based on dates in other columns. I use the following formula:

    =NETWORKDAYS(AW5,AX5)

    I'd like to amend this formula so that when the number returned is zero, it leaves the cell blank instead of inserting zero. Is this possible?

    Many thanks,

    Kerry

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Return blank cell if 0 value when using =NETWORKDAYS formula

    Maybe
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Return blank cell if 0 value when using =NETWORKDAYS formula

    Try =IF(NETWORKDAYS(AW5,AX5)=0,"",NETWORKDAYS(AW5,AX5))

    A bit kludgy, but it should work.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Registered User
    Join Date
    10-25-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    30

    Re: Return blank cell if 0 value when using =NETWORKDAYS formula

    Thank you, both those solutions work!

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Return blank cell if 0 value when using =NETWORKDAYS formula

    Have you considered turning of the setting for "Show a zero in cells that have a zero value"?

    File...Options...Advanced...Display options for this worksheet.

    Alternatively

    =IF(NETWORKDAYS(AW5,AX5)=0,"",NETWORKDAYS(AW5,AX5))
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Return blank cell if 0 value when using =NETWORKDAYS formula

    Glad to help & thanks for the feedback.

  7. #7
    Registered User
    Join Date
    10-25-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    30

    Re: Return blank cell if 0 value when using =NETWORKDAYS formula

    I didn't know I could do this, so thanks as it'll be useful in future, but for this worksheet, which is huge and has a lot of data, I need the zero's in other cells.

    Thanks,

    Kerry

+ 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. Replies: 2
    Last Post: 11-16-2021, 05:57 PM
  2. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  3. Replies: 5
    Last Post: 01-20-2015, 04:24 AM
  4. [SOLVED] When my formula encounters a blank cell it returns a 0, I need it to return a blank
    By stretch99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2014, 07:52 PM
  5. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  6. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 PM
  7. [SOLVED] Excel 2007 : Return NA if either start or end date is blank in Networkdays
    By CatherineCarey in forum Excel General
    Replies: 3
    Last Post: 04-16-2012, 02:12 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