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