The issue is purely that the answer is zero.
What the formula is doing is summing the values in AB for all rows with the same value as AE5 in column I and the same value as AF4 in column J. Then dividing that number by the number of rows those two conditions are met on. Although there are rows that meet those criteria, the sum of AB for those row is zero and you cannot divide that.
Amend the formula to:
This will simply show a zero in these scenarios, rather than the DIV error.
Or swap ,0) at the end for ,"") if you'd rather the cell stayed blank.
BSB
Bookmarks