randolphoralph
Board Regular
- Joined
- Dec 24, 2008
- Messages
- 126
I am trying to use the formula below to return an average. The formula is returning #DIV/O! error instead of the average. I have checked the data in 'Data'!$K$2:$K$57592 and the formula does not divide by zero.
When I change the formula to not be equal to A4-A15 the formula works and returns the correct average.
I am not sure what the issue is. Can anyone provide some insight?
Code:
=[FONT=Times New Roman]AVERAGE(IF(('Data'!$E$2:$E$57592=$A4)*('Data'!$E$2:$E$57592=$A5)*('Data'!$E$2:$E$57592=$A6)*('Data'!$E$2:$E$57592=$A7)*('Data'!$E$2:$E$57592=$A8)*('Data'!$E$2:$E$57592=$A9)*('Data'!$E$2:$E$57592=$A10)*('Data'!$E$2:$E$57592=$A11)*('Data'!$E$2:$E$57592=$A12)*('Data'!$E$2:$E$57592=$A13)*('Data'!$E$2:$E$57592=$A14)*('Data'!$E$2:$E$57592=$A15)*('Data'!$I$2:$I$57592=BD$1)*('Data'!$K$2:$K$57592<>"")*('Data'!$A$2:$A$57592="Yes"),'Data'!$K$2:$K$57592))[/FONT]
When I change the formula to not be equal to A4-A15 the formula works and returns the correct average.
Code:
=[FONT=Times New Roman]AVERAGE(IF(('Data'!$E$2:$E$57592[COLOR=red]<>[/COLOR]$A4)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A5)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A6)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A7)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A8)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A9)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A10)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A11)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A12)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A13)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A14)*('Data'!$E$2:$E$57592[COLOR=#ff0000]<>[/COLOR]$A15)*('Data'!$I$2:$I$57592=BD$1)*('Data'!$K$2:$K$57592<>"")*('Data'!$A$2:$A$57592="Yes"),'Data'!$K$2:$K$57592))[/FONT]
I am not sure what the issue is. Can anyone provide some insight?