+ Reply to Thread
Results 1 to 14 of 14

split column to multiple columns based on extension files

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    split column to multiple columns based on extension files

    hello
    I have files names and extensions in column a I would class every extension file are alone each extension of file it should be in separate column
    what i wish result start column e:g
    thanks
    Attached Files Attached Files
    Last edited by ABDELFATTA; 03-11-2021 at 11:18 AM.

  2. #2
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,429

    Re: split column to multiple columns based on extension files

    This makes no sense...How does green fit under that extension...
    Untitled.png

    If you want all under individual then here is one way...
    Please Login or Register  to view this content.
    Last edited by Sintek; 03-11-2021 at 11:16 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: split column to multiple columns based on extension files

    sorry sintek you right I update my file and with I add notice may be another extension like .txt or others

  4. #4
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,429

    Re: split column to multiple columns based on extension files

    Code in Post 2 should solve for all extensions...No new upload though...

  5. #5
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: split column to multiple columns based on extension files

    actually I tested it all the files copy in one column in h not each of them separated based on header extension
    I clear the headers and I tested it creates headers of extension but the copy occurs in one column is h , where I mistook?

  6. #6
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,429

    Re: split column to multiple columns based on extension files

    where I mistook?
    Doing something wrong or file is not same as sample file...
    See attached...
    Attached Files Attached Files
    Last edited by Sintek; 03-11-2021 at 11:36 AM.

  7. #7
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: split column to multiple columns based on extension files

    actually this matter happened in the beginning but I'm not sure to say you that but when I tested also in your file happened the same thing
    when I tested from the first time the code works as what I want but if run macro repeatedly it happens this problem , it copies in one column
    may you check it, please ?

  8. #8
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,429

    Re: split column to multiple columns based on extension files

    but if run macro repeatedly it happens this problem , it copies in one column
    That is obvious...
    Just add this snippet before...If you really do not want to delete yourself...
    Please Login or Register  to view this content.
    Why would you need to press button all the time...

  9. #9
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: split column to multiple columns based on extension files

    first of all I would thank you for the great code , you're super professional
    the second I put the line what you suggested before this line
    HTML Code: 
    am I right or wrong ? it works for me.
    and what means this is in code "" "" """ ""
    finally I would ask you thing personally if that is not upset you how did learn write code are you programmer or just hobby you learnt from the I internet ?
    Last edited by ABDELFATTA; 03-11-2021 at 12:08 PM.

  10. #10
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,429

    Re: split column to multiple columns based on extension files

    My apologies Abdelfatta...Is my bad...Only just realized that your data could increase and thereby need to be updated...
    Sorry...Put that snippet after
    Please Login or Register  to view this content.
    hobby you learnt from the
    From this forum...

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: split column to multiple columns based on extension files

    Please try

    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: split column to multiple columns based on extension files

    @sintek you shouldn't apology , you here to help the others maybe you're right or wrong i believe you do your best
    about next I , actually I'm not sure if I understand you this line is existed in the code and before I reply you i added another extension like txt and the code works normally i no know what are you talking about

  13. #13
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: split column to multiple columns based on extension files

    @Bo-Ry your file is very nice thanks for provide a different code and different way it's very useful

  14. #14
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,429

    Re: split column to multiple columns based on extension files

    I put the line what you suggested before this line
    Yes...after Next i
    Please Login or Register  to view this content.
    thanks for 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. Split the data based on the column filters into multiple excel files
    By RanjanKT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2020, 12:47 PM
  2. [SOLVED] PowerQuery - Split column into multiple columns based on another column
    By Bassehave in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2019, 09:48 AM
  3. Split single column into multiple columns based on value
    By _Raven_ in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2018, 03:28 PM
  4. Split Column into Multiple Columns Based Off Specific Criteria
    By hellzone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2017, 09:49 PM
  5. Split one Excel file into multiple files based on values in column A?
    By MetroBOS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2015, 10:59 AM
  6. Split Excel into Multiple csv files based upon the sum of column count.
    By sukanya123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-02-2013, 07:28 PM
  7. Replies: 3
    Last Post: 08-02-2006, 12:35 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