Help me with my IF statement

CMucha

New Member
Joined
Mar 6, 2025
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have an if statement that is working correctly, however when I attempt to have the results alternate to FAIL when all FAILS are selected in the range I am missing something in my formula. What have I forgotten to add? =IF(OR(ISBLANK(F2),ISBLANK(F3),ISBLANK(F4),ISBLANK(F5),ISBLANK(F6),ISBLANK(F7)*ISBLANK(F8)*ISBLANK(F9)*ISBLANK(F10)),"",IF(AND(F2=F3,F3=F4,F4=F5,F5=F6,F6=F7,F7=F8,F8=F9,F9=F10),"Pass","Fail"))
 
Gonna simplify that a whole bunch:
=IF(COUNTA(F2:F10),IF(AND(F2<>"Fail",COUNTIF(F2:F10,F2)=9),"Pass","Fail"),"")
 
Upvote 0
Solution
I have an if statement that is working correctly, however when I attempt to have the results alternate to FAIL when all FAILS are selected in the range I am missing something in my formula. What have I forgotten to add? =IF(OR(ISBLANK(F2),ISBLANK(F3),ISBLANK(F4),ISBLANK(F5),ISBLANK(F6),ISBLANK(F7)*ISBLANK(F8)*ISBLANK(F9)*ISBLANK(F10)),"",IF(AND(F2=F3,F3=F4,F4=F5,F5=F6,F6=F7,F7=F8,F8=F9,F9=F10),"Pass","Fail"))

Gonna simplify that a whole bunch:
=IF(COUNTA(F2:F10),IF(AND(F2<>"Fail",COUNTIF(F2:F10,F2)=9),"Pass","Fail"),"")
thank you so much!
 
Upvote 0

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