+ Reply to Thread
Results 1 to 5 of 5

Want to separate words into columns but it's not always the same amount of words.

  1. #1
    Registered User
    Join Date
    08-15-2018
    Location
    United States
    MS-Off Ver
    Dont know
    Posts
    2

    Want to separate words into columns but it's not always the same amount of words.

    I need to create a lot of check off sheets for my employees. But when I copy over their names and info into excel puts it all into one cell. I was originally going to copy and paste all of my employees information (I'm doing this for over 300 employees) and split it the info by space, then connect their names into one cell, but I ran into the problem of their names being different lengths. For example, sometimes the name will be "John Joseph Saunders" and other times just "John Johnson" the issue is, when I go to create a macro to split up their name into different columns, it will split the name with three names into three and the one with two into two...and then the info like birthdate is in column D for the person with three names and column C for the person with two names. I am unsure of how to properly fix this issue. Is there any way to efficiently separate their name and information and then reconnect their name? I would not like to do this for so many employees all by hand.

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

    Re: Want to separate words into columns but it's not always the same amount of words.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Want to separate words into columns but it's not always the same amount of words.

    If the date of birth immediately follows the name (of variable length), this could be used as an identifier for the end of the name as it will comprise numbers.

    It would help, though, if you attached a sample Excel workbook, so we can see how your data varies.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Don't try to use the Paperclip icon (Attachments button), as this does not work on this forum.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    08-15-2018
    Location
    United States
    MS-Off Ver
    Dont know
    Posts
    2
    Hi, how would I add an identifier for the end of the name?

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

    Re: Want to separate words into columns but it's not always the same amount of words.

    We really need to see some REPRESENTATIVE data.

+ 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] Compare words in 2 columns, formula for unique words in 3rd column
    By thecdnmole in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-08-2018, 01:58 PM
  2. Compare words in 2 columns, formula for unique words in 3rd column
    By thecdnmole in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2018, 06:26 PM
  3. VBA separate uppercase words from lowercase words.
    By mdalala in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2017, 12:28 PM
  4. [SOLVED] Separate Words from List Into Columns
    By Patish in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-18-2016, 12:35 PM
  5. Replies: 3
    Last Post: 08-04-2013, 09:40 PM
  6. [SOLVED] VBA issue - trying to separate words with CAPITALS from Proper words
    By Eagle29 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-24-2013, 04:22 AM
  7. Replies: 2
    Last Post: 06-28-2011, 10:29 AM

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