+ Reply to Thread
Results 1 to 3 of 3

Parent/child relationship visual help

  1. #1
    Registered User
    Join Date
    11-10-2014
    Location
    moab, utah
    MS-Off Ver
    2013
    Posts
    1

    Parent/child relationship visual help

    I am running into issues trying to get a data set in the preferred visual format for the folks I am supporting. I've messed around with just normal sorting, pivot tables, and creating a hierarchy in power pivot. My VBA skills are at the level of googling code for what i am attempting to do but I didn't come up with anything that worked for this case.

    Below is some dummy data I threw together. The actual data has dozens more columns with data I would have to the right of the desired output. It's all coming from a query with 25k rows and items get added & dropping off throughout the day.

    It could go a few layers deeper than this but for a visual, 4 felt plenty. Ultimately I am trying to take the data in columns A:F and have it generate the end result in column I:J which I did manually here for illustration. The helper column is just to get the right level of indentation, The color coding was just a visual aid for myself to create the dummy data.

    I feel like this is a simple thing and I am just missing something stupid. Any help is greatly appreciated!

    example data.xlsb

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Parent/child relationship visual help

    I understand the indentations and the job description. What is the logic to get the order of the letters in column I?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Parent/child relationship visual help

    Quote Originally Posted by mrguardi View Post
    The actual data has dozens more columns with data I would have to the right of the desired output
    If there was only 4 columns, we can hardcored columns number into the code.
    But, with more columns in actual file, I am not sure its correct resut
    Could you post the actual file with actual level of columns?
    Quang PT

+ 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. parent-child relationship in a tree diagram using VBA
    By ruiru in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-08-2023, 11:59 AM
  2. [SOLVED] Vlook UP formula for child parent relationship
    By AyshaMohammad in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-03-2022, 11:36 AM
  3. [SOLVED] Parent Child relationship issue: Get parent ID for child
    By masterl1983 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-28-2018, 07:35 AM
  4. [SOLVED] Parent child relationships(working out parent item) for each item
    By grphillips in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-21-2013, 05:58 AM
  5. Parent Child Relationship
    By Automation Guru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2013, 04:48 AM
  6. Replies: 4
    Last Post: 08-30-2009, 03:43 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