I need to Sum a column from a reference sheet and display the number in my primary sheet

I am attempting to build a column formula that generates the sum of hours for a given phase (task). This is an interaction of our Main project grid and the Timesheet grid (it is one of the advanced reports Resource management offers) from Resource Management.

Our main project should display the number of hours incurred for that specific phase in its own row. Ie Task 2 should be a sum of the incurred hours column that have with "Task 2" in the phase name. Same for Task 3 and so on.

Main Project Sheet:

Here are some of the formulas I have tried but haven't quite worked for me:

  1. =COUNTIF({Incurred Hours}, {Phase Name} = [Phase Name]@row ) โ€“ This just gave me 0 (which isnโ€™t correct based on my sum of the phaseโ€™s incurred hours)
image.png

2. I also did this formula based around IF: =IF([Budget:]@row > 0, SUMIF({Incurred Hours}, {Phase Name} = [Phase Name]@row ), "") - No error message but this also gave me 0 (which is incorrect)

image.png

3. I think I am using the wrong formula syntax but here is the most recent formula I did that gave me "unparsable" as the return: =SUMIFS({TS WIP Incurred Hours}, {TS WIP Project Name} HAS([Task Name]1), {Timesheet for WIP Budget - Hours Data Range 2} =[Phase Name]@row )

image.png

Finally I want this to be a formula that works no matter the project so that I can set a template that I can reuse for future projects without re-entering the formula.

I am missing something, but I am not sure what. Please help! Thanks

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!