+ Reply to Thread
Results 1 to 5 of 5

break apart a field into multiple fields?

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    break apart a field into multiple fields?

    I need to break a field out into separate columns based on where the "-" appears in the source field.

    example:

    FROM THIS

    Source field:
    236-III-C-1
    F-6-2
    399-B-12-1
    370-B-11

    TO THIS

    Lot field
    236
    F
    399
    370

    Section field
    III
    6
    B
    B

    Division field
    C
    blank
    12
    11

    Marker field
    1
    blank
    1
    blank

    How would I do this?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: break apart a field into multiple fields?

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-24-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: break apart a field into multiple fields?

    test-sheet-2013.xlsx

    The attached test file shows a "Before" sheet and the end result in an "AFTER" sheet. I have some 13,000+ records in the original "ledger_code" field.

    Basically I need to take each part of the "ledger_code" field and break up the code into its individual parts. The breaking point are the dashes "-" in the "ledger_code" field

    I hope the file is clear on the desired result.

    Thanks

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: break apart a field into multiple fields?

    The easiest way without using any formula

    Copy your range A2:A8 into B2:B8, while it highlight go to

    Data > Text to Column > Delimited > Next > Select Other and enter "-" no quotes > Finish out

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: break apart a field into multiple fields?

    In B2 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag it to right and down...

+ 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. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  2. Replies: 4
    Last Post: 10-07-2011, 10:36 AM
  3. Scrunching Multiple Record Fields Into One Top-level Field
    By SWMagic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2010, 01:00 PM
  4. Combining Multiple Columns/Fields into One Field
    By jus214 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2009, 07:54 PM
  5. Replies: 1
    Last Post: 11-03-2008, 04:34 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