+ Reply to Thread
Results 1 to 5 of 5

How to remove error message from result cell when no data is present

  1. #1
    Registered User
    Join Date
    07-18-2017
    Location
    philadelphia, pa
    MS-Off Ver
    2016
    Posts
    37

    How to remove error message from result cell when no data is present

    I have the sheet protected and I'm finding that the analysts do not always use 4 bottles per sample. How do I keep from having the error sign show up when, for example when line 5 in attached is blank. Thanks!!
    Attached Files Attached Files
    Last edited by buck08; 08-10-2017 at 03:11 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: How to remove error message from result cell when no data is present

    Replace the formula in I2, copied down, with:

    =IFERROR(IF(AND(E2>=1,F2>=2),ROUND((H2*300)/(C2),0),IF(F2<2,"< "&ROUND((H2*300)/(C2),0),IF(E2<1,"> "&ROUND((H2*300)/(C2),0)))),"")

    Whay is the formula in I6 referring to column J???
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: How to remove error message from result cell when no data is present

    Can you use iferror() in the other cells?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-18-2017
    Location
    philadelphia, pa
    MS-Off Ver
    2016
    Posts
    37

    Re: How to remove error message from result cell when no data is present

    Column J was set up as a helper column. I've been in the excel forum with a few topics trying to set this sheet up. I have rules on the sheet (in red) and if those rules aren't followed there's is either a < or > attached to the result and are considered estimated values. For each sample if one or more results follow the rules, those results are averaged while results that don't follow the rules are ignored. I have attached another updated sheet with different scenarios. I've added the if error but it removes the sign in my average cell.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: How to remove error message from result cell when no data is present

    If I understand then I would offer the following. If there isn't a Bottle # then there can't be any ml's used, initial DO, Final DO etc. so tie the calculation in column K to the existence of a bottle # in column B using the formula: =IF(B3="","",ROUND((I3*300)/(C3),0))
    Next to preserve the convention of <, >, or no preceding sign, modify the formula in the 'Average' cells to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Remove Rows when No data is present
    By Jordans121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2016, 07:51 AM
  2. Replies: 1
    Last Post: 06-18-2015, 11:49 PM
  3. Remove Hyperlink Error Message
    By Statto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2014, 07:33 PM
  4. [SOLVED] Remove error message, leave formulas in place
    By Silchas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2014, 03:13 PM
  5. remove item error message
    By spitta in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-25-2014, 04:09 PM
  6. Macro to Search for Error Message and Display solution result.
    By Ally1982 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2014, 12:22 PM
  7. Remove #n/a error message
    By Reymus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-31-2007, 12:25 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