I want to sum all data values in a row EXCEPT the lowest two

T

taj

Hello everyone.

I am a new college math instructor, and I am using Excel to keep track of my
students' grades. I would like to be able to sum all the data values in a
particular row except for the lowest two values. (It's easy enough to leave
off the lowest value using the MIN function, but what about the lowest AND
the second lowest). I know I should be able to figure this out on my own,
but I just can't seem to be able to do it!!

Any help would be greatly appreciated!!
 
R

Ron Coderre

Try something like this:
=SUM(B2:B30,-SMALL(B2:B30,{1,2}))

Is that something you can work with?

Regards,

Ron Coderre
Microsoft MVP (Excel)
 
D

Dave Peterson

Excel has =small() function.

=small(a1:k1,1) is the smallest (same as =min(a1:a10))

=small(a1:k1,2)
will give the 2nd smallest

So...
=if(count(a1:k1)<3,"not enough numbers!",sum(a1:k1)-min(a1:k1)-small(a1:k1,2))

Another way to write it is:
=if(count(a1:k1)<3,"not enough numbers!",sum(a1:k1)-sum(small(a1:k1,{1,2})))

It may make it easier if you decide to ignore more tests.

(ps. There's another function named =large(), too.)
 
R

ryguy7272

Something like this would certainly work:
=SUM(LARGE(A1:A10,{1,2,3,4,5,6,7,8}))


HTH,
Ryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top