+ Reply to Thread
Results 1 to 3 of 3

Sorting a comma list inside a single cell

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Madison, WI
    MS-Off Ver
    Excel 2007
    Posts
    6

    Sorting a comma list inside a single cell

    Hello. Setting up high school sports schedules for our newspaper. Each season I download the schedules from the schools in a particular Excel format and then spend HOURS editing them for style and spelling to get them ready for print.

    If there is a wrestling tournament with a lot of teams, for instance, the cell for VISITING SCHOOL has a bunch of names in it. It gets presented like this:

    Stoughton, Madison Memorial, Oregon, Verona, Madison West, Cambridge, Brodhead, Cambria-Friesland, Dodgeville, Edgerton, Montello, Palmyra-Eagle, Poynette, Whitewater, Walworth Big Foot, Deerfield, Merrill

    Is there a way I can set up a keystroke or command click that would SORT this list ALPHABETICALLY and plug it back into the cell, so the cell would read like this:

    Brodhead, Cambria-Friesland, Cambridge, Deerfield, Dodgeville, Edgerton, Madison Memorial, Madison West, Merrill, Montello, Oregon, Palmyra-Eagle, Poynette, Stoughton, Verona, Walworth Big Foot, Whitewater

    I have been copying them, pasting them into Word, doing a search/replace to change comma-space to paragraph, doing a sort, changing paragraph back to comma-space, and pasting it back in. It's fine for the first 400 times but after that it becomes TEDIOUS!

    Thanks.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sorting a comma list inside a single cell

    Please see attached file
    Code by mrice.
    Where text in A1
    Use UDF formula in B1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    Madison, WI
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Sorting a comma list inside a single cell

    THANK YOU. It's working like a charm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Lowest number in comma separated list from a single cell
    By jwrobel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-30-2017, 03:27 AM
  2. [SOLVED] Using comma separated values in a single cell
    By joerobb in forum Excel General
    Replies: 7
    Last Post: 01-16-2015, 08:45 AM
  3. Match a Value from a single-cell, comma separated list
    By secondchild12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-24-2014, 06:16 PM
  4. Macro to create a list of sheets, separated with comma in a single cell
    By manolomana in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2014, 11:00 AM
  5. [SOLVED] Single cell Comma Separated Values to validation list [DIFFICULT QUESTION]
    By jgema in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-31-2013, 08:48 PM
  6. Retrieve data in the 3rd row inside a single cell
    By Wizz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2008, 01:16 AM
  7. [SOLVED] How do I create a list inside a single cell?
    By desert_penguin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2006, 05:09 PM

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