Computing.Net > Forums > Office Software > Excel nested if

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel nested if

Reply to Message Icon

Name: aaabuhalime
Date: July 14, 2009 at 14:02:22 Pacific
OS: Microsoft Windows XP Professional
CPU/Ram: 1.995 GHz / 3325 MB
Product: Dell / Precision workstation t7400
Subcategory: Microsoft Office
Comment:

Hello ,
I am having aproblem in combining two if statements
=IF(AND(M39>0,M39<25000,I39+M39<25000),((M39)*0.39)+M39),IF(AND(M39>0,M39>25000,I39+M39>25000),((25000-I39)*0.39)+M39,M39))

I always get errors ,please I need help to get it work

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: July 14, 2009 at 15:06:57 Pacific
Reply:

At a minimum, you have an extra parenthesis in your first value_if_true argument:

Remove either (but not both) of these parenthesis and the error will go away:

((M39)*0.39)+M39),
           ^
           ^

((M39)*0.39)+M39),
                ^
                ^

Assuming that removing one of those parenthesis gives you the value you are looking for, you still have more parentheses than needed, which just adds to the confusion. I was able to get the same answers using this:

=IF(AND(M39>0,M39<25000,I39+M39<25000),M39*0.39+M39,
IF(AND(M39>0,M39>25000,I39+M39>25000),(25000-I39)*0.39+M39,M39))

The standard arithmetic Order of Operations means you don't need any parenthesis around things like:

M39*0.39+M39


0

Response Number 2
Name: aaabuhalime
Date: July 14, 2009 at 15:13:08 Pacific
Reply:

Thank you very much ,I figured out My stupid mistake .

I appreciate your help.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


use .txt with or without ... Excel If Statement



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel nested if

Excel Nested IF/Vlookup www.computing.net/answers/office/excel-nested-ifvlookup/4349.html

Excel nested IF alternative help www.computing.net/answers/office/excel-nested-if-alternative-help/7828.html

Excel- Nested IF/AND Function www.computing.net/answers/office/excel-nested-ifand-function/7973.html