+ Reply to Thread
Results 1 to 8 of 8

How to separate text cell into columns

  1. #1
    Forum Contributor
    Join Date
    10-30-2007
    Posts
    125

    Question How to separate text cell into columns

    See attachment.

    When I copied my travel expenses into an Excel spreadsheet, all of the data/text was combined into column A. Is there a way or formula that can separate the traveler names, traveling date and $ amount into separate columns?

    Example.
    02/06/07 AP 018 18810 034551 0600 Domestic Travel Smith 02/02 992.30

    Objective:

    Column A Column B Column C
    Traveler Travel Date Amount
    Smith 02/02 992.30

    TIA
    Excel Newby
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi there,

    Though you could use different functions to do this, you can easily split your text by using Excel's Text to Columns function. To do this, follow these five steps:

    1. Highlight the entire range (A1:A29 in your example)
    2. From the Data menu select Text to Columns
    3. Ensure the Delimited radio button is selected and click the Next > button
    4. Click the Tab and Space option boxes and click the Next > button
    5. Ensure the cell reference in the Destination text box is $B$1 and then click the Finish button

    HTH

    Robert
    Last edited by Trebor76; 11-05-2007 at 09:08 PM.

  3. #3
    Forum Contributor
    Join Date
    10-30-2007
    Posts
    125

    How to separate text cell into columns

    Hi Robert,

    Thank you for your suggestion unfortunately it doesn't work. I need to be able to separate text from numeric data. What you suggested worked up to a point. The alignment in the last few data fields does not align due to the travelers names varying in length. see example below

    02/16/07 AP 066 18810 034551 0600 Domestic Travel Jones 02/01 1,338.22
    02/20/07 AP 072 18810 034551 0600 Domestic Travel Griffin-Davison 02/14 1,686.12
    02/20/07 AP 072 18810 034551 0600 Domestic Travel Lane 02/16 1,114.84

    TIA,

    ExcelNewby

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi there,

    There is a probably a more succinct way of doing this (I have to race off to a meeting at the moment), but have a look at the attached where I've used various formulas in Columns B-K (which I've hidden for presentation) to end up with the three columns (L-N) you're after.

    HTH

    Robert
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi there,

    I'd say (let me know either way) the attached is what you're after.

    HTH

    Robert
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-30-2007
    Posts
    125

    How to separate text cell into columns

    Morning Robert-

    That's exactly what I wanted the return to be. The problem is that when I tried to paste additional data with different travelers names the formula unable to recognize. Is there a reference cell where I need to update the travelers names?

    Thank you for your amazing willingness to give your time and assist clueless Excel users like me.

    TIA,
    ExcelNewby
    Attached Files Attached Files

  7. #7
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi,

    Trebors formula works perfectly - the problem arises in your example because the one line that it does not work for is in a diferent format due to the transaction type - nothing to do with the travellers name, this a journal entry.

    Take this transaction out and all is fine.

    Ed

  8. #8
    Forum Contributor
    Join Date
    10-30-2007
    Posts
    125
    Morning-

    You're right Robert's formula was done correctly.

    Thank you soooo much Ed and Robert. You guys are awesome !!!


    Happy Excel Newby

+ 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