Sorting based on Heirarchy or recursive

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Im totally new to Execl.I have a table which shows which emp is dependent
on his superior.I want to sort it hierarchially.

Example table is like this

EmpId Dependent ID level
A 1
C A 2
D A 2
F C 3
G F 4
H C 3

I need to sort This out so that the output table will be

EmpID DependentID Level

A 1
C A 2
F C 3
G F 4
H C 3
D A 2


Any help will be highly appreciated.Thanks a lot....
 
Ramesh,
What are the rules that achieve the desired sort ?
I don't see an obvious pattern.

NickHK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top