A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Another option:
Enter below Formula in cell I2 and copy down:
=IF(COUNTIFS(A$2:A$50,F2,B$2:B$50,H2,C$2:C$50,G2),SUMIFS(D$2:D$50,A$2:A$50,F2,C$2:C$50,G2),"N/A")
This checks columns A / B / C for any occurrence of ALL F2 H2 / G2 values respectively, and if yes then returns the SUM from column D of all activity codes for F2 & G2.
Regards,
Amit Tandon