urgent - nested ifs

jubilee101

New Member
Joined
Apr 17, 2013
Messages
25
Hi guys,
i'm under pressure to get this done in next 3 hours ao any help would be appreciated.

lets say I have 4 cells ABCD. The text in A can will either say "Pass" or "Fail" depending on the following:

IF (B,C,D = blank ) then A=“Pass”
If B not blank but C,D are Blank, then A=“Fail”
If B is not blank and C is not blank then A=“Pass”
IF( B,C,D not blank, then A=“fail”)

I've tried doing nest IFs & AND and I just can't get it to work:eeek:
 
Last edited:
I was off a column in my grid, it is not A, B, C, but rather B, C, D. But I can now see what you are after.
Since there are only two conditions that would return "Fail", let's check for those, and then have anything else return "Pass", i.e.
Code:
=IF(OR(AND(B1<>"",C1<>"",D1<>""),AND(B1<>"",D1<>"")),"Fail","Pass")


Sorry i was missing last row of table:

[cod]
[TABLE="class: cms_table, width: 256"]
<tbody>[TR]
[TD="class: cms_table_xl63, width: 64"]A Blank[/TD]
[TD="class: cms_table_xl63, width: 64"]B Blank[/TD]
[TD="class: cms_table_xl63, width: 64"]C Blank[/TD]
[TD="class: cms_table_xl63, width: 64"]Result[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl63, width: 64"]Pass[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl63, width: 64"]Pass[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl63, width: 64"]Pass[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl63, width: 64"]Pass[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl63, width: 64"]Fail[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl63, width: 64"]Pass[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl63, width: 64"]Fail[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: cms_table, width: 256"]
<tbody>[TR]
[TD="class: cms_table_xl64, width: 64"]FALSE[/TD]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl64, width: 64"]TRUE[/TD]
[TD="class: cms_table_xl63, width: 64"]Fail[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Then try this version:
Code:
=IF(B1="","Pass",IF(AND(B1<>"",C1<>"",D1=""),"Pass","Fail"))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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