Minimum 10, Maximum 10 from a series

SarahKC

New Member
Joined
Jul 1, 2008
Messages
3
Hi there,

I have data whereby I would like the sum of the top 10 numbers in a row and the sum of the bottom 10 numbers in a row.

I have done this before by adding another row with ranking and then doing an If statement referencing the ranking.

I want to do this operation, however, over many rows so ranking would be a pain and sorting by each row and then doing it would also be a pain.

Thoughts?

Thanks,
Sarah
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Welcome to the Board!

What if there is a tie for the 10th spot, how do you want that handled?

Example being ththis data:

1
2
3
4
5
6
7
8
9
10
10
11
12
13

Do you want to sum the 10 twice?
 
Upvote 0
Ok that makes the formula a little longet, but this should work for the bottom ten:

=SUM(IF(A1:A15<=SMALL(A1:A15,10),A1:A15,0))-(COUNTIF(A1:A15,SMALL(A1:A15,10))-1)*small(A1:A15,10)

For the top 10:

=SUM(IF(A1:A15>=Large(A1:A15,10),A1:A15,0))-(COUNTIF(A1:A15,large(A1:A15,10))-1)*large(A1:A15,10)

Both of these are array formulas and need to be confirmed with control+shift+enter and not just enter. Hope that works.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,517
Members
449,088
Latest member
RandomExceller01

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