Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Big Ben
 
Posts: n/a
Default sumif remove high/low values


Hello,

I have a list of ten values. I would like to sum this list with the
top 2 and bottom 2 values removed in the sum calculation.

Any help would be great,

ben


--
Big Ben
------------------------------------------------------------------------
Big Ben's Profile: http://www.excelforum.com/member.php...fo&userid=6431
View this thread: http://www.excelforum.com/showthread...hreadid=395038

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Hi Ben,

Try this

=SUM(D1:D10)-SUMPRODUCT(--(LARGE(D1:D10,{1;2}))+(SMALL(D1:D10,{1;2})))

or if there will be 10 then you could use

=SUMPRODUCT(--(LARGE(D1:D10,ROW(INDIRECT("3:8")))))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Big Ben" wrote in
message ...

Hello,

I have a list of ten values. I would like to sum this list with the
top 2 and bottom 2 values removed in the sum calculation.

Any help would be great,

ben


--
Big Ben
------------------------------------------------------------------------
Big Ben's Profile:

http://www.excelforum.com/member.php...fo&userid=6431
View this thread: http://www.excelforum.com/showthread...hreadid=395038



  #3   Report Post  
RagDyer
 
Posts: n/a
Default

Bob,
Is there really a need for the unary in your formulas?<g
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Bob Phillips" wrote in message
...
Hi Ben,

Try this

=SUM(D1:D10)-SUMPRODUCT(--(LARGE(D1:D10,{1;2}))+(SMALL(D1:D10,{1;2})))

or if there will be 10 then you could use

=SUMPRODUCT(--(LARGE(D1:D10,ROW(INDIRECT("3:8")))))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Big Ben" wrote in
message ...

Hello,

I have a list of ten values. I would like to sum this list with the
top 2 and bottom 2 values removed in the sum calculation.

Any help would be great,

ben


--
Big Ben
------------------------------------------------------------------------
Big Ben's Profile:

http://www.excelforum.com/member.php...fo&userid=6431
View this thread:

http://www.excelforum.com/showthread...hreadid=395038




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Hi RD,

No of course you are correct, there is nothing to coerce so no need.

habit I guess :-(.

Bob


"RagDyer" wrote in message
...
Bob,
Is there really a need for the unary in your formulas?<g
--
Regards,

RD

--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit !
--------------------------------------------------------------------------

-

"Bob Phillips" wrote in message
...
Hi Ben,

Try this

=SUM(D1:D10)-SUMPRODUCT(--(LARGE(D1:D10,{1;2}))+(SMALL(D1:D10,{1;2})))

or if there will be 10 then you could use

=SUMPRODUCT(--(LARGE(D1:D10,ROW(INDIRECT("3:8")))))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Big Ben" wrote

in
message ...

Hello,

I have a list of ten values. I would like to sum this list with the
top 2 and bottom 2 values removed in the sum calculation.

Any help would be great,

ben


--
Big Ben


------------------------------------------------------------------------
Big Ben's Profile:

http://www.excelforum.com/member.php...fo&userid=6431
View this thread:

http://www.excelforum.com/showthread...hreadid=395038






  #5   Report Post  
RagDyer
 
Posts: n/a
Default

I have a personal vendetta against it (unary), and hate it with a passion,
really because *I* screwed up royally in revising an entire project over to
using it, in place of the asterisk.
So, while admiring you're handling of this issue, I just couldn't bare to
let the opportunity pass to eliminate it from any possibility of being used,
no matter in how small the occasion might be.<bg
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Bob Phillips" wrote in message
...
Hi RD,

No of course you are correct, there is nothing to coerce so no need.

habit I guess :-(.

Bob


"RagDyer" wrote in message
...
Bob,
Is there really a need for the unary in your formulas?<g
--
Regards,

RD


--------------------------------------------------------------------------
-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------
-

"Bob Phillips" wrote in message
...
Hi Ben,

Try this

=SUM(D1:D10)-SUMPRODUCT(--(LARGE(D1:D10,{1;2}))+(SMALL(D1:D10,{1;2})))

or if there will be 10 then you could use

=SUMPRODUCT(--(LARGE(D1:D10,ROW(INDIRECT("3:8")))))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Big Ben" wrote

in
message ...

Hello,

I have a list of ten values. I would like to sum this list with the
top 2 and bottom 2 values removed in the sum calculation.

Any help would be great,

ben


--
Big Ben

------------------------------------------------------------------------
Big Ben's Profile:
http://www.excelforum.com/member.php...fo&userid=6431
View this thread:

http://www.excelforum.com/showthread...hreadid=395038









  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

I am a convert personally, although I accept that some formulas will not
work with -- but will with the *.

I like the fact that you can coerce dates and times as well as True/False.
You can't do that with * (1* yes, but I hate that with a passion).

Bob

"RagDyer" wrote in message
...
I have a personal vendetta against it (unary), and hate it with a passion,
really because *I* screwed up royally in revising an entire project over

to
using it, in place of the asterisk.
So, while admiring you're handling of this issue, I just couldn't bare to
let the opportunity pass to eliminate it from any possibility of being

used,
no matter in how small the occasion might be.<bg
--
Regards,

RD

--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit !
--------------------------------------------------------------------------

-

"Bob Phillips" wrote in message
...
Hi RD,

No of course you are correct, there is nothing to coerce so no need.

habit I guess :-(.

Bob


"RagDyer" wrote in message
...
Bob,
Is there really a need for the unary in your formulas?<g
--
Regards,

RD



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
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
Combine FREQUENCY and SUM of Associated Values MichaelC Excel Worksheet Functions 3 July 3rd 05 01:54 AM
Return Consecutive Values - Pairs Sam via OfficeKB.com Excel Worksheet Functions 6 July 2nd 05 04:43 PM
SUMIF positive values only from database gmac Excel Worksheet Functions 4 June 29th 05 09:51 AM
Finding Values With more than 2 decimal Places clane Excel Discussion (Misc queries) 7 June 22nd 05 08:37 PM


All times are GMT +1. The time now is 03:24 PM.

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

About Us

"It's about Microsoft Excel"