FALSE Result not desired

MCosca

New Member
Joined
Jul 21, 2017
Messages
23
I am using a logical 'IF' statement to distribute work to service providers. I have edited this to make it more specific however in certain circumstances the result is FALSE. The formula is below

=IF(W2="","",IF(W2="Close Even","U/W Process",IF(AND(F2=1,(LEFT(E2,7))=LEFT(E1,7)),X1,IF(T2="GC - Practice","SML",IF(AND(LEFT(T2,5)="Solar",OR(J2="NY",J2="NJ",J2="MA",J2="CT",J2="PA",J2="RI")),"SML",IF(AND(P2>9999,T2="Media - DICE",J2="CA"),"Mark Roth",IF(AND(W2="Physical",J2="CA"),IFERROR(VLOOKUP(K2,Sheet1!$C$2:$F$367,4,FALSE),IF(AND(W2="Physical",J2="CA", P2>10000,LEFT(T2,5)<>"Media"),"MISCO")),IF(AND(OR(J2<>"CA",J2<>"NY"),P2<3000),"OSI","Lowry"))))))))

what did I miss in the logic, and what edit is needed to result in a 'catch-all' to "Lowry"??

Thank you
 
Last edited by a moderator:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I can't find it but there must be a FALSE statement missing in there somewhere, but I think there is a logic problem in the last part of your formula.
The OR doesn't make sense there, I think that part should be:
,IF(AND(J2<>"CA",J2<>"NY",P2<3000),"OSI","Lowry")

And the reason the OR doesn't make sense is this. I think what you are trying to say is if J2 doesn't equal CA or NY and P2<3000 which is what my modification does.
Yours does this:

IF J2 was NY and P2<3000 your statement would return TRUE.
=OR(FALSE,TRUE) would return TRUE which I don't think is what you want.
and then
AND(TRUE,TRUE) which would return TRUE as well.

My AND statement would return FALSE:
=AND(FALSE,TRUE,TRUE) = FALSE
 
Last edited:
Upvote 0
Your are missing a "Value If False" argument in the red highlighted section...

=IF(W2="","",IF(W2="Close Even","U/W Process",IF(AND(F2=1,(LEFT(E2,7))=LEFT(E1,7)),X1,IF(T2="GC - Practice","SML",IF(AND(LEFT(T2,5)="Solar",OR(J2="NY",J2="NJ",J2="MA",J2="CT",J2="PA",J2="RI")),"SML",IF(AND(P2>9999,T2="Media - DICE",J2="CA"),"Mark Roth",IF(AND(W2="Physical",J2="CA"),IFERROR(VLOOKUP(K2,Sheet1!$C$2:$F$367,4,FALSE),IF(AND(W2="Physical",J2="CA", P2>10000,LEFT(T2,5)<>"Media"),"MISCO")),IF(AND(OR(J2<>"CA",J2<>"NY"),P2<3000),"OSI","Lowry"))))))))
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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