Adding Cells to a grand total

G

Gary Paris

I have three employees that can work between 3 and 5 days per week. The
data looks like this:
Hours are recorded for the day and the weekly pay is calculated on the total
line.

Date Employee1 Employee2 Employee3
1/1/05 8 8 8
1/2/05 8 8 8
1/3/05 8 8 8
Total 600.00 500.00 450.00
1/8/05 8 8 8
1/9/05 8 8 8
Total 325.00 305.00 312.00
1/10/05 8 8 8
1/11/05 8 8 8
1/13/05 8 8 8
1/14/05 8 8 8
1/15/05 8 8 8
Total 600.00 500.00 450.00

Is there a way to total all the total dollars for each employee
programatically? On the total lines for each employee is a =SUM formula to
calculate the dollar amount. Since there are about a years worth of data
this would help lots.

Thanks,

Gary
 
T

Trevor Shuttleworth

Gary

have a look at SUMIF

=SUMIF(A2:Axxx,"Total",B2,Bxxx)

Or if the totals are in a dufferent column, you could just use:

=SUMIF(A:A,"Total",B,B)

Regards

Trevor
 
G

Gary Paris

Thanks... Worked like a charm!


Trevor Shuttleworth said:
Gary

have a look at SUMIF

=SUMIF(A2:Axxx,"Total",B2,Bxxx)

Or if the totals are in a dufferent column, you could just use:

=SUMIF(A:A,"Total",B,B)

Regards

Trevor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top