0
bertusgeert

More Excel Questions

Recommended Posts

I have a range of data and I want to remove the TWO BIGGEST and TWO SMALLEST numbers in the column, then take the sum the column.

=SUM(A1:A30)-MAX(A1:A30)-MIN(A1:A30)

naturally only takes the biggest one and smallest one
out.

How do I get the biggest two and the smallest two out of there?


---------------------------------------------
As jy dom is moet jy bloei!

Share this post


Link to post
Share on other sites
You could do something like this:
=SUM(A1:A30)-MAX(A1:A30)-MIN(A1:A30)-LARGE(A1:A30,2)-LARGE(A1:A30,COUNT(A1:A30)-1)

You can also change your MIN/MAX to use LARGE, but MIN/MAX is more readable.
There are battered women? I've been eating 'em plain all of these years...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

0