OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

SUM won't sum negativ numbers

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Apr 13, 2004 7:40 am    Post subject: SUM won't sum negativ numbers Reply with quote

Hi

I need to SUM positiv and negative numbers. Positiv numbers are OK. Bit SUM only adds positiv numbers.
The Formula is: SUM(A1:A20)/10
nest row : SUM(A2:A21)/10
...
If all cells are positiv : restult is correct
if some are positive ansd some negativ: only the positiv one added
if all are negativ: result is = 0

Is this a bug or have I to do something diffeent?


thank you
Back to top
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Tue Apr 13, 2004 3:54 pm    Post subject: Re: SUM won't sum negativ numbers Reply with quote

Anonymous wrote:
Hi

I need to SUM positiv and negative numbers. Positiv numbers are OK. Bit SUM only adds positiv numbers.
The Formula is: SUM(A1:A20)/10
nest row : SUM(A2:A21)/10
...
If all cells are positiv : restult is correct
if some are positive ansd some negativ: only the positiv one added
if all are negativ: result is = 0


I for one seem to have no such problem. If it's a small spreadsheet, could you send it here for a better look?

David.
Back to top
View user's profile Send private message
erikanderson3
OOo Advocate
OOo Advocate


Joined: 25 Feb 2004
Posts: 332
Location: San Francisco peninsula

PostPosted: Tue Apr 13, 2004 6:19 pm    Post subject: Reply with quote

Double-check that the cells are all formatted for Number. I cannot reproduce the behaviour on my install, but there may be a slim chance the negative numbers are being treated as text instead of numbers. If this is the case, selecting a cell with a negative number will likely show a single apostrophe before the number:
Code:
'-6
Furthermore, the alignment may be different. Numbers are usually right-justified, while text is left-justified. Format the cell as Number, hit Backspace to clear the contents, re-type the negative number, and it should sum correctly.

Also, what version of OOo are you using?

Cheers,

Erik
Back to top
View user's profile Send private message
carl
Super User
Super User


Joined: 21 Apr 2003
Posts: 920
Location: Germany

PostPosted: Tue Apr 13, 2004 9:50 pm    Post subject: Reply with quote

try Edit> Value Highlghlt to check if the minus values are being read as numbers or text.
I use File>Find and edit on selected columns to fiddle with removing dots and replacing with commas (or vice versa) Also you can remove unwanted or unreadable currency symbols , dr/cr signs etc.
_________________
carl
Using OpenOffice.org 2 on XP sp2
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group