+ Reply to Thread
Results 1 to 6 of 6

Delimiting a Cell

Hybrid View

  1. #1
    Registered User
    Join Date
    03-07-2014
    Location
    Gergia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Delimiting a Cell

    I have a spreadsheet that has 1794 rows and one column (B). Each cell has the following format (see below):




    " Crowley & McKoon
    Attorneys
    2420 Double Churches Road
    Columbus, GA 31901-
    (706) 324-4375
    [email protected]"




    Again, this information is in cell B1. The next cell with data is cell B3 (see below)


    "100 Black Men of W. GA.
    Community/Civic Organizations & Non-Profits
    601 Union St.
    LaGrange, GA 30241
    (706) 812-1007
    [email protected]"



    I am trying to get each line of the information into its' own cell. How do I delimit the entire spreadsheet or do I have to do each cell independently?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Delimiting a Cell

    Try this....
    • Select your single-column list
    • Data.Text-to-columns...Check: Delimited...Click: Next
    ...Check: Other....in the character box: Hold down CTRL and type J
    ...Click: Finish
    Is that something you can work with?

    Note: I corrected the above...Data.Text-to-columns was incorrectly entered as: Home.text etc
    Last edited by Ron Coderre; 03-07-2014 at 01:54 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Delimiting a Cell

    Even Better !!!

  4. #4
    Registered User
    Join Date
    03-07-2014
    Location
    Gergia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Delimiting a Cell

    Gentlemen:

    No, this did not work as when I selected the delimited and clicked next, the box only showed the Name at the top and all the other data in the box was gone??? Any other suggestions?

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Delimiting a Cell

    I think you'll need to post a sample workbook so we can figure out what's happening.

  6. #6
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Delimiting a Cell

    Hello, Click the "Parsed" button on the attached, then check "Sheet2" for the output.


    Sub Macro1()
    
    Dim cell As Range
    Dim rng As Range
    
    Set rng = Range("B1:B2000")
    
    Dim ArrA As Variant
    Dim k As Integer
    Dim new_row As Long
    new_row = 1     'Start row in Sheet2...
    
    For Each cell In rng
        ArrA = Split(cell.Value, vbLf)  'Parse string by linefeed..
        k = UBound(ArrA)    'Get length of Array...
        
        If k < 0 Then new_row = new_row + 1     'If cell blank, add line...
        
        '####### Loop through array items...
        For i = 0 To k
            Sheets("Sheet2").Cells(new_row, 2).Value = ArrA(i)
            new_row = new_row + 1
        Next i
    Next cell
    
    
    MsgBox "Data parsed on Sheet2!"
    End Sub
    Attached Files Attached Files
    Last edited by Xx7; 03-10-2014 at 03:31 PM.

+ 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. [SOLVED] Delimiting with a formula
    By finwiz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-28-2012, 05:51 PM
  2. Question on Delimiting Text in Cell for phrases before and after semicolons
    By undergraduate in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2010, 04:41 AM
  3. Tab Delimiting with even lines
    By Nophy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-14-2009, 07:43 PM
  4. Delimiting without truncating
    By sirlink in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2009, 01:40 PM
  5. delimiting question
    By santoallwaysfun in forum Excel General
    Replies: 1
    Last Post: 06-27-2008, 06:20 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