Apologies for the basic question but how do I make a SUMIFS formula dynamic so it will allow for new rows being inserted throughout the sheet?

=SUMIFS($AJ$2:$AJ$2532,$G$2:$G$2532,"Item1",$I$2:$I$2532,"Item2")
Many thanks