Forum Discussion

Claire Buchtmann's avatar
Claire Buchtmann
Copper Contributor
May 16, 2018

Need help with an Excel roster document where I'm trying to journal hours

Hi - I'm trying to write a formula to add the number of hours across a month that somebody might work in a roster.  In that month they might work in 3 different areas, so I need to have the formula along the lines of 

COUNTIF the conditional formatting = "TRN" then add the hours that are associated with "TRN".  So, TRN appears on Cell D8, D11 and D15 but the hours worked there appear on D9, D12 and D16

 

Then I also need to put another formula in that says that if Cell B3 equals TRN then Cell F3 equals a specific Cost Centre number.

 

Any assistance would be greatly appreciated.  I hope that it makes sense.

Thanks

Claire

  • Matt Mickle's avatar
    Matt Mickle
    May 17, 2018

    Claire-

     

    Please try this formula.  The data is a little different then the initial file you provided which alters the formula a tad bit.  THe important thing is that the Employee # matches in both sheets in the exact same format / cells. :

     

     

     

    =SUMPRODUCT(('[Semester 2 Formula Help.xlsx]Class Support - South Region'!$B$6:$B$21=LOOKUP("Z",A$4:A4))*('[Semester 2 Formula Help.xlsx]Class Support - South Region'!$E$5:$FA$20=B3),'[Semester 2 Formula Help.xlsx]Class Support - South Region'!$E$6:$FA$21)

     

    Hope this helps!

     

Resources