+ Reply to Thread
Results 1 to 16 of 16

Sum a row that also has REF error in it.

  1. #1
    Registered User
    Join Date
    11-28-2009
    Location
    Mosta,Malta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Sum a row that also has REF error in it.

    I'm trying to sum a row of cells that has formulas in these cells and in certain cells there are the results of this formula and in some no (still needs to be worked out and till now it's showing as a REF error).

    Whan I'm summing all up to get the total it's telling me also a REF error. Can I get aroung this with another formula rather then the SUM formula, please?

    Alan

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sum a row that also has REF error in it.

    its far easier to fix the ref errors!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    11-28-2009
    Location
    Mosta,Malta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sum a row that also has REF error in it.

    I cannot, because the REF errors are not actually errors. they are cells with formulas, where these formulas gather data from other tabs in the same workbook and till their date comes, these tabs cannot be created. So until then they will have to remain REF cells.
    Last edited by shg; 12-29-2009 at 12:59 PM. Reason: deleted spurious quote

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Sum a row that also has REF error in it.

    I agree with Martin, but the formula itself could be =SUM(IF(ISNUMBER(A1:A3),A1:A3)) confirmed with Control+Shift+Enter (not just Enter).

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sum a row that also has REF error in it.

    Or
    =sumif(b1:b5,"<>#ref!")

  6. #6
    Registered User
    Join Date
    11-28-2009
    Location
    Mosta,Malta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sum a row that also has REF error in it.

    that's good thanks and like that I don't need to confirm with the Ctrl+shift+Enter

    I think that this is the final solution

    thanks very much
    Last edited by shg; 12-29-2009 at 12:58 PM. Reason: deleted spurious quote

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Sum a row that also has REF error in it.

    Quote Originally Posted by alancauchi View Post
    I cannot, because the REF errors are not actually errors. they are cells with formulas, where these formulas gather data from other tabs in the same workbook and till their date comes, these tabs cannot be created. So until then they will have to remain REF cells.
    With Excel 2007 it's quite easy to replace errors with blanks, i.e.

    =IFERROR(formula,"")

    where formula is the current formula (without the first = sign)

    then you can use a regular SUM formula to sum the range....and the display is more aesthetically pleasing, I would suggest

  8. #8
    Registered User
    Join Date
    11-28-2009
    Location
    Mosta,Malta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sum a row that also has REF error in it.

    Do you insert this infront of the actual formula or in any cell?
    Last edited by shg; 12-29-2009 at 12:58 PM. Reason: deleted spurious quote

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Sum a row that also has REF error in it.

    My suggestion would be to replace the existing formula with the IFERROR version, e.g. if you have this formula in a cell

    =VLOOKUP(A2,Sheet1!B2:C10,2,0)

    then you just "wrap" it in an IFERROR function, e.g.

    =IFERROR(VLOOKUP(A2,Sheet1!B2:C10,2,0),"")

    That formula will return the result of the VLOOKUP formula....or if the VLOOKUP returns any error it will return whatever you show at the end, I used "", which is a blank, you could use a zero......

  10. #10
    Registered User
    Join Date
    11-28-2009
    Location
    Mosta,Malta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sum a row that also has REF error in it.

    Ok I can adjust it like that and problem will be olved better like that, thanks.

    By the way, any chance that you know how to color(highlight) items in a drop-down list, by any chance
    Last edited by shg; 12-29-2009 at 12:58 PM. Reason: deleted spurious quote

  11. #11
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Sum a row that also has REF error in it.

    Quote Originally Posted by alancauchi View Post
    By the way, any chance that you know how to color(highlight) items in a drop-down list, by any chance
    As it happens....I don't....but in any case you should always start a new thread for a new question.......thanks

  12. #12
    Registered User
    Join Date
    11-28-2009
    Location
    Mosta,Malta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sum a row that also has REF error in it.

    ok thanks just the same
    Last edited by shg; 12-29-2009 at 12:59 PM. Reason: deleted spurious quote

  13. #13
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Sum a row that also has REF error in it.

    alancauchi, please don't quote whole posts. It's just clutter.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  14. #14
    Registered User
    Join Date
    11-28-2009
    Location
    Mosta,Malta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sum a row that also has REF error in it.

    ok sorry, didn't know that I was clustering

  15. #15
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Talking Re: Sum a row that also has REF error in it.

    You could also use a combination of custom functions like so:

    Please Login or Register  to view this content.
    then just use =SUMNUMS(A1:A100)

    cheers
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  16. #16
    Registered User
    Join Date
    11-28-2009
    Location
    Mosta,Malta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sum a row that also has REF error in it.

    thanks very much, but why use all this VB code when just a formula did it all?

+ 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