+ Reply to Thread
Results 1 to 3 of 3

Sorting Data Alphabetically In One Cell Using VBA - Not Removing Spaces

  1. #1
    Registered User
    Join Date
    09-11-2019
    Location
    Chicago, Illinois
    MS-Off Ver
    MacOS 16.45
    Posts
    2

    Sorting Data Alphabetically In One Cell Using VBA - Not Removing Spaces

    Hello!
    I'm a long time lurker, first time poster. I'm hoping there is a quick fix for the issue that I'm running into. I used a thread on this forum to learn how to sort lists within single cells alphabetically using the user defined function below. This function works perfectly except that it is eliminating spaces from my original entries. The original entries in my workbook are full names so I need the spaces to remain in tact for it to really be functional for me. Is there a modification that I can make to the user defined function to retain the spaces that exist in the original cells?

    Current User Defined Function:
    Please Login or Register  to view this content.


    Thanks to everyone in the forum, I have found many solutions since stumbling across this forum a few years ago.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Sorting Data Alphabetically In One Cell Using VBA - Not Removing Spaces

    Try this code

    enter as: =@GetSort(A3," ")

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-11-2019
    Location
    Chicago, Illinois
    MS-Off Ver
    MacOS 16.45
    Posts
    2

    Re: Sorting Data Alphabetically In One Cell Using VBA - Not Removing Spaces

    I'm getting "#VALUE!" when I point that function at the original cells as well as the column that I created using the first code.

+ 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] Sorting data alphabetically in one cell by surname
    By Jasper1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2020, 04:30 AM
  2. Sorting data (that's separated by commas) in a cell alphabetically
    By guygraham in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-20-2017, 04:36 AM
  3. [SOLVED] Removing numbered data so that it may be sorted alphabetically
    By thebreakking in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-16-2014, 08:21 PM
  4. Sorting excel alphabetically maintaining spaces
    By 7ClouD in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-25-2014, 06:03 PM
  5. Help in Sorting Unknown Cell Range Alphabetically
    By crisshinn in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-21-2011, 07:01 AM
  6. Removing spaces before and after cell data
    By catchfm in forum Excel General
    Replies: 3
    Last Post: 04-19-2010, 08:04 AM
  7. [SOLVED] Sorting data in a cell alphabetically
    By Newbie1092 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-28-2005, 01:55 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