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
 Smartsheet Customer Resources
 62.3K Get Help
 364 Global Discussions
 200 Industry Talk
 428 Announcements
 4.4K Ideas & Feature Requests
 136 Brandfolder
 127 Just for fun
 128 Community Job Board
 445 Show & Tell
 28 Member Spotlight
 1 SmartStories
 283 Events
 35 Webinars
 7.3K Forum Archives
Check out the Formula Handbook template!