Here is my best guess at your question:
This formula in D4:
copied down, then select the D14:D19 range and copy to all the other red ranges.
This formula looks at all the upper blue cells in the top 2 tables of the source sheet, and the next wider blue cells below and matches them to the project headers in Row 2 of Sheet2 and the Activities in column A of Sheet2, respectively, then sums up the matches of the Actual Hours (either under the peach cells in upper table or next to peach cells in second table).
Bookmarks