• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Variation of Sumif?

Mike Rose

New Member
Trying to create a spreadsheet for my crews. Top of Column A has my crew names, B has which crews are assigned to particular sites (Column C), and D has how many hours were spent on this site.

Problem: Want to create a chart (see bottom part) which shows how many hours were worked by each crew. It would be a simple sumif formula (I only know how to do exact value) if crews did not double up on sites (See lines 13-15). What (and how) do I set up a formula that captures the hours for a crew when there are multiple crews on that site?
 

Attachments

I don't understand to which crew names should be assigned hours worked for crews on site in cells B13:B15
 
I don't understand to which crew names should be assigned hours worked for crews on site in cells B13:B15
There are only ten crews in this example - they are listed in the first column.

There are more sites than crews. Some of the sites are being done by multiple crews.

I need a formula that tallys the hours whenever a crew's number is in that column.

Example: Cell B21 should tally any hours for crew 1 that works on any of the sites above. In this case, there are two. B3 & B13.
 
Last edited:
Back
Top