+ Reply to Thread
Results 1 to 9 of 9

Convert Indentured List to Table

  1. #1
    Registered User
    Join Date
    04-12-2016
    Location
    Oklahoma, USA
    MS-Off Ver
    Office 2007-2010
    Posts
    30

    Convert Indentured List to Table

    For the attached excel file, is there a macro that could convert the indentured list in column B to the table on the right (E2:I11)? The tiers are determined based on the number of tabs used in the cells in column B. For instance, "apples" should fall under tier 4 and should be associated with "food" (tier 1), "natural" (tier 2), and "fruit" (tier 3).

    Also, the macro (or a separate macro) should convert in the other direction as well (from the table to the indentured list).

    Any thoughts?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Convert Indentured List to Table

    First macro
    Please Login or Register  to view this content.
    Last edited by PCI; 05-12-2016 at 04:08 PM. Reason: Code updated
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    04-12-2016
    Location
    Oklahoma, USA
    MS-Off Ver
    Office 2007-2010
    Posts
    30

    Re: Convert Indentured List to Table

    Thanks, this seems to work for up to 5 indents.

    Is there a way to have the macro work so that it can handle an infinite (or very large) number of indents and show tier 1, tier 2, ... tier n (where n is the largest # of indents used) at the top?

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Convert Indentured List to Table

    See next code
    N.B. for second macro wait tomorrow ...!
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-12-2016
    Location
    Oklahoma, USA
    MS-Off Ver
    Office 2007-2010
    Posts
    30

    Re: Convert Indentured List to Table

    Thanks for all the help. This works great for converting to the table format. I made a small modification with the headers:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Convert Indentured List to Table

    Or just do
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Convert Indentured List to Table

    The second macro
    Please Login or Register  to view this content.
    Last edited by PCI; 05-15-2016 at 09:37 AM. Reason: Code simplified

  8. #8
    Registered User
    Join Date
    04-12-2016
    Location
    Oklahoma, USA
    MS-Off Ver
    Office 2007-2010
    Posts
    30

    Re: Convert Indentured List to Table

    Thanks! This macro does everything that I need. I appreciate the help

  9. #9
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Convert Indentured List to Table

    Good news
    Enjoy Excel

+ 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. Convert Table to List
    By Joanne Lim in forum Excel General
    Replies: 4
    Last Post: 05-12-2014, 02:36 AM
  2. [SOLVED] how do i createa pivot table from indentured data
    By Red fuji in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 01-02-2014, 07:24 PM
  3. Convert a table into a list - VBA
    By mkunkle1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-21-2013, 10:34 AM
  4. Convert indentured parent child table to flat file
    By Liberator in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-12-2013, 11:29 PM
  5. Convert Table to List
    By dereklast in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-04-2012, 01:27 PM
  6. Convert table into list
    By Eager2Learn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2012, 09:34 AM
  7. Convert Table to List
    By amyhryan in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2011, 12:58 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