| View previous topic :: View next topic |
| Author |
Message |
benlenton Newbie

Joined: 14 Jun 2009 Posts: 2
|
Posted: Sun Jun 14, 2009 3:04 am Post subject: PROBLEM WITH MULTIPLICATION FORMULA |
|
|
Hi there
I have a problem with a simple multiplication formula which is not functioning.
In one cell (e.g. B1) I insert a figure e.g. 5000
In the other cell (e.g. B2) I insert a multiplier e.g. 20% or 0.2
In the third cell I insert the formula as follows:
=B1*B2
when the result should be 1000, it is returning as zero. I can't work out why because on all other sheets I am working on there is no problem at all with this formula.
Does anyone know the reason for this?
Thanks
Ben |
|
| Back to top |
|
 |
Villeroy Super User


Joined: 04 Oct 2004 Posts: 10065 Location: Germany
|
Posted: Sun Jun 14, 2009 4:52 am Post subject: |
|
|
Your number format locale of the "0.2" value is set to "Default" which defaults to the application-wide number locale in the language options, which itself defaults to the language and country of your operating system. The program can not read your mind. The OS locale is the only way to get a hint about the local context you are using for your numbers.
Let's say, your locale is French, German, Swedish or something, then "0.2" is text rather than a number, but "0,2" is numeric.
If this is not the reason, then you enforced any one of the involved numbers to be text. Ususally this happens on import if the source data are explicitly declared as text or with messed up Excel files where recent versions of Excel try to evaluate numeric text values (which may yield wrong values at times).
Ctrl+F8 shows numbers in blue font, text in black. _________________ Rest in peace, oooforum.org
Get help on http://forum.openoffice.org |
|
| Back to top |
|
 |
benlenton Newbie

Joined: 14 Jun 2009 Posts: 2
|
Posted: Sun Jun 14, 2009 5:54 am Post subject: |
|
|
Great, thanks very much for the explanation. I have sorted it now (I think!).
Ben |
|
| Back to top |
|
 |
|