Hi N-G,
Formulas tend to be easier to read and interpret in the abstract (cell references instead of references by names)
Here's your formula, stripped of the distractions, and arranged to show the parts:
IF( Open IF
($B$2<G2)+(G2×($C$2%÷$D$3)), if-expression. This should be a Boolean expression which will return either
'true' or 'false'. It's where the warning is generated. Details below.
$G$2, if-true: If the expression returns 'true', return the value in G2.
G2+(G2×($C$2%÷$D$2)) if-false: If the expression returns false, do this calculation and return the result.
) Close IF
($B$2<G2)+(G2×($C$2%÷$D$3))
This says:
- "Determine whether the value in B2 is less than the value in G2. (the result will be 'true' or 'false')
- "Divide the value in C2 by 100 to convert it to a percentage, then divide that value by the value in D3.
(the result will be a number)
- Multiply the step 2 result by the value in G2. (the result will be a number)
- Add the step 3 result (a number) to the step 1 result (either 'true' or 'false') and return the result to IF.
Do you want to compare the values in B2 and G2, then perform one follow-up action if B2 is less than G2 (true) or a different action in B2 is equal to or greater than G2?
If so, dump the parentheses around $B$2<G2, place a comma immediately after G2, and rewrite the rest to fit what you want done if B2 is less than G2, and what you want done if B2 is equal to or greater than G2.
OR
Do you want to compare the value in B2 with the result of G2+G2×($C$2%÷$D$3). then perform a second action depending on the 'true'or 'false' retuned by that calculation?
Regards,
Barry