| View previous topic :: View next topic |
| Author |
Message |
ixus_123 Guest
|
Posted: Mon Apr 19, 2004 6:31 pm Post subject: sum wont subtract - what am I doing wrong? |
|
|
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

Joined: 14 Feb 2004 Posts: 494 Location: Christchurch, New Zealand
|
Posted: Mon Apr 19, 2004 6:48 pm Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Mon Apr 19, 2004 6:58 pm Post subject: |
|
|
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

Joined: 25 Feb 2004 Posts: 332 Location: San Francisco peninsula
|
Posted: Mon Apr 19, 2004 7:08 pm Post subject: |
|
|
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 |
|
 |
ixus_123 Newbie

Joined: 19 Apr 2004 Posts: 3 Location: London, UK
|
Posted: Mon Apr 19, 2004 8:35 pm Post subject: |
|
|
Thanks a lot guys _________________ 700Mhz Athlon running Slackware 9.1 with Dropline Gnome |
|
| Back to top |
|
 |
|