+ Reply to Thread
Results 1 to 9 of 9

Multiple Lines into One Line

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Multiple Lines into One Line

    Hi there.
    I have been up all night working on an Excel spreadsheet that I need to have completed today for work. I am not even halfway through it. I am copying and pasting and it is very time consuming. I know there is an easier way but I am not exactly Excel literate to be honest. What I am trying to achieve is moving multiple lines into one line. For example I would like this
    John Smith
    Manhattan
    NY
    USA
    Tel: 212 222 2222

    to look like

    John Smith, Manhattan, NY, USA, Tel: 212 222 2222

    Any help seriously appreciated.
    Thanks

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Multiple Lines into One Line

    Hi,

    Try this, it copies the range and transposes it

    Please Login or Register  to view this content.
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    07-02-2012
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Multiple Lines into One Line

    Hi there

    Thanks so much for the reply. I am seriously stressing out trying to get this done and copying and pasting is so time consuming and I am getting nowhere. Pardon my ignorance but how do I apply that code?

  4. #4
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Multiple Lines into One Line

    Can you upload a sample workbook of your data, then i'll insert the code and you can se how it works.

  5. #5
    Registered User
    Join Date
    07-02-2012
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Multiple Lines into One Line

    Thanks so much. Aany help would be very much appreciated. I attach the spreadheet. There are 25 pages and I have completed the first 6 so you can see what I have done. Page 7 is next.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Multiple Lines into One Line

    First thing first.

    The data structure in this file makes it quite a project to code and in my opinion your better of doing it manually.
    If you ever get more of these files, then make sure the data structure is more workable.

    On another note, i really hope this is dummy data and not real persons, emails and addresses, if this is the case then write a moderator and ask if the file can be removed.

  7. #7
    Registered User
    Join Date
    07-02-2012
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Multiple Lines into One Line

    Thanks very much for the tips and advice. I will take note on all. Thank you

  8. #8
    Registered User
    Join Date
    07-02-2012
    Location
    Northampton
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Multiple Lines into One Line

    1 suggestion if you not already tried.
    Highlight the data
    Copy
    select start cell for new location ( not within copied data)
    paste special
    click transpose box
    enter

    HTH

  9. #9
    Registered User
    Join Date
    07-02-2012
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Multiple Lines into One Line

    Thanks so much for the great tip, it helped alot

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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