Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Sorting based on Heirarchy or recursive

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....
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Sorting based on Heirarchy or recursive

Ramesh,
What are the rules that achieve the desired sort ?
I don't see an obvious pattern.

NickHK

"Ramesh" wrote in message
...
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....



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recursive Functions...maybe busboy10 Excel Worksheet Functions 0 March 28th 11 09:46 PM
Automatic sorting (giving max and min) based on custom sorting lis Joe Lewis[_2_] Excel Worksheet Functions 4 November 23rd 08 05:12 AM
Is this a recursive problem? davegb Excel Programming 2 August 16th 06 07:53 PM
Recursive Code Myles[_68_] Excel Programming 1 August 13th 06 02:11 PM
Recursive Functio help BigBobbo Excel Worksheet Functions 1 May 10th 06 07:23 PM


All times are GMT +1. The time now is 09:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"