+ Reply to Thread
Results 1 to 7 of 7

Trying to convert a #VALUE! an/or #CALC! error into a blank cell

Hybrid View

  1. #1
    Registered User
    Join Date
    04-29-2020
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    50

    Question Trying to convert a #VALUE! an/or #CALC! error into a blank cell

    Long story short, these 2 formulas work perfectly when it finds the qualified data, but if there is no matching data, I receive a #VALUE! or #CALC! error in the first cell

    #VALUE! error
    =SORT(CHOOSECOLS(FILTER(Bills!$B$5:$J$49,(Bills!$C$5:$C$49=Bills!$L$30)*(Bills!$I$5:$I$49>0),""),1,8,9),3)

    #CALC! error
    =SORT(CHOOSECOLS(FILTER(Bills!$B$5:$J$49,(Bills!$C$5:$C$49=Bills!$L$30)*(Bills!$I$5:$I$49>0)),1,8,9),3)
    How can I get it to return a blank cell? I've tried adding a IFERROR function in a few places but I'm not getting the result I'm looking for. I'm probably putting IFERROR in the wrong place.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: Trying to convert a #VALUE! an/or #CALC! error into a blank cell

    IFERROR( usually goes in front and ,0) at the end, is that what you tried?
    =IFERROR(your formula),0)
    Last edited by Sam Capricci; 02-18-2025 at 11:59 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    04-29-2020
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    50

    Re: Trying to convert a #VALUE! an/or #CALC! error into a blank cell

    Sam, I tried a variation of that, I don't remember where, and it didn't work, but I got it working now, thanks.

    TMS

    I believe your first example is going to work for me, but since I don't want it to return any value, I changed the 0 at the end to double quotes. I think this is exactly what I needed. Thanks.

    I replaced the last 0 you added with the double quotes at the end and removed the pair I already had in there.

    This one worked...

    =IFERROR(SORT(CHOOSECOLS(FILTER(Bills!$B$5:$J$49,(Bills!$C$5:$C$49=Bills!$L$30)*(Bills!$I$5:$I$49>0)),1,8,9),3),"")
    Last edited by BigPapaMurf; 02-19-2025 at 07:58 PM.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Trying to convert a #VALUE! an/or #CALC! error into a blank cell

    Quote Originally Posted by BigPapaMurf View Post
    I tried a variotion of that, I don't remember where, and it didn't work, but I got it working now, thanks.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon (Next to Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Last edited by TMS; 02-19-2025 at 08:00 PM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    04-29-2020
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    50

    Re: Trying to convert a #VALUE! an/or #CALC! error into a blank cell

    =IFERROR(SORT(CHOOSECOLS(FILTER(Bills!$B$5:$J$49,(Bills!$C$5:$C$49=Bills!$L$30)*(Bills!$I$5:$I$49>0)),1,8,9),3),"")
    This one worked ^ The 2 pairs of double quotes was redundant.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Trying to convert a #VALUE! an/or #CALC! error into a blank cell

    Maybe this:
    Formula: copy to clipboard
    =IFERROR(SORT(CHOOSECOLS(FILTER(Bills!$B$5:$J$49,(Bills!$C$5:$C$49=Bills!$L$30)*(Bills!$I$5:$I$49>0),""),1,8,9),3),0)


    Or this:
    Formula: copy to clipboard
    =IFERROR(SORT(CHOOSECOLS(FILTER(Bills!$B$5:$J$49,(Bills!$C$5:$C$49=Bills!$L$30)*(Bills!$I$5:$I$49>0),""),1,8,9),3),{0,0,0})

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Trying to convert a #VALUE! an/or #CALC! error into a blank cell

    Thanks for the rep.

+ 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] Formula to Use one calc or the other if cell is blank
    By JennOlsen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2021, 01:41 PM
  2. [SOLVED] Need formula which will ignore blank cells and find next cell with value, then calc
    By Angelique7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-28-2020, 09:13 AM
  3. [SOLVED] Convert Range to Percentages either by calc or C+P.
    By And180y in forum Excel Programming / VBA / Macros
    Replies: 71
    Last Post: 04-16-2020, 05:14 PM
  4. Replies: 2
    Last Post: 09-20-2013, 01:43 PM
  5. Convert calculated zero to blank cell
    By canada123 in forum Excel General
    Replies: 2
    Last Post: 11-17-2011, 10:18 PM
  6. How to convert (calculated) zero to blank cell in column
    By canada123 in forum Excel General
    Replies: 4
    Last Post: 11-16-2011, 02:50 PM
  7. Re-Calc from new cell if so many cells are blank
    By zny_kan in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-11-2008, 10:58 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