IF Statement driving me insane

tozey

New Member
Joined
Jan 3, 2018
Messages
2
Hi guys.

Need some help with an If Statement if you please.

=IF(W7="Fail",IF(W8="Pass","A",IF(W7="Fail",IF(W8="Fail","R",IF(W8="",IF(W7="Pass","G"))))))

W7 and W8 are combo boxes (Blank, Pass, Fail)

By selecting W7 Fail and W8 Pass, it returns A
By selecting W7 Fail and W8 Fail, it returns R
By selecting W7 Pass and leaving W8 empty, it returns FALSE, I need it to return G

I am sure this is something silly that I am doing wrong, I just cannot find a solution.

Any help appreciated.

Cheers

tozey
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi, welcome to the board!

What do you want to return when none of the criteria are met? This returns blanks.

=IF(W7="Fail",IF(W8="Pass","A",IF(W8="Fail","R","")),IF(AND(W7="Pass",W8=""),"G",""))
 
Upvote 0
Thanks for the warm welcome and thank you for the solution. Yes blanks are fine should the criteria not be met.

I shall familiarise myself with the solution, thank you so much.

Alex
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,957
Members
449,200
Latest member
indiansth

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