Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default matching value of top 20 in a list!


hi all!

i am having names in a1:a1000 and amounts in b1:b1000.
how can i get the top20 highest amounts and its corresponding names
in c1:d20?

help pl?

-via135


--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508829

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default matching value of top 20 in a list!

Here's a non-array formulas play to extract a full descending sort by amt
into a new sheet (caters for the likely possibility of ties in the amounts)

A sample construct is available at:
http://cjoint.com/?cgiVSpaRSW
ExtractDescendingSortedList_via135_wks.xls

Assume source table in sheet: X, cols A & B, data from row2 down

In a new sheet: Ranking,
With the same col headers in A1:B1, viz.: Name, Amt

Put in A2:
=IF(ISERROR(LARGE($C:$C,ROW(A1))),"",
INDEX(X!A:A,MATCH(LARGE($C:$C,ROW(A1)),$C:$C,0)))
Copy A2 to B2

Put in C2: =IF(X!B2="","",X!B2-ROW()/10^10)
(Leave C1 empty)

[Col C is the arbitrary tiebreaker col]

Select A2:C2, fill down to cover
the max expected extent of the source data in X

The above returns a full descending sort of the source table in X by the Amt
col. Names with tied amts, if any, will appear in the same relative order
that they appear in the list in X. Just pick off the "top 20" as required
from the list (In the event of ties, or even multiple ties, you may need to
pick more than just the top 20 names for the top 20 highest amts !)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"via135" wrote in
message ...

hi all!

i am having names in a1:a1000 and amounts in b1:b1000.
how can i get the top20 highest amounts and its corresponding names
in c1:d20?

help pl?

-via135


--
via135
------------------------------------------------------------------------
via135's Profile:

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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default matching value of top 20 in a list!


thks Mr Max!

the formula works perfectly for creating a descending order list!
but the problem is since i am having more than 20000 records it seems
to be take a very long time for the application of the formulae! is
there any other simpler method for picking the desired top valued
items?

also when the amount in the list equals "0" COL"C" throws some error,
like the one, while entering more than 15 digits in a cell formarted
general.

-via135






Max Wrote:
Here's a non-array formulas play to extract a full descending sort by
amt
into a new sheet (caters for the likely possibility of ties in the
amounts)

A sample construct is available at:
http://cjoint.com/?cgiVSpaRSW
ExtractDescendingSortedList_via135_wks.xls

Assume source table in sheet: X, cols A & B, data from row2 down

In a new sheet: Ranking,
With the same col headers in A1:B1, viz.: Name, Amt

Put in A2:
=IF(ISERROR(LARGE($C:$C,ROW(A1))),"",
INDEX(X!A:A,MATCH(LARGE($C:$C,ROW(A1)),$C:$C,0)))
Copy A2 to B2

Put in C2: =IF(X!B2="","",X!B2-ROW()/10^10)
(Leave C1 empty)

[Col C is the arbitrary tiebreaker col]

Select A2:C2, fill down to cover
the max expected extent of the source data in X

The above returns a full descending sort of the source table in X by
the Amt
col. Names with tied amts, if any, will appear in the same relative
order
that they appear in the list in X. Just pick off the "top 20" as
required
from the list (In the event of ties, or even multiple ties, you may
need to
pick more than just the top 20 names for the top 20 highest amts !)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"via135" wrote
in
message ...

hi all!

i am having names in a1:a1000 and amounts in b1:b1000.
how can i get the top20 highest amounts and its corresponding names
in c1:d20?

help pl?

-via135


--
via135

------------------------------------------------------------------------
via135's Profile:

http://www.excelforum.com/member.php...o&userid=26725
View this thread:

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



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508829

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default matching value of top 20 in a list!

Select the table and sort by values, the first 20 names are those with
highest values
Or apply a filter

--
Regards,

Peo Sjoblom

Portland, Oregon




"via135" wrote in
message ...

thks Mr Max!

the formula works perfectly for creating a descending order list!
but the problem is since i am having more than 20000 records it seems
to be take a very long time for the application of the formulae! is
there any other simpler method for picking the desired top valued
items?

also when the amount in the list equals "0" COL"C" throws some error,
like the one, while entering more than 15 digits in a cell formarted
general.

-via135






Max Wrote:
Here's a non-array formulas play to extract a full descending sort by
amt
into a new sheet (caters for the likely possibility of ties in the
amounts)

A sample construct is available at:
http://cjoint.com/?cgiVSpaRSW
ExtractDescendingSortedList_via135_wks.xls

Assume source table in sheet: X, cols A & B, data from row2 down

In a new sheet: Ranking,
With the same col headers in A1:B1, viz.: Name, Amt

Put in A2:
=IF(ISERROR(LARGE($C:$C,ROW(A1))),"",
INDEX(X!A:A,MATCH(LARGE($C:$C,ROW(A1)),$C:$C,0)))
Copy A2 to B2

Put in C2: =IF(X!B2="","",X!B2-ROW()/10^10)
(Leave C1 empty)

[Col C is the arbitrary tiebreaker col]

Select A2:C2, fill down to cover
the max expected extent of the source data in X

The above returns a full descending sort of the source table in X by
the Amt
col. Names with tied amts, if any, will appear in the same relative
order
that they appear in the list in X. Just pick off the "top 20" as
required
from the list (In the event of ties, or even multiple ties, you may
need to
pick more than just the top 20 names for the top 20 highest amts !)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"via135" wrote
in
message ...

hi all!

