Reputation: 3
i have 2 different equally sized tables in excel. one table has job numbers, the other table has hours worked, i want to search how many hours in total were spent on each job
for example
------hours---------------job #
m t w th f s s --- | --- m t w th f s s
8 8 6 8 8 0 0 --- | --- 1 1 2 5 4 0 0
8 8 8 8 7 0 0 --- | --- 2 2 5 4 1 0 0
What would a formula look like to find the sum of hours spent working on job #5? I import this data from google forms and I don't think I can change the format too much.
thanks
Upvotes: 0
Views: 39
Reputation: 11978
You can use SUMPRODUCT too:
=SUMPRODUCT(--($K$2:$Q$3=$I$7);$A$2:$G$3)
Upvotes: 0
Reputation: 71538
You could try a simple SUMIF
:
=SUMIF(I3:O4,B6,A3:G4)
Changing the value of B6 to 5 will yield 16 hours in B7.
Upvotes: 2
Reputation: 166156
Here's a simplified example using a smaller set of data:
Enter formula in C10 and fill down
Upvotes: 1