+ Reply to Thread
Results 1 to 6 of 6

How to create ID hierarchy from Excel column?

  1. #1
    Registered User
    Join Date
    11-24-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    3

    How to create ID hierarchy from Excel column?

    Okay friends, I'm stuck.

    I have an Excel-sheet that contains information like below:

    Title ID
    X 001 001
    Y 001 001 001
    Z 001 001 001 001
    A 001 001 002
    B 001 001 003
    C 001 001 003 001
    D 001 001 003 002
    E 001 002
    F 001 002 001

    The ID indicates that the titles are in a hierarchy, so, for instance, title X would be a top level title, whereas title Y, A, and B, are direct children to parent title X. Title Z is a child to parent title Y, and so on and so forth.

    The Excel-sheet contains about 1 400 rows of information like this.

    Now, I want to import this Excel-sheet into our JIRA where the ID is going to be used in issue linking (i.e. Y, A, and B "relates to" X; Z "relates to" Y, etc.) However, JIRA will only accept the issue linking if the information is presented like this:

    Title ID issue link
    X 001 001
    Y 001 001 001 001 001
    Z 001 001 001 001 001 001 001
    A 001 001 002 001 001
    B 001 001 003 001 001
    C 001 001 003 001 001 001 003
    D 001 001 003 002 001 001 003
    E 001 002
    F 001 002 001 001 002

    So my question is, how does one do the above in Excel? Is there any way to convert text into columns and then combine them somehow into a format like the above? I have, as I said, 1400 rows of this stuff, but I don't mind some manual work.

    I have attached an example sheet of how I would like the information to be presented.

    Formulas or VBA welcome!
    Attached Files Attached Files
    Last edited by popon; 11-24-2020 at 12:31 PM.

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: How to create ID hierarchy from Excel column?

    The attached should help you do this based on your example data.

    You need to copy your Sort ID list from your real file into the tables as per instructions on the file.
    Then you can copy the result back into your file (as values so you don't mess up any original formatting).

    Hopefully instructions make sense.
    Attached Files Attached Files
    Say thanks, click *

  3. #3
    Registered User
    Join Date
    11-24-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    3

    Re: How to create ID hierarchy from Excel column?

    Ah crap, I just edited my original post since I realized I need to have the reverse hierarchy listing (i.e. I need to have the parent IDs beside the child IDs, and not the child IDs beside the parent IDs. Change can be seen in my original post in the table at the bottom). Thank you for the Excel-file though, you must have put a lot of effort into it!

    Is there any way to easily reflect my change to the Excel-file you made?

  4. #4
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: How to create ID hierarchy from Excel column?

    The first table on my file will give you the parent ID (although the top level ones get given a false parent ID, 001 001 is given 001).

    Or you can just pop in the below formula into C2 and copy down.

    =IF(LEN(B2)>7,LEFT(LEN(B2)-4),"")

  5. #5
    Registered User
    Join Date
    11-24-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    3

    Re: How to create ID hierarchy from Excel column?

    I'm an idiot, sorry
    All good now, thank you so much for your help!

  6. #6
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570
    Quote Originally Posted by popon View Post
    I'm an idiot, sorry
    All good now, thank you so much for your help!

    No problem, don't forget to mark this thread as solved if you're happy it's resolved.

+ 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. Using Excel to create a hierarchy SMart Art
    By L.forster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2019, 02:47 AM
  2. Create hierarchy using VBA objects
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-11-2018, 12:59 AM
  3. How do I convert column hierarchy to flat file hierarchy
    By tbucki1 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 09-21-2016, 09:33 PM
  4. how to create (and use) an hierarchy
    By apolloni in forum Excel General
    Replies: 8
    Last Post: 04-09-2015, 07:56 AM
  5. Create 5 column hierarchy off of one column extract
    By phil3061 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2013, 10:26 AM
  6. 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
  7. Create Hierarchy in Excel
    By rajeshkamath27 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-19-2008, 11:44 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