nested if statements with and issue

Sheripres

Board Regular
Joined
Sep 7, 2011
Messages
106
Office Version
  1. 365
Platform
  1. Windows
Hello:
I can't seem to make this formula work. It is pretty straightforward, but maybe I have too many conditions? It works for the first two IF statements, but it then reads FALSE even though I have a TRUE statement on either of the two "AND" sections.

=IF(Q3="IC5/OTHER","NON-INVENTORY",IF(Q3="Inncom DIRECT","Inncom DIRECT",IF(AND(W3>0,X3=0,"IN STOCK"),IF(AND(W3>0,X3<0),"PARTIAL IN STOCK"),AA3)))

I hope I posted this correctly.

Thank you for any help.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
You need to move the bracket from after ,"in stock", to before the comma
 
Upvote 0
...AND(W3>0,X3=0,"IN STOCK")...

Your AND function has 3 items that must be true, but "IN STOCK" just seems to be by itself. Should it be Q3="IN STOCK"
 
Upvote 0
Retracted I was too slow
 
Upvote 0
I spent three hours trying to figure this out! You saved my life! Thank you so very much!
Ugh...Still having one issue. It at least grabs AA3 as an answer, but I had a "true" statement on one of the Ands and it is still bypassing it. Getting there though!
 
Upvote 0
With AND both must return TRUE, maybe you need to use OR instead.
 
Upvote 0
Retracted I was too slow
you can jump in with any ideas! The one I thought worked, didn't. Well, it worked for the AA3 result, but because I had a true statement on one of the "and" sections, it didn't recognize it.

Thank you!
 
Upvote 0
With AND both must return TRUE, maybe you need to use OR instead.
I understand what you are saying, but where do I put the OR? When I use my mouse to see the logic and what I did, it seems correct, but it seems like it must be a comma or something with the parenthesis. Attaching pic to help explain. This is just my example so I can forward the formula to the end user.

Thank you!
 

Attachments

  • IF AND STATEMENT ISSUE.jpg
    IF AND STATEMENT ISSUE.jpg
    36.8 KB · Views: 7
Upvote 0
You still have the bracket in the wrong place.
 
Upvote 0

Forum statistics

Threads
1,225,750
Messages
6,186,805
Members
453,373
Latest member
Ereha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top