+ Reply to Thread
Results 1 to 13 of 13

Why does simple Summation give #VALUE!?

  1. #1
    Forum Contributor
    Join Date
    08-06-2012
    Location
    Brighton, UK
    MS-Off Ver
    MS Office 2021 and 2019
    Posts
    112

    Why does simple Summation give #VALUE!?

    I am getting the error message "#VALUE!" when I attempt a simple summation - either using SUM() or direct cell addition A1+B1+C1+D1 with some blanks in some of the cells (see sample spreadsheet) - but only in some rows

    I suspect there's something odd about the cells containing the numbers or blanks, but I cannot see it.

    I fear it is something simple, but I've tried for some time to find what's wrong and failed. I would appreciate a fresh pair of eyes to look and hopefully tell me what I'm doing wrong.
    Attached Files Attached Files

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Why does simple Summation give #VALUE!?

    all the SUM() formulas work okay, you get the value error there when you try to negate a blank in column D, in the straight forward addition, you get the value error for trying to use blanks as numbers (this is why SUM() works better, it ignores blanks, unless of course, you try to do a operation on a value within the sum function that is not a value )

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Why does simple Summation give #VALUE!?

    Im not sure what is in those cells, but they are not blank. If you select A1:C1 and delete, the formulas all work.

    Where is this data comimg from...downloaded from somewhere?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Why does simple Summation give #VALUE!?

    :@ FDibbins, just did as you sugessted, and yes, the simple additions work, as long as there is a value in D, but the SUMS() all go #value, at least for me, any Dcolumn value that is Blank, still returns #value here...weird...

    Edit
    Now some of them work, some do not...head scratching here
    Last edited by dredwolf; 10-28-2013 at 08:36 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Why does simple Summation give #VALUE!?

    I deleted A1:C2, but did not touch row 3...
    A
    B
    C
    D
    E
    F
    G
    1
    0.0121
    -0.0030
    -0.00303
    -0.0121
    2
    0.0056
    -0.0014
    -0.00141
    -0.0056
    3
    0.0083
    #VALUE!
    #VALUE!
    #VALUE!

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Why does simple Summation give #VALUE!?

    Yes, I'm getting some weird results to now, the blanks in D column are definitely a problem (you can't negate "", I checked out row 3 with the evaluate formula tool, and that was what it showed was happening) but some of the others have me stumped yet...

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Why does simple Summation give #VALUE!?

    I am going to throw this into the "call in the cav" thread, because I cant see what in there would cause this

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Why does simple Summation give #VALUE!?

    Okay, if you delete the D column blanks,the sum works (ie, "" is invalid, but null is acceptable), so it appears that the results are coming from a formula that turns the cell to "", Iwould make the blank cells be 0, then use formatting to make them appear as "" (ie custom format #.####;; )
    that way both the sum and simple addition are guaranteed to have values to work with..I hope

    Edit-
    at least make the D column values = 0, as per first post, you can not negate a Blank ("")
    Last edited by dredwolf; 10-28-2013 at 09:12 PM.

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

    Re: Why does simple Summation give #VALUE!?

    im not sure either but select a1:d16
    use find replace
    find ... leave blank
    replace with use say @
    replace all
    then find @ replace all with nothing
    "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

  10. #10
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Why does simple Summation give #VALUE!?

    Thanks Martin much appreciated !

  11. #11
    Forum Contributor
    Join Date
    08-06-2012
    Location
    Brighton, UK
    MS-Off Ver
    MS Office 2021 and 2019
    Posts
    112

    Re: Why does simple Summation give #VALUE!?

    Quote Originally Posted by dredwolf View Post
    all the SUM() formulas work okay, you get the value error there when you try to negate a blank in column D, in the straight forward addition, you get the value error for trying to use blanks as numbers (this is why SUM() works better, it ignores blanks, unless of course, you try to do a operation on a value within the sum function that is not a value )

    Hope this helps
    Thanks. That does indeed explain why col.E has "#VALUE!" and will enable me to go forward. However, it does not explain cols F & G

  12. #12
    Forum Contributor
    Join Date
    08-06-2012
    Location
    Brighton, UK
    MS-Off Ver
    MS Office 2021 and 2019
    Posts
    112

    Re: Why does simple Summation give #VALUE!?

    All this data comes from an earlier part in my spreadsheet, but I've done a 'Values & Source Formatting' paste, so there are only numbers and blanks transferred into this sample spreadsheet.

  13. #13
    Forum Contributor
    Join Date
    08-06-2012
    Location
    Brighton, UK
    MS-Off Ver
    MS Office 2021 and 2019
    Posts
    112

    Re: Why does simple Summation give #VALUE!?

    Thanks everyone for your exploration of my problem and your responses. I'm glad that you found that there is indeed something odd going on. However, as I've said in my first response, it seems that if I can do an IF and get the negative blank of D out of the way, I can do what I want. Thanks again.

+ 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. Using a summation
    By Oralfloss in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 02:30 PM
  2. Relatively simple summation program
    By excel_newbert in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2012, 10:51 PM
  3. Simple summation problem
    By jtn8304 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2011, 06:58 PM
  4. Give RELEVANT responses to questions. DO NOT give usless list
    By pmartin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2006, 02:00 PM
  5. How use summation?
    By Akaplen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2005, 05:05 PM

Tags for this Thread

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