Excel 2013 sum function returns 0 for range of nonzero numbers

Anonymous
2015-09-22T23:01:56+00:00

I'm having problems with what I would hope to be the most robust and simple excel formula. I was given a "#DIV/0" error when trying to calculate the proportion of a cell's content to the sum of the cells in a range (e.g. "=AO35/SUM(AO35:A039)). Cells in the referenced range were formatted as numbers, and I've also tried "general."  Digging into the next layer, excel returns a value of 0 for both "=SUM(AO35:AO39)" and "=SUM(AO35,AO36,AO37,AO38,AO39)" which have values of 3, 41, 1, 3, 15. Now if I enter the formula "=AO35+AO36+AO37+AO38+AO39" excel returns the correct value of 63. Am I missing something here? because I have long been under the impression that the sum of a set of numbers is obtained by adding them together. If this is false then my whole mathematical world of calculating SD, SEM, residuals, etc. is about to come crashing down.

The one and only factor that I can think of which could be effecting this (assuming that the coding for excel could possibly be flawed) is that I had copied the worksheet in question into an existing workbook while retaining the original theme (to retain cell colors). Both were created in the same version of excel though. Again, I have checked the cell formatting for the range of cells, as well as for the formula cell.

Any help, advice, or insight is greatly appreciated.

~D

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Anonymous
    2015-09-22T23:28:47+00:00

    Your numbers are stored as a Text in your range. See my snip shot, where Column E is my different formula while column F is the formula Text. When you sum individually with "equal to" sign excel smartly recognizes those text numbers and convert it in to number for solution.

    To solve it, you have to select your range and then you will see a small yellow pop in right corner, click it and from there select convert to number.

    31 people found this answer helpful.
    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Anonymous
    2015-09-23T01:47:11+00:00

    Most functions ignore Text, including number stored as text.  SUM is one of them.

    For your reference:

    Sum vs. +

    6 people found this answer helpful.
    0 comments No comments
  4. Vijay A. Verma 104.7K Reputation points Volunteer Moderator
    2015-09-23T09:36:29+00:00
    1. Copy a blank cell.
    2. Select the cells or the entire column where values are in text.
    3. Paste Special > Add

    Your all text numbers will be converted into numbers and non-numbers will be left untouched.

    33 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2016-08-26T02:58:27+00:00

    I'm having problems with what I would hope to be the most robust and simple excel formula. I was given a "#DIV/0" error when trying to calculate the proportion of a cell's content to the sum of the cells in a range (e.g. "=AO35/SUM(AO35:A039)). Cells in the referenced range were formatted as numbers, and I've also tried "general."  Digging into the next layer, excel returns a value of 0 for both "=SUM(AO35:AO39)" and "=SUM(AO35,AO36,AO37,AO38,AO39)" which have values of 3, 41, 1, 3, 15. Now if I enter the formula "=AO35+AO36+AO37+AO38+AO39" excel returns the correct value of 63. Am I missing something here? because I have long been under the impression that the sum of a set of numbers is obtained by adding them together. If this is false then my whole mathematical world of calculating SD, SEM, residuals, etc. is about to come crashing down.

    The one and only factor that I can think of which could be effecting this (assuming that the coding for excel could possibly be flawed) is that I had copied the worksheet in question into an existing workbook while retaining the original theme (to retain cell colors). Both were created in the same version of excel though. Again, I have checked the cell formatting for the range of cells, as well as for the formula cell.

    Any help, advice, or insight is greatly appreciated.

    ~D

    This is a GREAT & SIMPLE post.

    The Context of my problem was values imported from a web site, then subsequently processed in a VLOOKUP function.

    I tried MANY things...  I could not eliminate my errors .

    I dont know WHY I had such trouble with this, but THANKS FOR THIS SIMPLE but powerful, problem solving tip.

    BG

    0 comments No comments