i am having names in a1:a1000 and amounts in b1:b1000.
how can i get the top20 highest amounts and its corresponding names
in c1:d20?

help pl?

-via135


--
via135

------------------------------------------------------------------------
via135's Profile:

http://www.excelforum.com/member.php...o&userid=26725
View this thread:

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



--
via135
------------------------------------------------------------------------
via135's Profile:
http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508829


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default matching value of top 20 in a list!

"via135" wrote:
... more than 20000 records it seems
to be take a very long time for the application of the formulae!
is there any other simpler method for picking
the desired top valued items ?


Try this:

Copy only col C's formula all the way down to row20000 (this is required)
Then copy A2:B2 down only as far as required to extract the desired top
values, eg: to retrieve top 20, copy down to say B25, check the evaluated
results, then copy down a few more lines if required (if there are ties).

Set the calc mode to Manual.
Do the formula fills, then press F9 to recalc.
If you've got the results that you want, kill all formulas,
then re-set calc mode back to Auto.

.. when the amount in the list equals "0" COL"C" throws some error,
like the one, while entering more than 15 digits in a cell formarted
general.


Col C is the arb tiebreaker. You can minimize or hide the col away.
Ensure that only real numbers are entered under the "Amt" col
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default matching value of top 20 in a list!


thks Peo!

i've asked for an alternate since i don't want to disturb the original
sheet!

-via135




Peo Sjoblom Wrote:
Select the table and sort by values, the first 20 names are those with
highest values
Or apply a filter

--
Regards,

Peo Sjoblom

Portland, Oregon




"via135" wrote in
message ...

thks Mr Max!

the formula works perfectly for creating a descending order list!
but the problem is since i am having more than 20000 records it

seems
to be take a very long time for the application of the formulae! is
there any other simpler method for picking the desired top valued
items?

also when the amount in the list equals "0" COL"C" throws some

error,
like the one, while entering more than 15 digits in a cell formarted
general.

-via135






Max Wrote:
Here's a non-array formulas play to extract a full descending sort

by
amt
into a new sheet (caters for the likely possibility of ties in the
amounts)

A sample construct is available at:
http://cjoint.com/?cgiVSpaRSW
ExtractDescendingSortedList_via135_wks.xls

Assume source table in sheet: X, cols A & B, data from row2 down

In a new sheet: Ranking,
With the same col headers in A1:B1, viz.: Name, Amt

Put in A2:
=IF(ISERROR(LARGE($C:$C,ROW(A1))),"",
INDEX(X!A:A,MATCH(LARGE($C:$C,ROW(A1)),$C:$C,0)))
Copy A2 to B2

Put in C2: =IF(X!B2="","",X!B2-ROW()/10^10)
(Leave C1 empty)

[Col C is the arbitrary tiebreaker col]

Select A2:C2, fill down to cover
the max expected extent of the source data in X

The above returns a full descending sort of the source table in X

by
the Amt
col. Names with tied amts, if any, will appear in the same

relative
order
that they appear in the list in X. Just pick off the "top 20" as
required
from the list (In the event of ties, or even multiple ties, you may
need to
pick more than just the top 20 names for the top 20 highest amts !)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"via135"

wrote
in
message ...

hi all!

i am having names in a1:a1000 and amounts in b1:b1000.
how can i get the top20 highest amounts and its corresponding

names
in c1:d20?

help pl?

-via135


--
via135


------------------------------------------------------------------------
via135's Profile:
http://www.excelforum.com/member.php...o&userid=26725
View this thread:
http://www.excelforum.com/showthread...hreadid=508829



--
via135

------------------------------------------------------------------------
via135's Profile:
http://www.excelforum.com/member.php...o&userid=26725
View this thread:

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



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508829

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default matching value of top 20 in a list!


thks Max!

now it's quite ok!
thks again for helping!

-via135

Max Wrote:
"via135" wrote:
... more than 20000 records it seems
to be take a very long time for the application of the formulae!
is there any other simpler method for picking
the desired top valued items ?


Try this:

Copy only col C's formula all the way down to row20000 (this is
required)
Then copy A2:B2 down only as far as required to extract the desired
top
values, eg: to retrieve top 20, copy down to say B25, check the
evaluated
results, then copy down a few more lines if required (if there are
ties).

Set the calc mode to Manual.
Do the formula fills, then press F9 to recalc.
If you've got the results that you want, kill all formulas,
then re-set calc mode back to Auto.

.. when the amount in the list equals "0" COL"C" throws some error,
like the one, while entering more than 15 digits in a cell formarted
general.


Col C is the arb tiebreaker. You can minimize or hide the col away.
Ensure that only real numbers are entered under the "Amt" col
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508829

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default matching value of top 20 in a list!

Pleasure` via135 !
Thanks for feeding back ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"via135" wrote in
message ...

thks Max!

now it's quite ok!
thks again for helping!



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
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM
HOW DO I MAKE VALIDATION LIST CONTAING DATA FROM A DIFFERENT BO CHAIM Excel Discussion (Misc queries) 1 September 29th 05 08:28 PM
Extract multiple records matching criteria from list William DeLeo Excel Worksheet Functions 12 June 30th 05 02:35 PM
Making pick list conditional on selection from previous pick list Stewart Excel Discussion (Misc queries) 1 June 27th 05 11:30 AM
Matching a List Containing Redundant Values Rick Hess Excel Discussion (Misc queries) 1 November 26th 04 02:39 PM


All times are GMT +1. The time now is 08:01 AM.

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"