Your brief
A2:A20 contains project codes and B2:B20 contains hours. In E2 I need the hours for the code in D2. My Excel uses English functions and commas.
Possible draft
Fictional example: hours by project
Proposal: =SUMIF($A$2:$A$20,D2,$B$2:$B$20). The ranges stay fixed when copied down; D2 changes. Filter one project and total its hours separately before relying on the result.
