D
dnamertz
I have a master list of data that is dozens of rows with the following
columns: Emplyee Name, Job Title, Salary, and Department Numbers. I then
have separate worksheets for each department number and on each worksheet, I
want to list the data for each employee who is in that department. I can use
an IF function to list the employees in that department, but that leaves
blank rows for the employees who are NOT in that department. How do I ONLY
list the data for employees in that department without having a bunch of
blank rows in between data.
Here is an example:
My master list of employees looks like this:
EMPLYEE TITLE SALARY DEPT 1 DEPT 2 DEPT 3
Bob S. Mgr $x,xxx 100%
Sue B. Director $x,xxx 100%
Allan K. Clerk $x,xxx 100%
Rob M. Clerk $x,xxx 50% 50%
Kate T. Mgr $x,xxx
100%
Rick. L. Clerk $x,xxx 100%
If I go into the worksheet for Dept 1 and use an IF function to include only
employee data for those on the master list who have over 0% in the "DEPT 1"
column, and copy that formula down, I get the following result including
blank rows between data:
Bob S. Mgr $x,xxx
Allan K. Clerk $x,xxx
Rick. L. Clerk $x,xxx
Notice how it lists emplyees in dept 1, but leaves blank rows for those not
in dpet 1. I would prefer it to list the data for these employees without
leaving blank rows for employees who don't qualify, so it should look like
this for dept 1:
Bob S. Mgr $x,xxx
Allan K. Clerk $x,xxx
Rick. L. Clerk $x,xxx
Can this be done?
columns: Emplyee Name, Job Title, Salary, and Department Numbers. I then
have separate worksheets for each department number and on each worksheet, I
want to list the data for each employee who is in that department. I can use
an IF function to list the employees in that department, but that leaves
blank rows for the employees who are NOT in that department. How do I ONLY
list the data for employees in that department without having a bunch of
blank rows in between data.
Here is an example:
My master list of employees looks like this:
EMPLYEE TITLE SALARY DEPT 1 DEPT 2 DEPT 3
Bob S. Mgr $x,xxx 100%
Sue B. Director $x,xxx 100%
Allan K. Clerk $x,xxx 100%
Rob M. Clerk $x,xxx 50% 50%
Kate T. Mgr $x,xxx
100%
Rick. L. Clerk $x,xxx 100%
If I go into the worksheet for Dept 1 and use an IF function to include only
employee data for those on the master list who have over 0% in the "DEPT 1"
column, and copy that formula down, I get the following result including
blank rows between data:
Bob S. Mgr $x,xxx
Allan K. Clerk $x,xxx
Rick. L. Clerk $x,xxx
Notice how it lists emplyees in dept 1, but leaves blank rows for those not
in dpet 1. I would prefer it to list the data for these employees without
leaving blank rows for employees who don't qualify, so it should look like
this for dept 1:
Bob S. Mgr $x,xxx
Allan K. Clerk $x,xxx
Rick. L. Clerk $x,xxx
Can this be done?