+ Reply to Thread
Results 1 to 7 of 7

Frequency + Ranking Function.

  1. #1
    Registered User
    Join Date
    11-25-2010
    Location
    kl,singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Frequency + Ranking Function.

    How do I count the frequency and ranking these example number.

    4463
    5454
    4463
    2256
    2251
    2251
    4463
    3351
    4463
    5454
    4463
    2256
    2251
    2251
    4463
    3351
    4463
    5454
    4463
    2256
    2251
    2251
    4463
    3351
    4463

    and want result in colum B and C something like this,
    2251 8
    4463 4
    3351 2
    5454 1
    2251 1
    and so on....

    Whole night search for code for this. Help me...
    Last edited by myteam; 11-25-2010 at 03:08 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Frequency + Ranking Function.

    Are those the actual true results you expect from this sampleset? If so, please explain how you get 8 for 2251 and then 1 for 2251?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-25-2010
    Location
    kl,singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Frequency + Ranking Function.

    Nope. That just a sample on how the answer should be...
    Actually the list is much longer so I just put a sample on how the answer will look like.
    Please help me...

  4. #4
    Registered User
    Join Date
    10-05-2010
    Location
    S.A
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Frequency + Ranking Function.

    you can use the advanced filter to extract the unique values and paste in column B.
    in column C use this formula:
    Please Login or Register  to view this content.
    copy down
    attached the file
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-25-2010
    Location
    kl,singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Frequency + Ranking Function.

    Hi, thanks for the frequency tips.

    Is there a way where I don't need to copy the formula to each cell in column C since the unique number is hundred of number.

    And is it possible to have them be ranked?
    Last edited by myteam; 11-25-2010 at 09:19 PM.

  6. #6
    Registered User
    Join Date
    10-05-2010
    Location
    S.A
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Frequency + Ranking Function.

    here is another code where it will show cells as blank not zero if value is not existent
    Please Login or Register  to view this content.
    to rank them use filter

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Frequency + Ranking Function.

    Why not just use a Pivot Table ?

    Set the Number Field as both Row Field/Label & Data Field set to COUNT.
    Order the results based on COUNT of number field (desc)

    edit: sample (with dynamic source) attached
    Attached Files Attached Files
    Last edited by DonkeyOte; 11-26-2010 at 04:37 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1