Using SUMIFS together with AVG returning #UNPARSEABLE
Hello,
I am getting the #UNPARSEABLE error in my formula to sum totals between a date range and return the average of the total sum. The formula seems to work without the AVG syntax.
Working formula:
=SUMIFS({POTotal}, {OrderDate}, >=DATE(2020, 5, 1), {OrderDate}, <=DATE(2020, 12, 31))
#UNPARSEABLE formula:
=SUMIFS(AVG({POTotal}, {OrderDate}, >=DATE(2020, 5, 1), {OrderDate}, <=DATE(2020, 12, 31))))
Thank you,
Best Answer

Hi Leandre!
I would personally use AVG(COLLECT()) in this case. When you are using SUMIFS(AVG()) I think it is not working due to formula saying sum the average, with would just return the averaged amount (you would only be summing/adding one value, so it will return the value itself).
AVG(COLLECT()) will let you define multiple criteria, collect the values, and then average the values collected. This may help you better achieve what you are looking to do.
Answers

Hi Leandre!
I would personally use AVG(COLLECT()) in this case. When you are using SUMIFS(AVG()) I think it is not working due to formula saying sum the average, with would just return the averaged amount (you would only be summing/adding one value, so it will return the value itself).
AVG(COLLECT()) will let you define multiple criteria, collect the values, and then average the values collected. This may help you better achieve what you are looking to do.

Thank you!!
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 10.7K Get Help
 63 Global Discussions
 69 Industry Talk
 385 Announcements
 3.5K Ideas & Feature Requests
 55 Brandfolder
 125 Just for fun
 50 Community Job Board
 464 Show & Tell
 40 Member Spotlight
 44 Power Your Process
 28 Sponsor X
 234 Events
 7.3K Forum Archives
Check out the Formula Handbook template!