+ Reply to Thread
Results 1 to 5 of 5

transferring names from 1 excel spreadsheet to another

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    Leamington, Warwickshire
    MS-Off Ver
    2010
    Posts
    2

    transferring names from 1 excel spreadsheet to another

    Hi

    I am trying to transfer names from one excel spreadsheet in this format, in one column I have the full name "mr john smith" - I need to transfer the 1st name and 2nd name individually so it sits in my new spreadsheet in 2 x columns 1st name - John and 2nd name Smith. I am hoping there is a better, quicker way of doing it rather than me manually splitting and copying each name - I have 900 accounts to go through-- please help, thanks Jacqui

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: transferring names from 1 excel spreadsheet to another

    Select all the names in one column
    Paste to new spreadsheet

    Use Text to columns with a delimiter of space.
    This should suffice if they all have a title (Mr Mrs etc) otherwise the names will shift left.

    Give it a try see if it works.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    01-29-2015
    Location
    Leamington, Warwickshire
    MS-Off Ver
    2010
    Posts
    2

    Re: transferring names from 1 excel spreadsheet to another

    Great thanks this works, although I now realise that in the d/b I am working from there are multiple names in one box

    Mr Kenneth David Matheson
    Miss Amanda Jane
    Mr Richard Martin Alistair
    Mrs Helen McLintock
    Mrs Susan Lesley


    So I need to split them into rows first before I split into columns, is this doable ??


  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: transferring names from 1 excel spreadsheet to another

    Working on it...

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: transferring names from 1 excel spreadsheet to another

    Ok try this (try it anyway, we're only working on a new spreadsheet)

    This assumes:
    1) Every name has a title at beginning
    2) There are no more than 3 forenames

    copy the names to a new spreadsheet in column A

    in B1
    =SUBSTITUTE(A1," ",",")
    and copy down

    in C1
    =LEN(B1)-LEN(SUBSTITUTE(B1,",",""))
    and copy down

    in D1
    =IF(C1=1,","&B1,SUBSTITUTE(B1,",",REPT(",",5-C1),C1))
    and copy down

    Now use Text to columns on Column D with a delimiter of COMMA.
    You should now have a "gridlike" chart with titles at beginning, surnames at end and christian names/middle names in between
    Where there is no second or third name there wil be blanks
    The titles, christian name and surnames should now all be aligned.

    Use that grid to copy /paste value back to where you want the names to go.

    Let us know how you get on (I've worked hard on this!) :-)

+ 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. transferring defined names from one worksheet to another via data connection?
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2014, 02:45 PM
  2. transferring certain information from one spreadsheet to another
    By schotc2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2013, 07:42 AM
  3. Replies: 0
    Last Post: 04-18-2007, 04:40 PM
  4. [SOLVED] Excel Spreadsheet from Access. List of names changes as names are
    By Gordy w/Hi Expectations in forum Excel General
    Replies: 1
    Last Post: 10-20-2005, 11:05 PM
  5. Transferring Names into a Pivot Table
    By fishy8000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2005, 05:16 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