I need to convert:

Formula: copy to clipboard
=SUMIFS($D:$D;$A:$A;"="&$G2;$B:$B;$H2;$C:$C;"="&$N$1)  


to VBA code and find a way to loop it so I can fill column K (based on the length of column G) of the example with the correct sums.

sumifexample.xlsx