LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sum largest numbers based on condition


Richard Buttrey wrote:
On Wed, 2 Aug 2006 16:33:02 -0700, Daniel Bonallack
wrote:

I did a quick search for something I know has been asked many times before -
sorry to repost...

I need to sum the 5 largest numbers in column B where the year in column A
is equal to 2006

Thanks very much in advance (bob?)...


=SUM(LARGE((B1:B10)*(A1:A10=2006),{5,4,3,2,1}))

is an array formula and should be committed with CtrlShiftEnter

Change ranges to suit.

HTH
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________


Hi,

I have used a similar formula to sum the largest numbers with a
condition which works fine as below:

=SUM(IF((LARGE($B$5:$B$37*($G$5:$G$37="Final"),{5, 4,3,2,1})=$B$5:$B$37),$E$5:$E$37,0))

Column B are dates
Column G is text
Column E is numbers

however this formula does not work when i replace {5,4,3,2,1} with
ROW(INDIRECT("1:5")) ... any ideas or a better way to do this?

cheers- Ben



 
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
Fill a cell based on a condition being met confused teacher Excel Worksheet Functions 3 July 5th 06 08:29 AM
Defining a Text field based on its condition C.Hirsch Excel Discussion (Misc queries) 3 May 30th 06 07:49 PM
Sum numbers based on the contents of another cell Doreen Excel Worksheet Functions 5 May 5th 05 04:41 PM
Calculation based on a condition mac_see Excel Worksheet Functions 3 April 22nd 05 01:24 AM
make a cell empty based on condition mpierre Charts and Charting in Excel 2 December 29th 04 01:01 PM


All times are GMT +1. The time now is 07:06 AM.

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"