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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!