+ Reply to Thread
Results 1 to 4 of 4

Create Unique Identifier by either adding or removing a space

  1. #1
    Forum Contributor
    Join Date
    08-08-2015
    Location
    NJ
    MS-Off Ver
    2013
    Posts
    205

    Create Unique Identifier by either adding or removing a space

    Hello, I have two sources of data showing names as the following:

    - Last, First M
    - Last,First M

    Not every name has a middle initial so there is not always a first/second space. I need to use the name as a unique identifier and need to either:

    - substitute the first space only with "" nothing on the first list, or
    - add a space after the comma on the second list

    Either option will create a unique identifier to bring information together, and I am stuck on how to make that happen. Any suggestions?

    Thanks so much.
    Sheryl

  2. #2
    Forum Contributor
    Join Date
    01-05-2017
    Location
    New York
    MS-Off Ver
    Office 2016
    Posts
    206

    Re: Create Unique Identifier by either adding or removing a space

    Not sure I understand the question properly, but if you want to remove the space after comma (between last name and first name), select the whole column, press ctrl+H. Find what: ", " [comma space] replace with: "," [comma]. and click replace all.

    Is that what you're trying to do?

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Create Unique Identifier by either adding or removing a space

    As mentioned above you could use Find and Replace to remove the space after the comma. You could use this to add a space:

    Presuming full names are in column A:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will return the name as is if its already comma and space or will add the space.

    Hope this helps

  4. #4
    Forum Contributor
    Join Date
    08-08-2015
    Location
    NJ
    MS-Off Ver
    2013
    Posts
    205

    Re: Create Unique Identifier by either adding or removing a space

    Perfect, easier than I thought, thank you !

    Sheryl

+ 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. Replies: 1
    Last Post: 02-16-2017, 07:53 PM
  2. Need a formula to create a unique identifier for Duplicate names
    By asharma9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2015, 04:37 PM
  3. Replies: 1
    Last Post: 01-29-2015, 04:08 PM
  4. Unique Identifier
    By mussonip in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-07-2014, 10:46 AM
  5. Adding Unique Identifier to Rows of data
    By adam_w2009 in forum Excel General
    Replies: 13
    Last Post: 04-21-2013, 06:37 AM
  6. [SOLVED] Unique identifier
    By Steve Barnett in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-06-2006, 07:30 AM
  7. How do I create a unique identifier # when open excel file?
    By ritarowe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2005, 02:05 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