Apr 25 2022 02:27 AM
I have 6 columns representing 6 subjects
7th column is of Total marks of all the 6 subjects whereas the 8th column is of Result
The Result column should display three outputs based on the following conditions:
1) if marks in "all" 6 subjects greater than 35% :PASS
2) If marks in any of six subjects is less than 35% : PROMOTED
3) if marks in all 6 subjects is 0 : ABSENT
Apr 25 2022 03:08 AM
@merryashish143 I believe this formula does exactly what you ask for, though I'm not sure what want to return if not all 6 marks are blank. This one will return "Promoted" even when you only enter one mark.
=IF(COUNT(C2:H2),IF(SUM(--(C2:H2>={35,35,35,35,35,35}))=6,"Pass",IF(SUM(--(C2:H2<{35,35,35,35,35,35}))>0,"Promoted")),"Absent")
Apr 25 2022 03:16 AM - edited Apr 25 2022 03:37 AM
Try this formula
=IF(AND(C2=0,D2=0,E2=0,F2=0,G2=0,H2=0),"Absent",IF(AND(C2>35,D2>35,E2>35,F2>35,G2>35,H2>35),"Pass","Promoted"))
Apr 25 2022 05:41 AM
Apr 25 2022 07:41 AM
As variant
=LET( s, SORT(C2:H2,,,1), IF( SUM(s), IF( MIN(s) > 35, "Pass", "Promoted" ), "Absent" ) )
Apr 25 2022 04:30 PM
Here is another formula that seems to do the job:
=IFS(MIN(D7:I7)>=35,"Pass",SUM(D7:I7)=0,"Absent",MIN(D7:I7)<35,"Promoted")
Cool thing about Excel - there are all kinds of ways to do things!
@merryashish143@merryashish143