Summing top 5 marks in excel excluding those marked 'F'

baidya91

Board Regular
Joined
Jun 1, 2016
Messages
147
[TABLE="width: 1026"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Given below is the list of 6 marks with various grades. Now how can I sum top 5 marks excluding that marked "F" in excel?



















[/TD]
[TD]51[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD]45[/TD]
[TD]C[/TD]
[TD][/TD]
[TD][/TD]
[TD]63[/TD]
[TD]B+[/TD]
[TD][/TD]
[TD][/TD]
[TD]46[/TD]
[TD]C[/TD]
[TD][/TD]
[TD][/TD]
[TD]52[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]59[/TD]
[TD]F[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
BTW , regarding your sample

Entered with Ctrl+Shift+Enter

AK9 =SUM(LARGE(IFERROR(--($G$6:$AJ$8="TOTAL")*--(H9:AJ9 <> "F")*G9:AI9,0),{1,2,3,4,5}))
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,225,754
Messages
6,186,827
Members
453,377
Latest member
JoyousOne

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