Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
taj taj is offline
external usenet poster
 
Posts: 5
Default I want to sum all data values in a row EXCEPT the lowest two

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!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default I want to sum all data values in a row EXCEPT the lowest two

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)

"taj" wrote in message
...
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!!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default I want to sum all data values in a row EXCEPT the lowest two

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.)



taj wrote:

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!!


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default I want to sum all data values in a row EXCEPT the lowest two

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


HTH,
Ryan
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"taj" wrote:

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!!

  #5   Report Post  
Posted to microsoft.public.excel.programming
taj taj is offline
external usenet poster
 
Posts: 5
Default I want to sum all data values in a row EXCEPT the lowest two

Thank you to everyone that answered my question. I am stoked!! :-)
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clear the lowest 10 values from a list of 30 values fap87 New Users to Excel 3 April 3rd 09 07:40 AM
Lowest two values Muz Excel Worksheet Functions 4 July 29th 08 08:41 AM
Find lowest 3 values and sum AussieBec Excel Worksheet Functions 6 August 2nd 07 01:12 PM
Average of lowest 5 of 20 values? Fatfreek Excel Worksheet Functions 5 June 16th 06 03:49 AM
Dropping lowest 2 values merjet Excel Programming 1 October 2nd 03 06:06 AM


All times are GMT +1. The time now is 08:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"