Nested IF with COUNTBLANK

Duckface49

New Member
Joined
Jun 26, 2018
Messages
9
=IF(COUNTBLANK(D4:G4=0),(IF(COUNTBLANK(H4:K4=0),(IF(COUNTBLANK(L4:O4=0),"Distinction","Merit","Pass","Not Passed")))))

If certain cells aren't blank then the formula should check if the next set aren't blank and then finally check the last set. If all 3 aren't blank then return Distinction, if not then Merit and so on

Obviously I've messed up, but am struggling to see where

Please help!

Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I don't quite sure your logic, but your formula should be like this:
Code:
=IF(COUNTBLANK(D4:G40)=0,IF(COUNTBLANK(H4:K4)=0,IF(COUNTBLANK(L4:O4)=0,"Merit","Distinction"),"Pass"),"Not Passed")

Change the sequence of Merit, distinction, pass, not passed as appropriate.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,747
Messages
6,132,481
Members
449,729
Latest member
davelevnt

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