Avatar of Frank .S
Frank .S
Flag for Australia asked on

IF statement not calculating correctly

IF statement not calculating correctly

=IF(B29="","",roundup(B29*(D29+(P29/1000)-L29,0)) which is giving a result of -198.58, when it should be 50.14

for your ref
b29=25, d29=2.182, p29=235, L29=10.36

please assist
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Frank .S

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Saqib Husain

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Norie

Frank

What is the formula meant to calculate?

Also, how do you get a result of -198.58 when you are rounding to 0 decimal places?
Boris Petrovic

You have missed one closing parenthesis.
If you close the parenthesis after the L29 => L29), you will get -199.
If you close the parenthesis after the (P29/1000) => (P29/1000)), you will get 51
Frank .S

ASKER
thankyou experts.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck