+ Reply to Thread
Results 1 to 3 of 3

How to sort data by the most frequent text value?

  1. #1
    Registered User
    Join Date
    12-18-2009
    Location
    IL
    MS-Off Ver
    Excel 2007
    Posts
    2

    How to sort data by the most frequent text value?

    Hello all,

    Lets assume that i have this table for example:

    A -- B -- C
    ======================
    Dog -- 18/11/06 -- White
    Cat -- 09/08/10 -- White
    Bird -- 23/12/06 -- Yellow
    Dog -- 20/01/00 -- Brown
    Dog -- 20/05/99 -- Black
    Fish -- 18/12/09 -- Blue
    Cat -- 30/02/07 -- Brown
    Bird -- 01/03/03 -- White
    Dog -- 06/06/74 -- Black
    Bird -- 17/10/05 -- Orange

    I want to use Excel to count the values in column A (Animal type) and then sort the entire table by the most frequent value (if "Dog" appears 4 times, it'll be the first, then "Bird" - 3 times, and so on).

    The wanted outcome is this:
    A -- B -- C
    ======================
    Dog -- 18/11/06 -- White
    Dog -- 20/01/00 -- Brown
    Dog -- 20/05/99 -- Black
    Dog -- 06/06/74 -- Black
    Bird -- 23/12/06 -- Yellow
    Bird -- 01/03/03 -- White
    Bird -- 17/10/05 -- Orange
    Cat -- 09/08/10 -- White
    Cat -- 30/02/07 -- Brown
    Fish -- 18/12/09 -- Blue

    How do i do that?
    Thanks,
    Kazabu

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

    Re: How to sort data by the most frequent text value?

    One way....

    In Column D use a formula like:

    Please Login or Register  to view this content.
    Sort A:D by D Desc.

  3. #3
    Registered User
    Join Date
    12-18-2009
    Location
    IL
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to sort data by the most frequent text value?

    Works perfectly!
    Thank you!

+ 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