How to display result by skipping blank columns

nskatoch

Board Regular
Joined
Dec 30, 2013
Messages
63
Office Version
  1. 365
Platform
  1. Windows
A​
B​
C​
D​
E​
F​
G​
H​
STUDENT NO​
ENGLISH​
PHYSICS​
CHEMISTRY​
MATHS​
BIO​
IT​
RESULT​
1​
33​
45​
32​
43​
2​
31​
32​
33​
21​
3​
45​
34​
23​
37​
4​

If student obtained greater than and equal to 33 marks then print result “PASS” in H column otherwise print fails in that subject in which mark obtained less than 33. Also, some cells are blank.

e.g. STUDENT No. 2, obtained less than 33 marks in ENGLISH, PHYSICS and in BIO. Also, MATH & IT cells are blanked, the result should be FAILS IN ENGLISH, PHYSICS, BIO.

Please suggest a formula.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
How about
Fluff.xlsm
ABCDEFGH
1STUDENT NOENGLISHPHYSICSCHEMISTRYMATHSBIOITRESULT
2133453343Pass
3231323321Fails in ENGLISH, PHYSICS, BIO
4345342337Fails in CHEMISTRY
54 
Main
Cell Formulas
RangeFormula
H2:H5H2=IF(COUNT(B2:G2)=0,"",IF(COUNTIFS(B2:G2,">=33")=COUNT(B2:G2),"Pass","Fails in "&TEXTJOIN(", ",,FILTER($B$1:$G$1,(B2:G2<33)*(B2:G2<>"")))))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: How to calculate result by skipping blank cells
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.

If this is not working, why did you not say so, rather than posting to a different forum?
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
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