Hi XLent
Thanks for this suggestion do you mean like this?

=SUBTOTAL(2,[Dates] ('2021'!$AD$15:$AD$493,Dates,">="&F$2,Dates,"<"&EDATE(F$2,1),WalletType, "="&$C4)