+ Reply to Thread
Results 1 to 5 of 5

Formula returns #Value! empty cell value

  1. #1
    Registered User
    Join Date
    09-29-2004
    Posts
    17

    Formula returns #Value! empty cell value

    I have a cell with the following formula:

    =((F1*I10)+(F2*I12)+(F3*I13))/F7

    Because some of the cell values are empty, the computed cell value winds up being #VALUE!. In SQL I use a function called Coalesce. Is there something I can use in Excel that would change the value to 0 just for the formula?
    Thanks.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by ingineu
    I have a cell with the following formula:

    =((F1*I10)+(F2*I12)+(F3*I13))/F7

    Because some of the cell values are empty, the computed cell value winds up being #VALUE!. In SQL I use a function called Coalesce. Is there something I can use in Excel that would change the value to 0 just for the formula?
    Thanks.
    Try

    =IF(ISERROR(((F1*I10)+(F2*I12)+(F3*I13))/F7),0,((F1*I10)+(F2*I12)+(F3*I13))/F7)

  3. #3
    Registered User
    Join Date
    09-29-2004
    Posts
    17
    That would give me 0 even if some of the values computed correctly, is that right?

    eg. =((F1*I10)+(F2*I12)+(F3*I13))/F7

    I would like F1*I10 to compute, if both values exist, same goes for the other 2 bracketed computes

    Does this mean I need to wrap an IF stmt around all 3? There's no function available that sets the value to zero, if it's blank?

  4. #4
    Registered User
    Join Date
    09-29-2004
    Posts
    17
    Decided to use the N function:

    eg. =(N(F1)*N(I10))+.... etc.

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by ingineu
    Decided to use the N function:

    eg. =(N(F1)*N(I10))+.... etc.
    Ok - and thanks for the response.

+ 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