Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
I have Excel 2003. I have list of employees and manager in sheet #1. For example I have list of 20 employees in column A and list of managers in column B. I have only 5 managers, mean that I will see their names more than once in column B. In sheet #2 I have the same 5 managers, but this time as headers (columns A-E). How the names of the employees from sheet #1 can copy themselves under the manager that they belong to in sheet #2? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
Using defined named ranges as follows: Emp: refers to Sheet1A$2:A$21 Man: refers to Sheet1B$2:B$21 With your 5 manager names on Sheet2 in A1:E1, enter this array formula** in Sheet2 A2: =IF(ROWS(A$2:A2)<=COUNTIF(Man,A$1),INDEX(Emp,SMALL (IF(Man=A$1,ROW(Emp)),ROWS(A$2:A2))-MIN(ROW(Emp))+1),"") Copy across to E2. Then select A2:E2 and copy down to row 21. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "NirOrtal" wrote in message ... Hi I have Excel 2003. I have list of employees and manager in sheet #1. For example I have list of 20 employees in column A and list of managers in column B. I have only 5 managers, mean that I will see their names more than once in column B. In sheet #2 I have the same 5 managers, but this time as headers (columns A-E). How the names of the employees from sheet #1 can copy themselves under the manager that they belong to in sheet #2? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
THANX!!!!!!!
"T. Valko" wrote: Try this: Using defined named ranges as follows: Emp: refers to Sheet1A$2:A$21 Man: refers to Sheet1B$2:B$21 With your 5 manager names on Sheet2 in A1:E1, enter this array formula** in Sheet2 A2: =IF(ROWS(A$2:A2)<=COUNTIF(Man,A$1),INDEX(Emp,SMALL (IF(Man=A$1,ROW(Emp)),ROWS(A$2:A2))-MIN(ROW(Emp))+1),"") Copy across to E2. Then select A2:E2 and copy down to row 21. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "NirOrtal" wrote in message ... Hi I have Excel 2003. I have list of employees and manager in sheet #1. For example I have list of 20 employees in column A and list of managers in column B. I have only 5 managers, mean that I will see their names more than once in column B. In sheet #2 I have the same 5 managers, but this time as headers (columns A-E). How the names of the employees from sheet #1 can copy themselves under the manager that they belong to in sheet #2? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You're welcome!
-- Biff Microsoft Excel MVP "NirOrtal" wrote in message ... THANX!!!!!!! "T. Valko" wrote: Try this: Using defined named ranges as follows: Emp: refers to Sheet1A$2:A$21 Man: refers to Sheet1B$2:B$21 With your 5 manager names on Sheet2 in A1:E1, enter this array formula** in Sheet2 A2: =IF(ROWS(A$2:A2)<=COUNTIF(Man,A$1),INDEX(Emp,SMALL (IF(Man=A$1,ROW(Emp)),ROWS(A$2:A2))-MIN(ROW(Emp))+1),"") Copy across to E2. Then select A2:E2 and copy down to row 21. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "NirOrtal" wrote in message ... Hi I have Excel 2003. I have list of employees and manager in sheet #1. For example I have list of 20 employees in column A and list of managers in column B. I have only 5 managers, mean that I will see their names more than once in column B. In sheet #2 I have the same 5 managers, but this time as headers (columns A-E). How the names of the employees from sheet #1 can copy themselves under the manager that they belong to in sheet #2? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Scheduling Employees | Excel Discussion (Misc queries) | |||
Employees | Excel Worksheet Functions | |||
I need an autosum for each box where employees use x's of 1's | Excel Worksheet Functions | |||
How do I set up a weekly schedule for my managers (vacation etc.) | Setting up and Configuration of Excel | |||
Ranking employees | New Users to Excel |