+ Reply to Thread
Results 1 to 5 of 5

Thread: IFERROR function

  1. #1
    Registered User
    Join Date
    08-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    IFERROR function

    When I use the function below it hides all the blank values (when there's nothing in the field entered) but when the value is equal to 0 in the field, it does not show the value as 0. How can show the value of 0 and not show the blank value to show up as 0.

    =IFERROR(1/(1/SUMIFS(Cost!$C$2:$C$7,Cost!$A$2:$A$7,B2,Cost!$B$2:$B$7,C2)),"")

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,052

    Re: IFERROR function

    Which fields should be blank for the formula to show a blank, all of Cost!$C$2:$C$7 or just on the rows where the two conditions are satisfied?
    Audere est facere

  3. #3
    Registered User
    Join Date
    08-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: IFERROR function

    If there is no numbers in the field Cost!$C$2:$C$7 it should be blank, but if there are numbers such as 0 in the same field it should show the value 0.

  4. #4
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,052

    Re: IFERROR function

    Perhaps try this version

    =IF(COUNT(Cost!$C$2:$C$7),SUMIFS(Cost!$C$2:$C$7,Cost!$A$2:$A$7,B2,Cost!$B$2:$B$7,C2),"")
    Audere est facere

  5. #5
    Registered User
    Join Date
    08-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: IFERROR function

    It is properly showing a 0 when a 0 appear in the cell. I used your function for the main tab in D2.

    But if the cell field is blank or contains text such as NA, it should show the field as blank instead of a 0.

    I also attached an excel sheet with the value I am looking for.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0