LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default List of Direct and Indirect Reports

I have an Excel 2010 spreadsheet like the one shown in Fig 1 below. At
work I am continually asked for "group" reports which means that the
requestor wants to see everyone in so and so's group. For example, if
I get a request to see everyone in David Drew's group then the
finished report would look like Fig 2. below. A dream macro would be
one that prompts me for a Last name, lets me input a name, then
presto, places a report like Fig 2 on sheet2 of the workbook. Can
anyone help me with the code that might do something like this? Thanks
for entertaining my plight.

Fig 1.

FirstName Lastname EmpID MgrEmpID Email Location
Alex Anderson aaaa noManager Philadelphia
Brooke Brown bbbb aaaa
Philadelphia
Carol Clark cccc aaaa
Philadelphia
David Drew dddd aaaa
Philadelphia
Erin Eisley eeee bbbb
Phoenix
Felicia Ford ffff bbbb
Phoenix
Grace Griffin gggg cccc
Phoenix
Henry Howard hhhh cccc
Phoenix
Ian Iverson iiii dddd
New Orleans
Janice Jones jjjj dddd
New Orleans
Karl King kkkk eeee
New Orleans
Linda Lewis llll eeee
New Orleans
Mike Miller mmmm ffff
Boston
Nancy Nash nnnn ffff
Boston
Olivia Ollie oooo gggg
Boston
Paula Price pppp gggg
Boston
Quentin Quincy qqqq hhhh
Cleveland
Robert Richardson rrrr hhhh
Cleveland
Steve Simmons ssss iiii
Cleveland
Tina Thomas tttt iiii
Cleveland
Ursula Urban uuuu jjjj
Houston
Veronica Valooshka vvvv jjjj
Houston
Walter Watson wwww aaaa
Houston
Xenon Xandruski xxxx wwww
Houston
Yolanda Young yyyy xxxx
Dallas
Zachary Zubov zzzz xxxx
Dallas



Fig 2

FirstName Lastname EmpID MgrEmpID Email Location
Ian Iverson iiii dddd
New Orleans
Steve Simmons ssss iiii
Cleveland
Tina Thomas tttt iiii
Cleveland
Janice Jones jjjj dddd
New Orleans
Ursula Urban uuuu jjjj
Houston
Veronica Valooshka vvvv jjjj
Houston









 
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
Excel Macro to Convert indirect function to direct links Paula[_5_] Excel Programming 0 March 24th 06 10:33 PM
Using Indirect en direct cell references Bart Schouw Excel Discussion (Misc queries) 2 January 13th 05 01:05 PM
Creating Multiple Reports, One by One, for a List of Names webermail[_2_] Excel Programming 0 November 13th 04 10:14 PM
Creating Multiple Reports, One by One, for a List of Names webermail Excel Programming 2 November 7th 04 09:13 PM
direct to certain cells using drop down list courtesio99 Excel Programming 1 December 9th 03 08:52 AM


All times are GMT +1. The time now is 08:41 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"