+ Reply to Thread
Results 1 to 7 of 7

Formula to render certain values blank

  1. #1
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Formula to render certain values blank

    Hi experts,

    I am using a NETWORKDAYS formula to calculate turnaround time between two dates.
    However, a lot of the dates are blank so the turnaround time is -30789 days.
    I am using and imbedded IF formula for if one of the dates is blank, show "" in the cell which is fine, but I want to use maybe an IF(OR so it will also look at the second date, and if that's blank and do the same thing.

    This will help me with my reporting which is in Power BI whicn i'm new to!

    Thanks :-)

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: Formula to render certain values blank

    Well, if you give us the formula you are using, then we can provide an answer ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Formula to render certain values blank

    Ok so Column R is REFERRAL DATE and Column S is RESPONSE DATE

    =IF(R3<>"",NETWORKDAYS(R3,S3)-1,"")

    The above helps me if REFERRAL DATE has been left blank but if that's complete and RESPONSE DATE is blank, I need my formula to also make the cell appear blank.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: Formula to render certain values blank

    Try this:

    =IF(OR(R3="",S3=""),"",NETWORKDAYS(R3,S3)-1)

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Formula to render certain values blank

    Try:

    =IF(OR(R3="",S3=""),"",NETWORKDAYS(R3,S3)-1)
    Remember what the dormouse said
    Feed your head

  6. #6
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Formula to render certain values blank

    Thank you! It has worked! Although i've now removed the -1 as I don't know why that was in there.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: Formula to render certain values 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. [SOLVED] VBA code to freeze calculated value & render formula 'inactive'?
    By Big.Moe in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-15-2017, 08:14 PM
  2. Formula that returns only values of cells and doesnt return blank/NA values
    By pageandrewr1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2016, 12:32 PM
  3. [SOLVED] Column Function to Render Zero
    By rentb23 in forum Excel General
    Replies: 5
    Last Post: 11-03-2012, 10:08 AM
  4. Render excel to html table accessible
    By lasallej in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-04-2009, 03:10 PM
  5. VBA code to render a userform unusable after a certain date
    By Kr4ftw3rk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-21-2008, 10:14 AM
  6. Drop Down List:render a schematic
    By IGWright in forum Excel General
    Replies: 2
    Last Post: 09-16-2007, 08:08 AM
  7. Render Length of String? Wrapping problem
    By WaltW in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2006, 03:30 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