+ Reply to Thread
Results 1 to 5 of 5

help with formula. It works but empty cells show#VALUE

  1. #1
    Valued Forum Contributor
    Join Date
    06-23-2010
    Location
    North West
    MS-Off Ver
    office 2010
    Posts
    355

    help with formula. It works but empty cells show#VALUE

    I have attached a sample workbook and in it I have surprised myself by ammending a formula, it works but when the cell is empty I get #VALUE in the cells, I would like the cells to be empty. It's difficult to explain but it is obvious if you would take a look at my sample.
    Thank you.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: help with formula. It works but empty cells show#VALUE

    you need to use the IFERROR function.
    replace your formula in column E with the following:
    =IFERROR(IF($G6="","",SUM($G6+$F6))+IF(D6="Utilities",+$H$3),"")
    Please click the * icon below if I have helped.

  3. #3
    Valued Forum Contributor
    Join Date
    06-23-2010
    Location
    North West
    MS-Off Ver
    office 2010
    Posts
    355

    Re: help with formula. It works but empty cells show#VALUE

    WOW! Thanks very much, that solved it in what must be a record time, I'd only just posted and the solution was there

  4. #4
    Registered User
    Join Date
    10-19-2012
    Location
    Wirral, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: help with formula. It works but empty cells show#VALUE

    Thanks Melvinrobb, that is the tidiest solution for that problem that I have seen

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: help with formula. It works but empty cells show#VALUE

    You don't really need IFERROR here, you get #VALUE! error because when G6 is blank you are trying to add FALSE from the second IF function to "" - try a subtle re-arrangement of the syntax

    =IF($G6="","",SUM($G6,$F6)+IF(D6="Utilities",$H$3))
    Audere est facere

+ 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.6.0 RC 1