Hi,
I was wondering how I should modify my code so that it will reliably calculate average values without throwing me DIV/0 errors for data that is all blanks or returning a blank to me because my formula isn't written very well
=AVERAGEIFS(Sheet1!$H:$H,Sheet1!$AS:$AS,B$1,Sheet1!$D:$D,$A2),"")
This formula will give me the DIV/0 error
=IF(COUNTIFS(Sheet1!$AS:$AS,B$1,Sheet1!$D:$D,$A2,Sheet1!$H:$H,NOT("")),AVERAGEIFS(Sheet1!$H:$H,Sheet1!$AS:$AS,B$1,Sheet1!$D:$D,$A2),"")
This formula gives me only blanks
The range of values in Sheet1!H:H is from 0-10 and blanks. The formula needs to reliably exclude blanks completely.
Also, can I express my formula in any simpler shape or form?
Thanks
Bookmarks