Sum/calculating error in Numbers

Hi guys,


I’ve been using Numbers to track finances, using the “sum” option to add up all the expenses in the table at the end of the month.

I recently started using the app Notion, and prefer that better for tracking expenses, so will be switching to that from now on.


As it’s the end of the month I was just calculating some totals and there was a discrepancy between both apps, despite having the exact same data.

I’ve just wasted over an hour or so going through every single section/row confirming no data was missing and added everything manually, cross-referencing etc to see where the error was.


I discovered that when I use the “sum” action in Numbers it’s showing an incorrect total, however when I add every number myself (manually) I received the correct amount (which also matched the amount from Notion).


Very frustrated as I’ve been relying on Numbers for over a year to calculate expenses, I had no reason to consider that it’s “sum” action might show incorrect totals.


So just to summarise, when I highlight all the numbers/rows and press ‘sum’ it gives me a different total to what I’d get if I just added each one myself. It’s giving me the incorrect sum, as I’ve re-calculated manually many times now (and even so, the amount I manually get also matches the auto-sum in Notion).


Is there a known error with the ‘sum’ action? I definitely can’t rely on it anymore so will just use Notion from now on, just asking if any one else has had this issue, or why it’s even possible when the data isn’t being altered, whether I auto-sum or manually sum using the exact same numbers it should of course total the same.


Any thoughts greatly appreciated.


Posted on Jan 31, 2021 11:56 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 1, 2021 5:47 AM

The most typical reason for numbers not summing with the SUM function is that one or more of them are actually text, not numbers. They may look like numbers to you and I but the app considers them to be text. It could be one or more cells are formatted as text or there is something else going on that is making the app think they are text. SUM and other math functions ignore text. The math operators (+ - * /) will work with text "numbers".


One way to figure this out, and also possibly correct it, is to select all the cells you want to sum and change the format to one of the number formats. If currency, change them to number. If not currency, change them to currency. If they started as currency, those that did not change (i.e., still have a currency symbol) are a problem. If they started as regular numbers, those that did not get a currency symbol are a problem. Just changing the format might have been enough to fix the problem so if all are acting as they should, look at the SUM and see if it is correct now.

Similar questions

5 replies
Question marked as Top-ranking reply

Feb 1, 2021 5:47 AM in response to FSAS

The most typical reason for numbers not summing with the SUM function is that one or more of them are actually text, not numbers. They may look like numbers to you and I but the app considers them to be text. It could be one or more cells are formatted as text or there is something else going on that is making the app think they are text. SUM and other math functions ignore text. The math operators (+ - * /) will work with text "numbers".


One way to figure this out, and also possibly correct it, is to select all the cells you want to sum and change the format to one of the number formats. If currency, change them to number. If not currency, change them to currency. If they started as currency, those that did not change (i.e., still have a currency symbol) are a problem. If they started as regular numbers, those that did not get a currency symbol are a problem. Just changing the format might have been enough to fix the problem so if all are acting as they should, look at the SUM and see if it is correct now.

Feb 1, 2021 11:45 PM in response to Badunit

Thank you Badunit!

I changed the format of the highlighted cells from currency to numbers and back to currency and that fixed the issue :)

When highlighting the numbers and viewing their format it appears it was on automatic rather anything specific, so one or more of the rows must have been causing an issue. I did a bit of editing to this document, will be more wary in the future - and will definitely keep this in mind if I run into issues again :)


Thank you as well Barry for your advice, I appreciate both your speedy replies!



Feb 1, 2021 12:24 AM in response to FSAS

Not enough information to accurately determine what is happening, as we're not in the room with you and can't see either the screen or the actions you are taking to get Numbers to calculate the total.


Is the total larger or smaller than the manual result?


Does the data include positive AND negative values, or are all values positive (or all values negative)?

Is there multiplication or division involved in the calculations?

Are all the numbers integers, or are there decimal parts involved?

How large are the errors?


What formulas are used? (actual formulas, not just function names).


Can you provide an example displaying the errors (without showing any real information regarding your financials or other personal information)? Can you construct an example that reproduces the errors with data we could copy to test for errors on our Macs?


Regards,

Barry

Feb 1, 2021 12:49 AM in response to Barry

Hi Barry,


Thank you for your reply,


I’m unable to share screenshots properly at the moment (at the ipad rather computer) though just to answer some of your questions,


The data only contains positive values, very much just a string of 44 rows with numbers such as: “50.50”, “10.00”, “5.95” “19.50”for example.

There’s no multiplication or division, I’ve never really need Numbers for more complex things other than simply addition, so usually after I’ve listed my row of numbers, I highlight them all at once, click “cell actions” and under “quick formulas” I click sum. When I click into the “formula info” it just says SUM C94:C100^ (Row 94-100 is highlighted)


I tried a few different things before, such as I copied and pasted the 44 rows of numbers into a different section of the document, summed their total again and the same error occurred. I then broke the 44 rows up into 2 parts and summed each part separately and interestingly they both had the correct result. The error seems to only occur when I try to add the lot together all at once. The margin of error is not massive, exactly 110, it was still enough to intrigue me to what might be going wrong though.


It’s not a major issue, genuinely just curious if I’ve perhaps done something strange or if there’s anything known that might cause an inconsistency to come about.


Thanks so much for your advice!



Feb 1, 2021 1:48 AM in response to FSAS

"The margin of error is not massive, exactly 110, it was still enough to intrigue me to what might be going wrong though."


I'd call an error of 110 in a sum of seven numbers huge, especially considering the average magnitude of your sample numbers.


"SUM C94:C100^"


Typo? Or is that carat really in the formula?


Regards,

Barry

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Sum/calculating error in Numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.