+ Reply to Thread
Results 1 to 25 of 25

Data Splitting/Column Divider Automatization

  1. #1
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Question Data Splitting/Column Divider Automatization

    Greetings!

    I am looking for a solution regarding a rather specific objective I find myself dealing with. I am to find a way that would allow data to be split into different columns automatically. So far, the only thing I found was the Text to Columns Wizard, but that is manual, and I would need something that could do that automatically. And to be make that a little more complicated, there should be certain words that are recongized and added to a different column than the rest of the data.

    Is making such an automatization possible? If yes, how would one go about that? And if not, could you recommend another method to separate data automatically by any means?

    Your help will be much appriciated!
    Attached Files Attached Files
    Last edited by Dzekone; 09-12-2023 at 07:51 AM. Reason: Grammar

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    Welcome to the forum.

    Yes, and will be even easier if you have 365 - is it really 2021 that you have?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Data Splitting/Column Divider Automatization

    No, you're right, it is actually 365.

    I will attach sample worksheet right away.

    Thank you for your aid!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    Great - look forward to seeing it.

  5. #5
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Data Splitting/Column Divider Automatization

    If I am correct, the sample worksheet is now accessible for you. Tell me if you need any clarifications to facilitate your work!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,557

    Re: Data Splitting/Column Divider Automatization

    Text colour/bold/italics, etc are not values that can be exploited by a formula. They have no effect on the underlying data, so this can not be done by formula. If there was some logic to this... the first (or last) name was the leader... it's easy. Otherwise, it's a job for VBA.

    Shall I move the thread to the VBA sub-forum... or do you want to have another think about this.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  7. #7
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Data Splitting/Column Divider Automatization

    There may have been a slight misunderstanding here. The colors were to highlight the names, but it is the name of the team leaders that should be recognized and be split into a different column from the rest of the names. In the sample worksheet, I put to highlighted team leader names in different places, because in the current texts I am working with, the names aren't organized, they're just in teams, but there wasn't anything like the first name is the leader. But if you say that I could use a formula by implementing that every first or last name in each ro gets into a separate column, that is totally fine!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    How do you know WHICH of the names is the team leader? How else wre they distinguishable? Is there a list somewhere?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    Set up a leader list somewhere in the workbook:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    N
    1
    Leader
    2
    Anna
    3
    Corey
    4
    Matt
    5
    Tina
    Sheet: Munka1

    Then in C2 copied down:

    =IFERROR(FILTER($N$2:$N$5,ISNUMBER(SEARCH($N$2:$N$5,A2))),"")

    and in B2 copied down:

    =IFERROR(TEXTJOIN(", ",1,TEXTSPLIT(SUBSTITUTE(SUBSTITUTE(A2,C2,";")," ",""),,";",1)),"")
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,557

    Re: Data Splitting/Column Divider Automatization

    Or do the lot in a single calculation (delete all expected results first). If you need more room for new names/leaders, increase the bits in red to whatever is reasonable & future-proof.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Data Splitting/Column Divider Automatization

    Thanks for you both! I am back at work, so I will try these out right away!

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  13. #13
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Data Splitting/Column Divider Automatization

    Is there a way to make this automatic? Like, for it to be in effect on the whole columns and immediately take affect when I enter a new set of names to a new cell?

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    Jusy extend the ranges to accommodate the extra data.

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,557

    Re: Data Splitting/Column Divider Automatization

    If you read the comments at Post 10, you will see that Ihave already told you how to do that. However I would advise against usingwhole columns (1,00,000 ++ rows). Use something sensible, but future-proof.

  16. #16
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Data Splitting/Column Divider Automatization

    Okay, so, I'm trying to implement your formula, but it doesn't show the results. Did I do something incorrectly?
    Test_1.xlsx

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    Try this:

    =IFERROR(FILTER($N$2:$N$5,(ISNUMBER(SEARCH($N$2:$N$5,A2)))*($N$2:$N$5<>"")),"")

    and this:

    =IFERROR(TEXTJOIN(", ",1,TEXTSPLIT(SUBSTITUTE(SUBSTITUTE(A2,C2,"")," ",""),,";",1)),"")
    Attached Files Attached Files

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,557

    Re: Data Splitting/Column Divider Automatization

    The "invisible man" tries once again. Mine works perfectly, without any adjustment.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Data Splitting/Column Divider Automatization

    No, sadly it still isn't showing any results. It highlights the target cells, but it doesn't filld the cells with anything.

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,557

    Re: Data Splitting/Column Divider Automatization

    WHO are you talking to???

    Kindly make it CLEAR.

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    Yes, it does - look at the attachment I shared.

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    2
    Worker; Leader1 Worker Leader1
    Sheet: Munka1

    Look at Glenn's suggestion instead - it's obviously better than mine.

  22. #22
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Data Splitting/Column Divider Automatization

    I was replying to AliGW's suggestion.

  23. #23
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    My suggestion does work in the workbook you provided.

    Try Glenn's instead.

  24. #24
    Registered User
    Join Date
    09-12-2023
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Data Splitting/Column Divider Automatization

    Alright! AliGW, Glenn Kennedy, thank you for both of your work and patience!

  25. #25
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,150

    Re: Data Splitting/Column Divider Automatization

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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: 1
    Last Post: 02-03-2022, 10:59 AM
  2. Excel automatization via Ole object
    By HPM2BP in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2017, 08:13 AM
  3. Slow automatization of the results
    By stegngas in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-09-2015, 01:24 PM
  4. macros for automatization of crosstab
    By psychologist in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-28-2014, 02:48 PM
  5. Replies: 3
    Last Post: 10-19-2005, 05:05 PM
  6. [SOLVED] Check data on colum A and find match on colum b
    By Chris(new user) in forum Excel General
    Replies: 3
    Last Post: 03-20-2005, 01:07 PM
  7. Look up data in colum a and find match in colum b
    By Chris(new user) in forum Excel General
    Replies: 1
    Last Post: 03-19-2005, 05:30 PM

Tags for this Thread

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