is there a function that will does the same thing as sumif and countif except it averages the total amounts