Hi there,
I have a sheet with activities send by multiple employees. It looks like this:
.....A...............B..........C
1 activity_A....client_A...7
2 activity_B....client_A...1
6 activity_A....client_A....4
7 activity_A....client_D....4
What I need is to sum the hours that matches "activity_A" in column A and "client_A" in column B. In this case row 1 and 6 are matches, so the sum is 7+4=11 hours.
Do I need SUMPRODUCT or VLOOKUP or a combination? I want the formula to be lean, because I need lots of them...![]()
Last edited by Hond70; 10-11-2011 at 06:00 PM.
If you are using Excel 2007, this should suffice:
If you are using excel 2003, use sumproduct. You dont need vlookup.=SUMIFS(C1:C4,A1:A4,A1,B1:B4,B1)
SUMPRODUCT would probably be the way to go, but if there are lots of them then you might find it a bit slow.
Assuming your data is in rows 1:100 then the SUMPRODCT would be =SUMPRODUCT(C1:C100,--(A1:A100="activity_A"),--(B1:B100="client_A"))
Edited to add: Dur, slow brain day, SUMIFS is a better solution if you're using Excel 2007 or later.
If you are using Excel 2003, you can use SUMPRODUCT. If you're using Excel 2007 or above you can use SUMIFS.
Regards
Last edited by TMShucks; 10-10-2011 at 11:25 AM.
Thanks to all. It had to be Excel 2003 proof, so the sumproduct did the trick!
Great work![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks