Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bryan Hessey
 
Posts: n/a
Default Select the Top 20 within a formula


How can I select the top 20 within a formula so that I can
=sum( ~~ select top 20 from a range I$56:I100~~ )


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=385482

  #2   Report Post  
ScottO
 
Posts: n/a
Default

Try this ...

=SUMIF(I$56:I100,""&LARGE(I$56:I100,21))

Rgds,
ScottO

"Bryan Hessey"
wrote in message
news:Bryan.Hessey.1ru1qb_1120795506.9867@excelforu m-nospam.com...
|
| How can I select the top 20 within a formula so that I can
| =sum( ~~ select top 20 from a range I$56:I100~~ )
|
|
| --
| Bryan Hessey
| ------------------------------------------------------------------------
| Bryan Hessey's Profile:
http://www.excelforum.com/member.php...o&userid=21059
| View this thread: http://www.excelforum.com/showthread...hreadid=385482
|


  #3   Report Post  
Max
 
Posts: n/a
Default

One way ..

Try: =SUMPRODUCT(--(LARGE($I$56:$I$100,ROW(A1:A20))))

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Bryan Hessey"
wrote in message
news:Bryan.Hessey.1ru1qb_1120795506.9867@excelforu m-nospam.com...

How can I select the top 20 within a formula so that I can
=sum( ~~ select top 20 from a range I$56:I100~~ )


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile:

http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=385482



  #4   Report Post  
BenjieLop
 
Posts: n/a
Default


Bryan Hessey Wrote:
How can I select the top 20 within a formula so that I can
=sum( ~~ select top 20 from a range I$56:I100~~ )


Check this out and see if this is what you need ...

=SUMPRODUCT(LARGE($I$56:$I$100,ROW(1:20)))

Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=385482

  #5   Report Post  
Bryan Hessey
 
Posts: n/a
Default


Worked wonderfully, many thanks

Bryan


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=385482



  #6   Report Post  
Bryan Hessey
 
Posts: n/a
Default


Scott,
the
=SUMIF(I$56:I100,""&LARGE(I$56:I100,21))
doesn't work where there are two rows of the same value about the
'20' mark.

Max,
with the: =SUMPRODUCT(--(LARGE($I$56:$I$100,ROW(A1:A20)))) the $100
needs to be not $ (as $I100), and the A1:A20 need to be $1:$20,
otherwise ok

With BenjieLop's original answer I adjusted the $I$100 and the 1:20 to
$1100 and $1:$20 and it formula dragged well.

Thanks again people


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=385482

  #7   Report Post  
Max
 
Posts: n/a
Default

Glad to hear you got it to work,
and knew how to adapt the references to suit ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


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 checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Select header if formula Krista F Excel Worksheet Functions 11 April 11th 05 07:26 PM
Howdo U copy a formula down a column, that uses data in another w. Need Help pasting a formula Excel Worksheet Functions 1 February 25th 05 06:04 PM
Howdo U copy a formula down a column, that uses data in another w. brantty Excel Worksheet Functions 0 February 25th 05 10:11 AM


All times are GMT +1. The time now is 02:52 PM.

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

About Us

"It's about Microsoft Excel"