IF cell contains multiple text return "Pass", "Fail" or "" (blank)

jayjay123

New Member
Joined
Jun 3, 2021
Messages
45
Office Version
  1. 365
Platform
  1. Windows
I've set the below formula. It works great when Activity 1-3 have been selected for Pass/Fail.
=IF((AND(D20="Pass",D21="Pass",D22="Pass")),"Pass","Fail")

However, if the Activity section hasn't been filled out yet (or are blank), the Outcome in B35 - B37 default as "Fail"

If the criteria in "Activity 1-3" have not been completed yet, I'd like the Outcome to appear as blank "", rather than "Fail"

Could someone kindly assist with this formula?

Thanks in advanced!

Screen Shot 2022-02-23 at 12.07.15 pm.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
How about:

Book5
AB
34Outcome
35Activity 1Pass
36Activity 2Fail
37Activity 3 
Sheet1
Cell Formulas
RangeFormula
B35B35=IF(OR(ISBLANK(B20:B22)),"",IF(OR("Fail"=B20:B22),"Fail","Pass"))
B36B36=IF(OR(ISBLANK(B25:B27)),"",IF(OR("Fail"=B25:B27),"Fail","Pass"))
B37B37=IF(OR(ISBLANK(B30:B32)),"",IF(OR("Fail"=B30:B32),"Fail","Pass"))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,819
Messages
6,181,153
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