+ Reply to Thread
Results 1 to 13 of 13

errors and zeros

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    errors and zeros

    I have an excel spreadsheet with multiple tabs. When I enter a formula in one of the tabs which performs a calculation across two or more of the other tabs, I sometimes will get a zero or an error. How can I use the iferror formula (or another function) to turn both these two possible results to a blank cell leaving me with just values other than zero or error ?

  2. #2
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: errors and zeros

    encode ur formula with iferror at start =iferror(ur formula),blank)
    =iferror(()," ")

  3. #3
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    Re: errors and zeros

    This does not remove both #error and "0"

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: errors and zeros

    =If(OR(your formula=0,iserror(your formula)),"",yourformula)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    Re: errors and zeros

    for instance, if the formula =IFERROR('TAB1'!DU283/'TAB2'!DU283,"") is written, This changes an #error to blank but if the result is zero, then the zero is placed in the cell

  6. #6
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    Re: errors and zeros

    I'm still getting #value! and #div/0!. The zeros have changed to blank though.

  7. #7
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    Re: errors and zeros

    Hi again, I still cannot get the formula to work. I've attached a demo file trying to show what I'm doing. The results in cells G13 and G14 should be blank but they are showing #value! and #div/0! What am I doing wrong ?
    Attached Files Attached Files

  8. #8
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: errors and zeros

    Hi,

    In G12: =IFERROR(G5/G8,"")
    G13: =IFERROR(G4/G10,"")
    G14: =IFERROR(G5/G9,"")

  9. #9
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    Re: errors and zeros

    Hi, I want cell to only return a value if result is NOT 0, or #div/0! or #value! or any other error code

  10. #10
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: errors and zeros

    Did you try the formula I suggested?

  11. #11
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: errors and zeros

    Hi,

    As you want to remove zeroes as well, try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I tried using OR instead of two nested IF statements, but for some reason that doesn't work - but the formula above works for me - see attached file.
    Remove zeros and errors.xlsx

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  12. #12
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    Re: errors and zeros

    Thank you Soooooooo Much! Problem solved.

  13. #13
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: errors and zeros

    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. Replies: 8
    Last Post: 12-31-2014, 11:48 AM
  2. [SOLVED] Find unique values from range ( populated cells only) & not count zeros or NA errors VBA
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2014, 06:50 AM
  3. Average Ignore Zeros, with a buttload of commas, errors
    By moosemoosemoose in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-02-2013, 04:06 PM
  4. Frequency function omitting zeros and errors
    By ArekRos in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-04-2012, 06:11 PM
  5. Replies: 5
    Last Post: 04-09-2012, 02:28 PM
  6. Replies: 2
    Last Post: 02-22-2008, 11:18 AM
  7. Replies: 1
    Last Post: 05-04-2005, 02:06 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