Function to get maximum marks

Arhant

New Member
Joined
Aug 10, 2018
Messages
2
Greetings

I am preparing a mark sheet for 5 subjects 10 marks each. Total 50 marks

On entering the subject marks range from 0-10 total marks I am using SUM function

Last column I have max marks attempted. How to get the total for it on entering marks from 0-!0

Sub 1 sub2 sub3 sub4 sub 5 total marks max marks attempted
0 4 7 11 30


In the last column I should get 30 automatically.

Please help

Thanks ..Anil
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
With marks in range B2:F2
assumes that the cell is EMPTY if no attempt made
assumes all subjects carry equal marks (10)

=COUNT(B2:F2)*10
 
Upvote 0
a longer formula

=ISNUMBER(B2)*10+ISNUMBER(C2)*10+ISNUMBER(D2)*10+ISNUMBER(E2)*10+ISNUMBER(F2)*10

which you could then use if the max marks differered between subjects

=ISNUMBER(B2)*10+ISNUMBER(C2)*20+ISNUMBER(D2)*10+ISNUMBER(E2)*25+ISNUMBER(F2)*2

explanation
=ISNUMBER(B2) evaluates to TRUE or FALSE

convert TRUE or FALSE to 1 or 0 by multiplication
=TRUE*1 evaluates to 1 =FALSE*1 evaluates to 0

multiply each one by the appropriate marks and add
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
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