+ Reply to Thread
Results 1 to 13 of 13

Text-to Column

  1. #1
    Registered User
    Join Date
    06-19-2014
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    10

    Text-to Column

    I have been trying to used text to colums, however my rows are of varying information and the "split" needs to be a varying places in the row. I need to be able to do this with multiple rows, as my spreadsheet that I am working on has 1800 lines. The only common denominator regarding where to split at, is when my text switches to numbers at a point in my text. I have been unsuccessful in figuring out how to do this and would appreciate it if anyone out there can help me accomplish this. I have been working on a conversion that was a "dirty" conversion and many, many lines were converted with multiple colums placed in the same column in excel. I have been an Excel user for 20 years, albeit just for basics, and I am new to pdf conversions. Both programs are amazing, escpecially Excel, but I am frustrated that I cannot find a way to use the text to column feature to a greater capacity in Excel. I hope someone out there can help me.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Text-to Column

    Hi and welcome to the forum

    T2C works great om mass data when the "split" is pretty consistant within each row, but to create a formula to do this for you, we will need to see a small sample of what you have, and what you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-19-2014
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    10

    Re: Text-to Column

    I have pasted 4 lines of the converted spreadsheet below. I have the standard text to colum mastered which covers the first 5 columns of lines 1 and 3 (1 $ 513.00 $ 159.39 - Y ), although I have yet to figure out how I can do it with lines hidden (lines 2 and 4 because they do not follow the same denomitator format as lines 1 and 3). The 2nd and 4th lines need to be added to lines 1 and 3. These lines do not vary and need to be split so that "spine; without contrast material" is added after "axial tomography," and "including multiple" needs to be added after "injury to other". Most of the rows are not uniform and the only common denominator that I can determine is the start of the diagnostic codes (number with the decimal point). I hope that I am making sense.

    1 $ 513.00 $ 159.39 - Y 72128 Computerized axial tomography, thoracic 959.8 Other & unspecified in]ury to other
    spine; without contrast material specified sites, including multiple
    1 $ 513.00 $ 159.39 - Y 72131 Computerized axial tomography, lumbar 959.8 Other & unspecified in]ury to other
    spine; without contrast material specified sites, including multiple

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Text-to Column

    Can you upload a sample workbook please?

  5. #5
    Registered User
    Join Date
    06-19-2014
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    10

    Re: Text-to Column

    Here it is...I hope

    Sample for Excel Forum.xlsx

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Text-to Column

    Thanks, but what would your expected outcome look like?

    If it is a simple matter of putting the 2nd row onto the end of the 1st row, that wont be too hard to do. Where is this data coming from? Maybe there is a better way to import it in the 1st place?

  7. #7
    Registered User
    Join Date
    06-19-2014
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    10

    Re: Text-to Column

    It kind of is, just more elaborate. Lines 1 and 3 need to be split in different places and lines 2 & 4 need to be split in different places too. Once this is done, then I can concatenate the lines together as they're supposed to be. The tricky part, is not having a uniform deliminator. Is there a way that I can use the decimal point or the point at which the letters change over to numbers as the deliminator? I also want to send you a huge thank you for trying to help me. I so appreciate it. You're awesome!

  8. #8
    Registered User
    Join Date
    06-19-2014
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    10

    Re: Text-to Column

    I forgot to tell you, it is coming from a PDF conversion of an insurance report.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Text-to Column

    Is there a way that I can use the decimal point or the point at which the letters change over to numbers as the deliminator?
    Looking at your data, rows 1 and 3 have at least 3 decimal points, and both start with numeric. Row 7 has 2 decimal points and row 9 has 3

    If you were to do this manually, what would you be looking for?

    Also, what would your expected outcome look like?

  10. #10
    Registered User
    Join Date
    06-19-2014
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    10

    Smile Re: Text-to Column

    Hello. My apologies. I should have sent you clearer info. In the spreadsheet I have attached, I have included notes etc. I hope this helps. I tried attaching a copy of a page before it was converted so that you can be familiar with what I am working with, but I could not attach it within the site because it was too big of a file. I do not understand this because I cropped it down to less than half a page. If you like I can e-mail it to you.

    Sample for Excel Forum.xlsx

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Text-to Column

    So, If I understand you correctly...

    you want to take 1 piece towards the start of the 1st row, and combine that with the 1st piece of the 2nd row
    Then you want to take the rest of the 1st row and combine that with the last part of the 2nd row

    The 1st part goes up to a value somewhere in the string, and the 2nd part starts at some undefined point in teh 2nd row?

  12. #12
    Registered User
    Join Date
    06-19-2014
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    10

    Re: Text-to Column

    Happy Monday.

    Please allow me to clarify, the 2nd part of line 1 belongs at the beginning portion of line 2.

  13. #13
    Registered User
    Join Date
    06-19-2014
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    10

    Re: Text-to Column

    I wanted to follow up to see if anything was able to be done for me and my dliemna. I was unable to follow up prior to today because my husband has had surgery recently and that has put me "behind the 8-ball" as of lately. My apologies.

+ 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. VBA Code to Find Specified text within a Column and perform Text to Column
    By MHamid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-26-2014, 06:42 AM
  2. Text&number based column to auto display new text in new column
    By TCF in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-24-2014, 01:56 PM
  3. Replies: 12
    Last Post: 01-08-2014, 11:28 AM
  4. Trying to write amacro to compare text in column A to garbage text in column B
    By Big Dawg Dad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2013, 03:31 PM
  5. Replies: 1
    Last Post: 09-01-2011, 12:05 AM

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