I have a SUMIF formula below that I would like the value to adjust as I filter the spreadsheet by columns other than what is in the formula. I have tried to use the subtotal function (shown under) but can't seem to get it to work. Is this possible or is there another function that I could use?
=SUMIF($AZ$7:$AZ$1509,">0",$P$7:$P$1509)
=SUBTOTAL(9,SUMIF($AZ$7:$AZ$1509,">0",$P$7:$P$1509))