Brian,
Thank you, and sorry for the double post of this message.
The calculation you provided worked perfectly after correctly
identifying the necessary cells to be used. funny though the same
formula does not work just 2 columns to the left? See below and I am
sure identify the cause as I have spent too many hours trying to solve it.
On 02/02/13 17:22, Brian Barker wrote:
At 16:35 02/02/2013 +0200, Hylton Conacher wrote:
I have a formula ....as corrected below(except spaces):
=IF(B6>C2;D2;0) + IF(B6-C2>C3;D3;0) + IF(B6-C2-C3>C4;(B6-C2-C3)*B4;0)
I did not realise that the formula could be simplified that much :|
The extra brackets and 'SUM's were to keep to the BODMAS(Brackets OF
Division Multiplication Addition Subtraction) maths rule as I did not
want the greater than sign to only work on a single cell but on the sum
of a few cells.
The formula worked flawlessly and gave me the same answer when compared
to a calculator.
HOWEVER,
Needing to use the same scale and rules on a different column gave me an
incorrect answer?
I have amalgamated the data sheets onto a single sheet so many of the
cell references are the same, except the cell I need to use as the base.
Using a copy and paste of the formulae below:
The working one:
Cell
J2=IF(I2>G18,H18,0)+IF(I2-G18>J18,K18,0)+IF(I2-G18-J18>M18,(I2-G18-J18)*L18,0)
The non-working one:
Cell
H2=IF(G2>G18,H18,0)+IF((G2-G18)>J18,K18,0)+IF((G2-G18-J18)>M18,(G2-G18-J18)*L18,0)
As you can see the block being used has changed from I2 to G2, the rest
of the formula is much the same, bar the addition of an odd bracket
pair. The Non-working formula provides the same answer for H2 whether
the extra bracket pairs are there or not.
FYI: G2=433 and is manually entered
I2=1349.31 with formula =SUM(C2,D2)-G2
C2=1479
D2=303.31 with formula =O19
O19=303.31 with formula =SUM(G19:G20,J19:J20, M19:M20)
The answers I seek is for H2.
Using the non-working formula. the only answer I have been able to get
is R 169.80 (which is =H18). This is incorrect as according to the
sliding scale the answer should be R 504.05.
What is wrong with the non-working formula as it does not seem to
continue past the first IF argument?
I have attached the file and hope it will appear on Nabble, as even
after registering for Nabble, and confirming membership, I saw no
instructions/options to upload files. Maybe its automatic? Google was as
usual cryptic.
--
========================================================================
Hylton is a Lions Club member of Lions Club of Fish Hoek (District 410A)
http://e-clubhouse.org/sites/fishhoek/index.php being part of the worlds
largest non profit NGO
========================================================================
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.