+ Reply to Thread
Results 1 to 40 of 40

TEXT to Column

  1. #1
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    TEXT to Column

    Dear All

    I have a text file file test.txt, test01.jpg and I intend to put it a workbook and automatically change into 3 coumns like this file "manual.xlsx"that I've made manually using "Text to Columns" menu
    any idea to make it
    Last edited by azbi; 09-26-2014 at 10:44 PM. Reason: comand from moderator

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    Nevermind
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Could you help?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    I'll look at it tomorrow - I may be able to help, if no one gives a solution in the interim - Thanks for the rep!

  5. #5
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    I just read at the bottom, then I think I should give it

    I just need this text when I paste inside automatically change into 3 column as a picture below
    RESULT.jpg

  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,929

    Re: TEXT to Column

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    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

  7. #7
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear FDibbins

    I've re-upload it again above

  8. #8
    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,929

    Re: TEXT to Column

    I'm confused The data you uploaded in your workbook (which looks like it only contains the result, not the raw data?) does not match the .txt file or the .jpg you uploaded?

  9. #9
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear FDibbins

    the txt data has been delete for some data inside due to the size was too big, therefor I delete it, but the point is the result, I mean the final column like in manual.xlsx
    I know you know.

  10. #10
    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,929

    Re: TEXT to Column

    OK, I can understand that

    But what did the raw data look like that was used for the manual.txt? I need to see the raw data so that I can put a formula together to extract what you need

  11. #11
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear FDibbins

    The raw data have put, please check my first request on the top (#1) named " file test.txt"

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    Hi Azbi,

    Try this:

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    How does it work?

  14. #14
    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,929

    Re: TEXT to Column

    Quote Originally Posted by azbi View Post
    Dear FDibbins

    The raw data have put, please check my first request on the top (#1) named " file test.txt"
    You have already said that the data in your .txt does not match your workbook. If you want an accurate answer, please provide matching samples of what you are working with, and what your expected outcome would look like

  15. #15
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Owh My God....you make it complicated

    Oke I'll change and make it same with the raw

  16. #16
    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,929

    Re: TEXT to Column

    ok never mind. Hopefully another member can assist you further, good luck

  17. #17
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Open your Workbook

    Press ALT + F11 to open the Visual Basic Editor.

    Select “Module” as directed above from the Insert menu

    Type "Option Explicit" then paste the code into the white space on the right

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name

    *When the dialog comes up choose your text file (you may need to use the dropdown)

    and that should be it

  18. #18
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    Its work, I appreciate, but there's another question again
    When I Run, then there's a dialog box appear to choose the source file, but there's no option type file except ".txt", could you make it for all file extension?
    And is it possible for your formula to running in the same workbook without make a new work book?
    could it use button for running?

  19. #19
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    Its work, I appreciate, but there's another question again
    When I Run, then there's a dialog box appear to choose the source file, but there's no option type file except ".txt", could you make it for all file extension?
    And is it possible for your formula to running in the same workbook without make a new work book?
    could it use button for running?

  20. #20
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear FDibbins

    Do not be sulk, I need a help from a person like you, I know you know

    Here's the same file that I made special for your request, please help me

    This is the source ARHB345ASIN.txt, it could be .txt or .ASC
    And the result must be like this RESULT1.xlsx

  21. #21
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    The routine is written for a text file, we would need a different routine for other kinds of files.

    Thanks for the rep!

  22. #22
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    So, could it be made?
    By the way, the result in Column 2 is different, only 3 character appear, meanwhile there should be 4 characters

  23. #23
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    Hi Azbi,

    It could be made but the routine with this program is designed specifically for the text file you uploaded - what would be the new requirements?

    Here's a four character version:

    Please Login or Register  to view this content.

  24. #24
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    Still error in result, column A empty, and column B and Column C are correct
    But the contain of column A appeared in a new workbook, and in this workbook for Column B is wrong

    The file that I use .ASC File, it couldn't put here, I don't know how?

    But the content of the file same like I send you in txt, because I save it into txt in order the file could be uploaded here

  25. #25
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    You say you have a different file extension .ASC but you can't upload it here - I can't imagine what the problem is - you need to meet me halfway

  26. #26
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    I meant the upload menu in this forum rejected this file, I've tried to change into ZIP or RAR, but still reject by this WEB

  27. #27
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    I meant the upload menu in this forum rejected this file, I've tried to change into ZIP or RAR, but still reject by this WEB
    Is there any way to upload such a file

  28. #28
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    Maybe without the filter:

    Please Login or Register  to view this content.

  29. #29
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    There has "All File" option in open dialog, but when I click and choose one file (*.ASC File) nothings happend

  30. #30
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    Try changing this line:
    Please Login or Register  to view this content.
    with the extension in caps

  31. #31
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    Its work, but the result automatically create a new workbook.
    The original workbook missing first column but the contain put in the new work book
    Could it be changed into one workbook...without appear a new one?

  32. #32
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    I think, its correct, but could the result appear in the origin workbook without make a new workbook?

  33. #33
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    I wish that you could send me a sample - the code doesn't call for another workbook

  34. #34
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    Here's the workbook that I put your formula

    Book5.xlsx

    And this is the file that I would make a column
    ARHB345ASIN.txt

    the result should be in Book5, but it make new workbook with titled same with source name

    Am I wrong?
    Attached Files Attached Files

  35. #35
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    Here's the workbook that I put your formula
    Book5.xlsx


    And this is the file that I would make a column
    ARHB345ASIN.txt

    the result should be in Book5, but it make new workbook with titled same with source name ARHB345ASIN.xlsx

    Am I wrong?

  36. #36
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    Hi Azbi,

    Thanks for the rep!

    If you want to name the book something else then see the red code at the bottom - but we can't force it to write on a workbook that you created in advance.

    Please Login or Register  to view this content.

  37. #37
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    Thanks for your answer, how about like this, make a button in this file and when I press the button will choose a source file, then the result appear in this workbook also. Is it possible?

  38. #38
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    we can't force it to write on a workbook that you created in advance.
    If that's what you want to do, I don't see how

  39. #39
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Borneo
    MS-Off Ver
    2016
    Posts
    277

    Re: TEXT to Column

    Dear xladept

    I can understand, thanks a lot for your ideas. Its solve now

  40. #40
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: TEXT to Column

    You're welcome and thanks for the rep!

+ 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. [SOLVED] Copy text in column 2 from column 1. Repeat text is displayed once only vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-12-2014, 03:39 AM
  3. 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
  4. Replies: 12
    Last Post: 01-08-2014, 11:28 AM
  5. 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

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