Avatar of Euro5
Euro5
Flag for United States of America asked on

Averageifs with a multiple choice option

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"),"")

Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Rob Henson

8/22/2022 - Mon
David Favor

averageifs() appears to be some Microsoft office function.

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.
ASKER CERTIFIED SOLUTION
byundt

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Rob Henson

Usually all the conditions in the IFS functions are using an AND condition.

If you want multiple conditions from one column you have a couple of options that I know of:

1) Use multiple <> conditions as you have done with column F to exclude "Self Payment" and "Scholarship"
2) Use multiple SUMIFS with different sets of conditions, changing the condition from the specific column in each.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23