+ Reply to Thread
Results 1 to 17 of 17

Split indented Hierarchy list into columns

  1. #1
    Registered User
    Join Date
    12-11-2019
    Location
    Israel
    MS-Off Ver
    O365
    Posts
    4

    Split indented Hierarchy list into columns

    I have a list in a single column that has an indented hierarchy structure and I would like to split it to columns. each level have another indent.
    the problem is that the indent is for display only and not regular space in the cell.
    power query see it without the indents.
    i will appreciate your help with that.
    thanks,

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Split indented Hierarchy list into columns

    Hi
    please read the yellow banner...

  3. #3
    Registered User
    Join Date
    12-11-2019
    Location
    Israel
    MS-Off Ver
    O365
    Posts
    4

    Re: Split indented Hierarchy list into columns

    now with the attached file.

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

    Re: Split indented Hierarchy list into columns

    Are the entries in column B present in your real data, or are they just there to help explain?
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    12-11-2019
    Location
    Israel
    MS-Off Ver
    O365
    Posts
    4

    Re: Split indented Hierarchy list into columns

    column B is just to help explain.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Split indented Hierarchy list into columns

    Try this, Output will start in F11

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Split indented Hierarchy list into columns

    VBA, if you like.
    Please Login or Register  to view this content.

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

    Re: Split indented Hierarchy list into columns

    Hi Jindon/Andy Pope, I don't think that there is an alternative!! I've seen you do something similar before. Way beyond my abilities!!!

  9. #9
    Registered User
    Join Date
    12-11-2019
    Location
    Israel
    MS-Off Ver
    O365
    Posts
    4

    Re: Split indented Hierarchy list into columns

    WOW!!! this is perfect!!
    You are the best!
    thank you

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Split indented Hierarchy list into columns

    Quote Originally Posted by Glenn Kennedy View Post
    Hi Jindon/Andy Pope, I don't think that there is an alternative!! I've seen you do something similar before. Way beyond my abilities!!!
    I thought so.
    Normally I don't post here, but this time...

  11. #11
    Registered User
    Join Date
    12-16-2019
    Location
    Mumbai, India
    MS-Off Ver
    2013
    Posts
    1

    Re: Split indented Hierarchy list into columns

    Awesome..!
    Thanks a million..!!
    Further, request you to please help me with the following: (sample excel sheet attached)

    Coulmn A : Indented texts upto 3 levels
    Column B, C, D : Texts corresponding to Indent level 0
    Column E, F, G : Digits/ blank cells/ (N/A)

    Pls help me out in separating the indented texts in different cells and retaining corresponding data in other columns.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,556

    Re: Split indented Hierarchy list into columns

    Administrative Note:

    Welcome to the forum niraj.shukla.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  13. #13
    Registered User
    Join Date
    04-15-2019
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    5

    Red face Re: Split indented Hierarchy list into columns

    Hi Jindon,
    I looked at the file you provided for the other user, but it didn't work when I copied and pasted my data into the file.

    I think this is because I have more columns with other data besides the indented file list.

    Would it be possible to recreate the VBA script specific to my file/data? The full file has more than 80,000 rows!

    I don't know anything about VBAs or macros so appreciate the help in advance.

    Thank you!
    Attached Files Attached Files

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Split indented Hierarchy list into columns

    boyerusmc,

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

    And when you open a new thread, posting workbook with data and your desired result would help very much.

  15. #15
    Registered User
    Join Date
    04-15-2019
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    5

    Re: Split indented Hierarchy list into columns

    Understood, thank you Jindon. It's not exactly clear how to start a new thread - do I need to buy points? The link you gave me does not give instructions to post a new thread.

  16. #16
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Split indented Hierarchy list into columns

    Click Excel General
    Then you will see [+Post New Thread]

  17. #17
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Split indented Hierarchy list into columns

    Hi boyerusmc,

    Take a look at the FAQ

    https://www.excelforum.com/faq.php?f..._read_and_post
    HTH
    Regards, Jeff

+ 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 list of four columns
    By KingTamo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2018, 07:17 PM
  2. Convert indented heirarchy list to columns
    By gijolpa in forum Excel General
    Replies: 11
    Last Post: 04-18-2018, 09:56 AM
  3. [SOLVED] UDF to split list of names to columns
    By meabrams in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-20-2016, 04:29 AM
  4. [SOLVED] Split A List my Space in adjacent Columns
    By mtilbury in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-28-2015, 10:15 AM
  5. Replies: 1
    Last Post: 02-05-2015, 06:31 AM
  6. Split 2 column list into 4 columns
    By quasifun in forum Excel General
    Replies: 2
    Last Post: 03-04-2013, 01:24 PM
  7. Hierarchy Indented List, Table, Column and Value - need to create uniqueid column
    By mcolli01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 01:09 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