+ Reply to Thread
Results 1 to 7 of 7

how to rank multiple values in single column according to how often value is duplicated

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Post how to rank multiple values in single column according to how often value is duplicated

    I have a single column with almost 10,000 numerical file-names (pls see screenshot here). They represent image-names collated together from several sub-folders. As you can see I have already highlighted the duplicates. However, my objective is now to rank the duplicate image-names according to how many times they are duplicated. In other words, I would like to sort/rank the cluster of the highest number of duplicates first and so on, instead of the colored clusters of duplicates being all mixed up. So, in the attached screenshot, the 5 duplicates currently showing in cells A9533-A9537 should rank above the 3 duplicates currently showing in cells A9524-A9526 and A9528-A9530; and the clusters of 3 duplicates should of course be ranked above the duplicate clusters of twos...

    I am a medium skilled Excel user and am hoping that this is even possible.

    Thanks a lot in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: how to rank multiple values in single column according to how often value is duplicate

    The function is fairly easy. It is a sorted histogram. Attach your file, I will set this up and re-attach it for you.

  3. #3
    Registered User
    Join Date
    03-26-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: how to rank multiple values in single column according to how often value is duplicate

    wow - that would be great. Unfortunately I am unable to upload, so I have uploaded it to google docs here. Pls let me know if you are able to retrieve the spreadsheet OK. Many thanks!

  4. #4
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: how to rank multiple values in single column according to how often value is duplicate

    I don't think the histogram works on non-numeric data.

    So examine the attached.

    This was done by the following steps;

    1. Copy the data to column C.
    2. Remove the duplicates from column C only. (Function under the data tab).
    3. In column B, add the function =Countif(range, C1) range is the range in column A(use absolute refs).
    4. Then fill-down the countif function.
    Attached Files Attached Files
    Last edited by Dennis7849; 03-26-2012 at 04:33 PM.

  5. #5
    Registered User
    Join Date
    03-26-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: how to rank multiple values in single column according to how often value is duplicate

    Thank you so much for your help! I am looking at it now and completely understand your approach. the challenge is of course in determining how many times we encounter a cluster of 9, 8, 7,...3,2 duplicates and then to allocate the cells accordingly (C1-C3). Your example took care of this nicely because it is dealing with a known and an easily manageable number of recurring items. In my list of jpg-names however, there will be several hundreds of clusters with say, 9 duplicates, 8, 7 etc. - Perhaps there is a way to just count the entire column returning how many duplicate-clusters exist and in a second step highlight and sort these duplicate clusters according to number of duplicates in each one of them...

  6. #6
    Registered User
    Join Date
    03-26-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: how to rank multiple values in single column according to how often value is duplicate

    I just saw your update - does that solve my problem? I am experimenting now myself with your instructions...

  7. #7
    Registered User
    Join Date
    03-26-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: how to rank multiple values in single column according to how often value is duplicate

    great! thanks a lot - this worked perfectly - as a last step I just sorted the columns as a table and got the perfect result. Brilliant!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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