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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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