How can I calculate total hours by project but not repeat the formula in every row that matches?

Options

Hello, I found a question from 2021 that had been answered with a formula, so I gave that a try for my sheet. It works, but I'm getting the sum on every row that has a matching project ID. How can I just get the sum once for each project so that I can run a report and show these totals?

This is the formulas that I used based on the older thread:

=IFERROR(IF([Project Hours]@row = 0, "", SUMIFS([Project Hours]:[Project Hours], [Project ID]:[Project ID], [Project ID]@row)), "")

There's over 4,000 entries in this sheet, so I don't want to have to manually note each project's total hours. I'm sure there is a solution, I just don't know what it is!

Thanks for your help! Colleen

Best Answer

Answers