Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CHRIS K
 
Posts: n/a
Default sum or similar with conditions

how do I do a SUM or similar but ignore the two highest and two lowest values?
there are 36 values in a column.
Thanks
--
CHRISK
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Either

=SUM(A1:A10)-SUM(LARGE(A1:A10,{1,2}))-SUM(SMALL(A1:A10,{1,2}))

or

=SUM(LARGE(A1:A10,ROW(INDIRECT("A3:A"&COUNTA(A1:A1 0)-2))))

which is an array formula, so commit with Ctrl-Shift-Enter

--
HTH

Bob Phillips

"CHRIS K" wrote in message
...
how do I do a SUM or similar but ignore the two highest and two lowest

values?
there are 36 values in a column.
Thanks
--
CHRISK



  #3   Report Post  
kk
 
Posts: n/a
Default

=SUMPRODUCT(--(A1:A36<LARGE(A1:A36,2))*--(A1:A36SMALL(A1:A36,2))*A1:A36)


"CHRIS K" wrote in message
...
how do I do a SUM or similar but ignore the two highest and two lowest
values?
there are 36 values in a column.
Thanks
--
CHRISK


  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=IF(COUNT(A2:A37)4,SUM(A2:A37,-LARGE(A2:A37,{1,2}),-SMALL(A2:A37,{1,2})),"Insufficient
Data")

CHRIS K wrote:
how do I do a SUM or similar but ignore the two highest and two lowest values?
there are 36 values in a column.
Thanks

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

You don't need an * and the double unary, and the values don't need to be
coerced

=SUMPRODUCT(--(A1:A36<LARGE(A1:A36,2)),--(A1:A36SMALL(A1:A36,2)),A1:A36)


--
HTH

Bob Phillips

"kk" <kkchoh @ yahoo dot com wrote in message
...
=SUMPRODUCT(--(A1:A36<LARGE(A1:A36,2))*--(A1:A36SMALL(A1:A36,2))*A1:A36)


"CHRIS K" wrote in message
...
how do I do a SUM or similar but ignore the two highest and two lowest
values?
there are 36 values in a column.
Thanks
--
CHRISK




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
Formula for multiple conditions Roy Excel Discussion (Misc queries) 3 June 9th 05 08:19 PM
SUM based on multiple conditions - SORRY, URGENT!!! marika1981 Excel Worksheet Functions 4 February 18th 05 11:13 AM
should be possible to add more conditions to conditional formatti. excel_jan Excel Discussion (Misc queries) 3 February 9th 05 06:41 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM
Sum with multiple conditions in Excel 2000 Magnus Oskarsson Excel Worksheet Functions 2 December 16th 04 04:09 PM


All times are GMT +1. The time now is 01:34 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"