+ Reply to Thread
Results 1 to 7 of 7

Type words into a single cell and have them arrange into alphabetical order same cell.

Hybrid View

  1. #1
    Registered User
    Join Date
    12-13-2023
    Location
    Melbourne
    MS-Off Ver
    Office 365
    Posts
    14

    Type words into a single cell and have them arrange into alphabetical order same cell.

    Is it possible to type words or names into a single cell and have them arrange into alphabetical order in the same cell? Then apply that to a range of cells or a row.
    I have searched a heap threads and have found solutions using a formula showing results in adjacent cell but not the same cell.

    A bunch of us use office 365 excel web\online to collaborate on the same spreadsheet.
    Attached Files Attached Files
    Last edited by sbarwald; 12-13-2023 at 06:21 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,691

    Re: Type words into a single cell and have them arrange into alphabetical order same cell.

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,309

    Re: Type words into a single cell and have them arrange into alphabetical order same cell.

    In U1:

    =BYCOL(A1:S1,LAMBDA(c,TEXTJOIN(CHAR(10),,SORT(TEXTSPLIT(c,," ")))))

    Set cells to Wrap Text and Align Top.

    In the SAME cell would require VBA - shall I move the thread for you?

    EDIT: VBA won't work online - you'd need to look at Office Scripts, but we'd still need to move the thread.
    Attached Files Attached Files
    Last edited by AliGW; 12-18-2023 at 03:53 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Type words into a single cell and have them arrange into alphabetical order same cell.

    That does not work delivering the expected results (coincidentally) only for the first cell. Thereafter they are not sorted.

    Delete ALL expected results, wrap cells, align top and try:

    =BYCOL(A1:S1,LAMBDA(x,TEXTJOIN(CHAR(10),,SORT(TEXTSPLIT(TRIM(x),," ")))))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,309

    Re: Type words into a single cell and have them arrange into alphabetical order same cell.

    It's academic, anyway - it's not what the OP wants, I realised. But yes, you are right.

  6. #6
    Registered User
    Join Date
    12-13-2023
    Location
    Melbourne
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Type words into a single cell and have them arrange into alphabetical order same cell.

    Hi Ali and Glen Thanks a huge bunch for helping with this solution. It really helps with our work scheduling chart. Hope you have a great Christmas break if your having one.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Type words into a single cell and have them arrange into alphabetical order same cell.

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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] Formula to Arrange Genres in Alphabetical Order
    By billy60 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-08-2023, 10:09 AM
  2. [SOLVED] How to Re-arrange the Items in Alphabetical Order?
    By jalalsalik in forum Excel General
    Replies: 2
    Last Post: 09-30-2015, 02:32 AM
  3. Arrange Cells(and Corressponding Details) According To Alphabetical Order
    By kaisin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-09-2007, 09:41 AM
  4. [SOLVED] How do I arrange my tabs in alphabetical order all at once?
    By Zara in forum Excel General
    Replies: 3
    Last Post: 05-03-2006, 08:25 PM
  5. How to arrange your tabnames in alphabetical / chronological order
    By Dbase Beginner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2005, 09:12 AM
  6. [SOLVED] How do I arrange sheets in alphabetical order?
    By Supreme Grace in forum Excel General
    Replies: 2
    Last Post: 03-16-2005, 01:06 PM
  7. [SOLVED] How do I arrange sheets in alphabetical order?
    By gracebakky in forum Excel General
    Replies: 2
    Last Post: 03-16-2005, 07:06 AM

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