Excel-VBA/App Function: Derive Hierarchy Level from Parent/Child Data -


i have child in column , parent in column b. need derive hierarchy level sort them. data extract comes unsorted , i'm trying figure out way achieve through vba or excel app function.

child       parent 00004467    00001083 00019886    00014581 00011572    00001083 00002353    00011572 00014581    00001083 00003935    00004467 00001083    00001437 00019887    00014581 00001888    00004467 00002606    00011572 00004289    00004467 00051941    00014581 00008847    00011572 

expected output

child       parent      hierarchy 00001083    00001437    1 00004467    00001083    1.1 00011572    00001083    1.2 00014581    00001083    1.3 00003935    00004467    1.1.1 00001888    00004467    1.1.2 00004289    00004467    1.1.3 00002353    00011572    1.2.1 00002606    00011572    1.2.2 00008847    00011572    1.2.3 00019886    00014581    1.3.1 00019887    00014581    1.3.2 00051941    00014581    1.3.3 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -