+ Reply to Thread
Results 1 to 5 of 5

Sort Mulple Values alphabetically within a Cell seperated by a comma, whole worksheet

  1. #1
    Registered User
    Join Date
    05-26-2015
    Location
    Romania
    MS-Off Ver
    2003
    Posts
    4

    Sort Mulple Values alphabetically within a Cell seperated by a comma, whole worksheet

    Hi! I am writing my thesis and i have a bunch of data from my questionnaire (double letter columns, 800+ rows). In some of my cells there are many words separated by commas. I need to be able to sort the words alphabetically within the cells. I found lesoies' macro here http://www.excelforum.com/showthread...1993&p=4083788
    and i applied kalak's fix for it. Now it works in column A until row 5. I figured out how to make it work in any number of rows, but I can't seem to solve the problem of making it work outside column A. Colud you please help me?

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sort Mulple Values alphabetically within a Cell seperated by a comma, whole worksheet

    Hi pszpeti
    It's so easy
    In this line
    Please Login or Register  to view this content.
    1 represent row 1 as starting row and 5 represents row 5 as the end row

    and in this line
    Please Login or Register  to view this content.
    1 stands for column A so it can be any column you desire
    for example if you need column G , just change 1 to 7 or even type "G" with quotes instead of 1
    hope it will help
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Registered User
    Join Date
    05-26-2015
    Location
    Romania
    MS-Off Ver
    2003
    Posts
    4

    Re: Sort Mulple Values alphabetically within a Cell seperated by a comma, whole worksheet

    OMG thank you! It's so easy, I'm ashamed )

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sort Mulple Values alphabetically within a Cell seperated by a comma, whole worksheet

    You're welcome

  5. #5
    Registered User
    Join Date
    10-07-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Mac v15.14
    Posts
    1

    Re: Sort Mulple Values alphabetically within a Cell seperated by a comma, whole worksheet

    Whist running the script, I ran into "Runtime Error '9' - Subscript out of range" prompt.

    This was due to a group of empty rows...

    Can anything be done via the script, to overcome this error???

    Also, it removes the 'space' after each 'comma'...can the script be changed to add that, rather than using the 'find & replace' function after each script run?
    Last edited by sbrie6; 10-07-2015 at 10:13 PM. Reason: Additional Question Added

+ 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. [SOLVED] Sort Mulple Values alphabetically within a Cell seperated by a comma
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-27-2015, 02:46 AM
  2. [SOLVED] Unique values from comma seperated text to different worksheet
    By pjbassdc in forum Excel General
    Replies: 5
    Last Post: 05-29-2012, 11:24 PM
  3. Sum of comma seperated values in cell(Reposting)
    By xcelion in forum Excel Formulas & Functions
    Replies: 43
    Last Post: 09-06-2005, 07:05 PM

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