Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Sumif with multiple lookup values

Hi,

I have a spreadsheet where I enter hours worked for employees. Some
employees work more than one department. After entering the hours and
departments, I have a pivot table that summarizes everything by (1) employee,
and (2) department. This works well.

Next, I have a data file that I use to import the info into ADP's PayExpert
payroll software. The data file uses sumif formulas to summarize each
employee's hours. It sums hours based on employee number. The problem is, I
need to figure out how to summarize the hours for the multiple department
employees by each department for each employee. For example, below is what
it's doing now:

Employee Temp. Dept. Hours O/T
Hours Mileage
100 23
$12.00
101 40
3.5 $0
102 35
$0
104 32
$9.60

In the above example, assuming employees 100 and 104 worked multiple
departments, what I need to do is have the hours and mileage summarized for
each department worked. Example:

Employee Temp. Dept. Hours O/T
Hours Mileage
100 15
$6.00
100 412623 8
$6.00
101 40
3.5 $0
102 35
$0
104 16
$2.80
104 416206 8
$2.80
104 416225 8
$4.00

Some other things to consider: Not all multiple department employees work
the same departments each week. There are more than 50 departments, and
almost every employee can possibly work at least 8-10 of 30 departments each
week.

Is this possible?

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Sumif with multiple lookup values

How would you know that 23 breaks down to 15 for one, 8 for another, and
which they are?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"jcliquidtension" wrote in
message ...
Hi,

I have a spreadsheet where I enter hours worked for employees. Some
employees work more than one department. After entering the hours and
departments, I have a pivot table that summarizes everything by (1)
employee,
and (2) department. This works well.

Next, I have a data file that I use to import the info into ADP's
PayExpert
payroll software. The data file uses sumif formulas to summarize each
employee's hours. It sums hours based on employee number. The problem
is, I
need to figure out how to summarize the hours for the multiple department
employees by each department for each employee. For example, below is
what
it's doing now:

Employee Temp. Dept. Hours O/T
Hours Mileage
100 23
$12.00
101 40
3.5 $0
102 35
$0
104 32
$9.60

In the above example, assuming employees 100 and 104 worked multiple
departments, what I need to do is have the hours and mileage summarized
for
each department worked. Example:

Employee Temp. Dept. Hours O/T
Hours Mileage
100 15
$6.00
100 412623 8
$6.00
101 40
3.5 $0
102 35
$0
104 16
$2.80
104 416206 8
$2.80
104 416225 8
$4.00

Some other things to consider: Not all multiple department employees work
the same departments each week. There are more than 50 departments, and
almost every employee can possibly work at least 8-10 of 30 departments
each
week.

Is this possible?

Thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Sumif with multiple lookup values

Hi Bob,

Thanks for replying. To answer your question, I input the hours from
handwritten timesheets in the following format:

Date Emp # Dept. Time In Time Out
3-23-07 100 412663 8:00 a.m. 10:00 a.m.
3-23-07 100 412623 10:00 a.m. 11:30 a.m.
and so on. The spreadsheet automatically calculates the hours, and the
mileage (if applicable) for each department. These totals are then displayed
in a pivot table for my own records. The data file (CSV) that I create,
however, has to be in a specific format to be imported into ADP's PayExpert.
So, where now I have sumif formulas that total the hours and mileage by
employee numbers, I need to split it by employee numbers, and within each
employee, the departments worked.

Thanks,
Jason

"Bob Phillips" wrote:

How would you know that 23 breaks down to 15 for one, 8 for another, and
which they are?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"jcliquidtension" wrote in
message ...
Hi,

I have a spreadsheet where I enter hours worked for employees. Some
employees work more than one department. After entering the hours and
departments, I have a pivot table that summarizes everything by (1)
employee,
and (2) department. This works well.

Next, I have a data file that I use to import the info into ADP's
PayExpert
payroll software. The data file uses sumif formulas to summarize each
employee's hours. It sums hours based on employee number. The problem
is, I
need to figure out how to summarize the hours for the multiple department
employees by each department for each employee. For example, below is
what
it's doing now:

Employee Temp. Dept. Hours O/T
Hours Mileage
100 23
$12.00
101 40
3.5 $0
102 35
$0
104 32
$9.60

In the above example, assuming employees 100 and 104 worked multiple
departments, what I need to do is have the hours and mileage summarized
for
each department worked. Example:

Employee Temp. Dept. Hours O/T
Hours Mileage
100 15
$6.00
100 412623 8
$6.00
101 40
3.5 $0
102 35
$0
104 16
$2.80
104 416206 8
$2.80
104 416225 8
$4.00

Some other things to consider: Not all multiple department employees work
the same departments each week. There are more than 50 departments, and
almost every employee can possibly work at least 8-10 of 30 departments
each
week.

Is this possible?

Thanks in advance!




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
Multiple lookup values and adding multiple rates across together ssolomon Excel Worksheet Functions 5 November 16th 07 09:02 PM
Lookup on multiple values The Rook[_2_] Excel Discussion (Misc queries) 1 March 2nd 07 03:37 PM
Lookup in Multiple Columns, Return Multiple Values andy62 Excel Worksheet Functions 3 July 6th 06 02:36 AM
Lookup multiple values on multiple sheets RealGomer Excel Programming 1 June 7th 05 05:41 PM
Using SumIF formulas with multiple lookup values Chris Freeman Excel Worksheet Functions 3 April 13th 05 01:40 AM


All times are GMT +1. The time now is 11:23 AM.

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

About Us

"It's about Microsoft Excel"