Here is a formula that I am using in cells:
=SUMPRODUCT(SUMIF(INDIRECT("'"&sheetlist&"'!b15"),"F",INDIRECT("'"&sheetlist&"'!b8")))/SUMPRODUCT(COUNTIF(INDIRECT("'"&sheetlist&"'!b15"),"F"))
One thing that I have noticed was that if there were not yet any B15 cells in which "F" was entered, the formula cell returns an error, #DIV/0, apparently because it is not possible to divide by zero. I am not too concerned with that error, since it will go away once data is entered.
However, to keep the sheet looking neater, how do I alter this formula to not show that error, but rather just leave the cell empty?
=SUMPRODUCT(SUMIF(INDIRECT("'"&sheetlist&"'!b15"),"F",INDIRECT("'"&sheetlist&"'!b8")))/SUMPRODUCT(COUNTIF(INDIRECT("'"&sheetlist&"'!b15"),"F"))
One thing that I have noticed was that if there were not yet any B15 cells in which "F" was entered, the formula cell returns an error, #DIV/0, apparently because it is not possible to divide by zero. I am not too concerned with that error, since it will go away once data is entered.
However, to keep the sheet looking neater, how do I alter this formula to not show that error, but rather just leave the cell empty?