+ Reply to Thread
Results 1 to 6 of 6

Macro for hierarchical Setup?

  1. #1
    Registered User
    Join Date
    07-17-2015
    Location
    Lexington Park, Maryland
    MS-Off Ver
    2013
    Posts
    8

    Macro for hierarchical Setup?

    TEST.xlsx

    Hi all,

    This is my first post, however I have frequented this site for months now and have finally found a problem I can't find an answer to. As the title states I need to turn this:

    1.0.0.0
    YUIH-1 B C
    YUIH-2 A B C
    2.0.0.0
    YUIH-3 A C
    YUIH-4 B

    into this:

    1.0.0.0
    YUIH-1
    B
    C
    YUIH-1
    A
    B
    C
    2.0.0.0
    YUIH-3
    A
    C
    YUIH-4
    B

    Could any of you point me in the right direction?

    Thanks,
    Mike
    Last edited by mwelch1280; 07-17-2015 at 10:12 AM.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Macro for hierarchical Setup?

    Sorry, your layout makes little sense. Could you please upload a workbook?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    07-17-2015
    Location
    Lexington Park, Maryland
    MS-Off Ver
    2013
    Posts
    8

    Re: Macro for hierarchical Setup?

    Sure thing, I updated the original post. I am given data similar to what is in the table and I need to turn it into what is shown below the table.

    Sorry about the confusion.

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Macro for hierarchical Setup?

    IS it for an unknown number of columns?

  5. #5
    Registered User
    Join Date
    07-17-2015
    Location
    Lexington Park, Maryland
    MS-Off Ver
    2013
    Posts
    8

    Re: Macro for hierarchical Setup?

    At this point in time it is for 10 columns. 1 for classification, 1 for method, and 8 verification procedures. So YUIH-1 (and other values in column 2/B) are the method and columns 3/C to 5/E (up to 10/J) signify ways to verify that method.

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Macro for hierarchical Setup?

    This should get it, works for the sample data at least, adjust ranges to suit:
    Please Login or Register  to view this content.
    Requires a reference to Microsoft Scripting Runtime, otherwise this requires no references:
    Please Login or Register  to view this content.

+ 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. Hierarchical Problem
    By inkos in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-27-2015, 11:44 AM
  2. Rearrange Hierarchical Data
    By stusic in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-15-2015, 01:46 PM
  3. Help with Hierarchical Structure in Excel
    By JKtoC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2015, 03:33 PM
  4. [SOLVED] Change parent/child to hierarchical address
    By kaDargo in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 12-12-2014, 12:28 AM
  5. How do I group rows hierarchical (1, 1.1, 1.1.2 ...)
    By jugeh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2013, 05:19 PM
  6. Displaying a hierarchical representation of a dataset
    By Geelong Videos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2011, 02:05 AM
  7. Hierarchical List
    By Paul in forum Excel General
    Replies: 1
    Last Post: 08-02-2006, 09:05 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