+ Reply to Thread
Results 1 to 8 of 8

Can I get Excel to interpret certain characters as automatic new cell or new row?

  1. #1
    Registered User
    Join Date
    12-19-2009
    Location
    Asgard
    MS-Off Ver
    Excel 2003
    Posts
    4

    Can I get Excel to interpret certain characters as automatic new cell or new row?

    First off, I'm an excel noob, so if I'm in the wrong forum, please redirect me.

    What I want to do goes something like this:

    - On a blank spreadsheet, I want to paste the following text into cell A1:

    Bob Smith <bobsmith@gmail.com>, John Doe <johndoe@hotmail.com>, Jane Doe <janedoe@att.net>, ...

    - So that it automatically fills in the spreadsheet like so:

    A1: Bob Smith - B1: bobsmith@gmail.com
    A2: John Doe - B2: johndoe@hotmail.com
    A3: Jane Doe - B3: janedoe@att.net
    ...

    Now, I know that, one at a time, I can paste each entry into its own cell in the first column and then go back and do the automatic column separation with the "<" character, but that won't help me nearly as much as what I want to achieve as described above.

    Any help in this regard will be GREATLY appreciated. This is for a big huge work project.
    Last edited by mightythor; 12-19-2009 at 11:31 AM. Reason: Can I get Excel to interpret certain characters as automatic new cell or new row?

  2. #2
    Registered User
    Join Date
    12-19-2009
    Location
    Asgard
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Can I do this?

    Quote Originally Posted by davesexcel View Post
    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Let me know if the new title is sufficiently specific.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Can I get Excel to interpret certain characters as automatic new cell or new row?

    After pasting the data in the cell, record a macro doing the following steps
    • Select the cell with the data
    • Menu > Data > Text to Columns (choose comma separated option)
    • Select all of the cells with now separated values
    • Right-click > Copy
    • select another cell (empty column), right-click > Paste Special > Transpose
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Can I get Excel to interpret certain characters as automatic new cell or new row?

    mightythor,

    Detach/open the attached workbook "Split - Can I do this - mightythor - SDG11.xls", and run macro "mightythor".
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Can I get Excel to interpret certain characters as automatic new cell or new row?

    Hi,

    If you have your data in row 1, go to Data > Text-to-columns and use the comma for the delimiter to split it so that the name and email address is in one cell. Then select all the cells in row 1, copy , select Sheet2 cell A1 and Paste Special > Transpose.

    You should now have all the names and email address in column A of Sheet2, like so:-

    Bob Smith <bobsmith@gmail.com>
    John Doe <johndoe@hotmail.com>
    Jane Doe <janedoe@att.net>

    Now to split these into separate cells, put this in B1 and copy downwards by double-clicking the little black square on the bottom right of B1

    =TRIM(LEFT(A1,FIND("<",A1)-1))

    and this in C1 and copy downwards as before

    =HYPERLINK(SUBSTITUTE(MID(A1,FIND("<",A1)+1,50),">",""))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Can I get Excel to interpret certain characters as automatic new cell or new row?

    Perhaps, if this does what you want, it might be moved to the Change event.
    Please Login or Register  to view this content.
    Last edited by mikerickson; 12-19-2009 at 12:13 PM.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  7. #7
    Registered User
    Join Date
    12-19-2009
    Location
    Asgard
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Can I get Excel to interpret certain characters as automatic new cell or new row?

    Thank you all for your suggestions and help so far.

    I guarantee that I will try to get one or more of these working Monday when I'm back at the work computer.

    Thanks again so much.

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Can I get Excel to interpret certain characters as automatic new cell or new row?

    The Thread Title still does not comply with the Rules, ie it contains unnecessary wording. The Title should be along the lines of a search engine string
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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