[Solved] Making a formula
[Solved] Making a formula
I need to make a formula:
=U9*0.07 and if greater than 30K add $500
=U9*0.07 and if greater than 30K add $500
Last edited by Hagar Delest on Mon Jul 12, 2021 10:47 pm, edited 1 time in total.
Reason: tagged solved.
Reason: tagged solved.
OpenOffice 4.1.7
Windows 10
Windows 10
Re: Making a formula
Assuming that refers to the result of U9*.07; you already have one part of the formula. To test the value of U9*.07 and add accordingly, the second part of the formula might beif greater than 30K
Code: Select all
+IF(U9*.07 > 30000;500;0)
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Re: Making a formula
Since the OP wants to add $500, then I would think an option could be
Code: Select all
=u9*.07+if(current()>30000;500;0)
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
Re: Making a formula
I tried =U9*0.07+IF(CURRENT(U9)>30000;500;0) and it still did not work
OpenOffice 4.1.7
Windows 10
Windows 10
Re: Making a formula
So the formula I am trying to make is the total of U9 x 7% +$500 if over 30,000.00
OpenOffice 4.1.7
Windows 10
Windows 10
Re: Making a formula
Both my suggestion and RusselB's behave as desired for me. What does 'did not work' mean - do you get an error?
See attached spreadsheet which uses both formulae - scroll across to U9.
See attached spreadsheet which uses both formulae - scroll across to U9.
- Attachments
-
- davidsllc.ods
- (7.84 KiB) Downloaded 87 times
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Re: Making a formula
+500 if which value is greater than 30000?
a) U9 or b) U9*0.07?
a) =U9*0.07+IF(U9>30000;500;0)
b) =U9*0.07+IF(CURRENT()>30000;500;0)
CURRENT() returns the calculation result so far, U9*0.07 in this case.
Equivalent b) =U9*0.07+IF(U9*0.07>30000;500;0)
a) U9 or b) U9*0.07?
a) =U9*0.07+IF(U9>30000;500;0)
b) =U9*0.07+IF(CURRENT()>30000;500;0)
CURRENT() returns the calculation result so far, U9*0.07 in this case.
Equivalent b) =U9*0.07+IF(U9*0.07>30000;500;0)
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Making a formula
You have a U9 in the parameter location of the CURRENT function. While that is a parameter location, it must be BLANKdavidsllc wrote:I tried =U9*0.07+IF(CURRENT(U9)>30000;500;0) and it still did not work
Compare the actual formula I posted with the one you tried.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.