Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
trav
 
Posts: n/a
Default return most frequent objects/numbers in large worksheet?

Am looking for the function/macro to return the most frequently ocurring
numbers within in large (300+cell) range in descending order to the 10th
place. I am new to excel and can't figure this one out! Any help is
appreciated!

Thanks, Travis B.
  #2   Report Post  
trav
 
Posts: n/a
Default

P.S. I'm using Excel 2003 in Office.
  #3   Report Post  
Domenic
 
Posts: n/a
Default

Assuming that A2:A300 contains your numbers , the following is a formula
system that will list the Top 10 most frequently occuring numbers,
including any ties for 10th place...

B2, copied down:

=IF(ISNA(MATCH(A2,$A$1:A1,0)),COUNTIF($A$2:$A$300, A2),"")

C2, copied down:

=IF(N(B2),RANK(B2,$B$2:$B$300)+COUNTIF($B$2:B2,B2)-1,"")

D1: enter 10, indicating that you want a Top 10 list

E1:

=MAX(IF(B2:B300=INDEX(B2:B300,MATCH(D1,C2:C300,0)) ,C2:C300))-D1

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER

F2, copied down:

=IF(ROW()-ROW(F$2)+1<=$D$1+$E$1,INDEX($A$2:$A$300,MATCH(ROW( )-ROW(F$2)+1,
$C$2:$C$300,0)),"")

If, for example, at some point you want a Top 5 list, change the 10 in
D1 to 5.

Hope this helps!

In article ,
"trav" wrote:

Am looking for the function/macro to return the most frequently ocurring
numbers within in large (300+cell) range in descending order to the 10th
place. I am new to excel and can't figure this one out! Any help is
appreciated!

Thanks, Travis B.

  #4   Report Post  
trav
 
Posts: n/a
Default

Thanks Domenic,

I think that will work with a few adjustments.... The range is actually
B2:G51, but I think with just a slight mod here and there I can make what you
gave me work.
Thanks again!
Travis B.

"Domenic" wrote:

Assuming that A2:A300 contains your numbers , the following is a formula
system that will list the Top 10 most frequently occuring numbers,
including any ties for 10th place...

B2, copied down:

=IF(ISNA(MATCH(A2,$A$1:A1,0)),COUNTIF($A$2:$A$300, A2),"")

C2, copied down:

=IF(N(B2),RANK(B2,$B$2:$B$300)+COUNTIF($B$2:B2,B2)-1,"")

D1: enter 10, indicating that you want a Top 10 list

E1:

=MAX(IF(B2:B300=INDEX(B2:B300,MATCH(D1,C2:C300,0)) ,C2:C300))-D1

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER

F2, copied down:

=IF(ROW()-ROW(F$2)+1<=$D$1+$E$1,INDEX($A$2:$A$300,MATCH(ROW( )-ROW(F$2)+1,
$C$2:$C$300,0)),"")

If, for example, at some point you want a Top 5 list, change the 10 in
D1 to 5.

Hope this helps!

In article ,
"trav" wrote:

Am looking for the function/macro to return the most frequently ocurring
numbers within in large (300+cell) range in descending order to the 10th
place. I am new to excel and can't figure this one out! Any help is
appreciated!

Thanks, Travis B.


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
Excel Filtering doesn't work with large files Andy Excel Discussion (Misc queries) 6 March 29th 05 07:57 PM
Pivot Table Zero Value jcliquidtension Excel Discussion (Misc queries) 12 January 13th 05 04:21 AM
Excel,Auto fit - does work for large text fields ancastle Excel Discussion (Misc queries) 4 January 6th 05 12:15 AM
How can I create a table of contents(worksheets) for a large work. brupub Excel Discussion (Misc queries) 7 December 5th 04 05:16 PM
Change Path names in copied work book jheaney Excel Worksheet Functions 2 November 18th 04 07:29 PM


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