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 wont subtract - what am I doing wrong?

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





PostPosted: Mon Apr 19, 2004 6:31 pm    Post subject: sum wont subtract - what am I doing wrong? Reply with quote

I'm using Open Office 1.1.1 and Calc to basically keep track of my bank statements.

column C is money in
D is money out
E is current balance

so I use something like this in cell E10

=E9+C10-D10

But it subrtacted in one cell but just wont do it in any others - even if I edit the formula and thats all i ask it to do.

Is this a bug? Am I missing something really obvious.

Please help.

(I am running Slackware 9.1 with Dropline Gnome 2.6)
Back to top
Iannz
OOo Advocate
OOo Advocate


Joined: 14 Feb 2004
Posts: 494
Location: Christchurch, New Zealand

PostPosted: Mon Apr 19, 2004 6:48 pm    Post subject: Reply with quote

The most likely scenario is that the value in cell D10 is being interpreted as text.
Make sure that the cells are not formatted as text.
That there is no initial apostrophe.
Try reentering the numbers - just numbers.
Hope this helps.
_________________
Cheers, Ian

http://wiki.services.openoffice.org/wiki/Extensions_development_basic a wiki about writing OpenOffice.org extensions.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Apr 19, 2004 6:58 pm    Post subject: Reply with quote

WOW - thanks - problem sorted.

I went back and there was a leading apostrophy - I have no idea how that got there but removal certainly helped.

Thankyou for your swift reply
Back to top
erikanderson3
OOo Advocate
OOo Advocate


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

PostPosted: Mon Apr 19, 2004 7:08 pm    Post subject: Reply with quote

The apostrophe is something OOo (Excel too, for that matter) automatically inserts before numbers in cells formatted for text. It basically says, "treat these numbers like a text string." To make sure that numbers you enter into a cell are treated as numbers instead of a string, select the range of cells for entry, and either click Format -> Cells, or right-click and select Format Cells. Then choose the Numbers tab, and select the appropriate entry from the Category field on the left.

Cheers,

Erik
Back to top
View user's profile Send private message
ixus_123
Newbie
Newbie


Joined: 19 Apr 2004
Posts: 3
Location: London, UK

PostPosted: Mon Apr 19, 2004 8:35 pm    Post subject: Reply with quote

Thanks a lot guys
_________________
700Mhz Athlon running Slackware 9.1 with Dropline Gnome
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