Feb 22, 2023 04:11 AM
Hello all,
I am new at this and english is not my first language, but i'll try to explain.
Solved! Go to Solution.
Feb 22, 2023 01:00 PM
Your conditions are not written correctly.
{Jul} >= 2000 <3000
You probably meant this to test if {Jul} is between 2000 and 3000, but that is not how the formula works. You cannot chain comparison operators this way.
However, you are also in luck in that you do not actually need to test both conditions. You only need to test if the value is less than 3000, because you already know that the value must be above 2000 due to the previous If.
IF(
{Jul} < 2000,
"No bonus",
IF(
{Jul} < 3000,
"50 bonus",
IF(
{Jul} < 4000,
"100 bonus",
IF(
{Jul} < 5000,
"150 bonus"
))))
You also might want to decide what the bonus should be if {Jul} is over 5000. Currently the formula will provide no value.
Feb 22, 2023 01:00 PM
Your conditions are not written correctly.
{Jul} >= 2000 <3000
You probably meant this to test if {Jul} is between 2000 and 3000, but that is not how the formula works. You cannot chain comparison operators this way.
However, you are also in luck in that you do not actually need to test both conditions. You only need to test if the value is less than 3000, because you already know that the value must be above 2000 due to the previous If.
IF(
{Jul} < 2000,
"No bonus",
IF(
{Jul} < 3000,
"50 bonus",
IF(
{Jul} < 4000,
"100 bonus",
IF(
{Jul} < 5000,
"150 bonus"
))))
You also might want to decide what the bonus should be if {Jul} is over 5000. Currently the formula will provide no value.
Feb 22, 2023 11:24 PM
Yes that is the solution, thank you very much!