IF Statement

Rocksie

New Member
Joined
May 17, 2017
Messages
26
Good day,

I have a scenario where the formula must look at four different scenarios and return a value based on which is true.
I have the following formula and it works correctly up to scenario 2, but scenario 3 & 4 gives me a "False" value:

=IF(B15="More than 15 min";IF(C15="YES";IF(D15="YES";"YES");IF(B15="More than 15 min";IF(C15="NO";IF(D15="NO";"NO");IF(B15="More than 15 min";IF(C15="NO";IF(D15="YES";"NO");IF(B15="More than 15 min";IF(C15="YES";IF(D15="NO";"YES")))))))))

More than 15 minYESYESYES
More than 15 minNONONO
More than 15 minNOYESFALSE
More than 15 minYESNOFALSE
Any help on how to rectify it would be appreciated.

Thank you,
Rocco
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Perhaps =if(and(B15="More than 15 min";and(c15="yes";or(d15="yes";d15="no")));"yes";"no")
 
Upvote 0
What are you trying to do?
It looks like if B15="More than 15 min" and C15="Yes" then "Yes", else "No".
Is that correct?
 
Upvote 0
There are 4 different scenario's: "Yes", "Yes" should return "No"; "No", "No" should return "No"; "No" "Yes"should return "No" and "Yes" "No" should return "Yes"

Hope it makes more sense now
 
Upvote 0
Did you try my solution?

There are only really 2 criteria, If C = Yes then Yes, If C = No then No.
 
Upvote 0
Does my simpler solution not do the same? It gives the same answers as far as i can see.
 
Upvote 0

Forum statistics

Threads
1,215,067
Messages
6,122,949
Members
449,095
Latest member
nmaske

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