averageifs not working with or choice. I am trying the below and it is only averaging the PHP - not including the "Residential". It is an array. Can anyone help? Thank you!
=IFERROR(AVERAGEIFS('ur data'!$AU:$AU,'ur data'!$AG:$AG,"Discharged",'ur data'!$C:$C,A94,'ur data'!$F:$F,"<>SELF PAYMENT",'ur data'!$F:$F,"<>Scholarship",'ur data'!$AI:$AI,{"PHP","Residential"},'ur data'!$AW:$AW,"1"),"")
For this to be callable from PHP, you'll almost surely require some sort of PHP binding for the library where averageifs() lives.
https://stackoverflow.com/questions/37320781/phpexcel-and-function-averageif provides a likely solution.