AVG error message (with formula issues as well)
I'm trying to calculate the average score (1 to 5) of a column, but keep getting the DIVIDE BY ZERO message.
The column with the scores is calculated via a formula from a column formatted with stars (from a survey form). So four stars from the survey = 4. But I noticed that all the results have a ' in front of them (e.g. '4, '5). So I'm assuming this is why I'm getting the DIVIDE BY ZERO message - they aren't being recognized by numbers.
Why is this happening? How do I get just the number without the '?
FYI here's the formula: =IF([Overall satisfaction with the session]@row = "⭐️", "1", IF([Overall satisfaction with the session]@row = "⭐️⭐️", "2", IF([Overall satisfaction with the session]@row = "⭐️⭐️⭐️", "3", IF([Overall satisfaction with the session]@row = "⭐️⭐️⭐️⭐️", "4", IF([Overall satisfaction with the session]@row = "⭐️⭐️⭐️⭐️⭐️", "5")))))
Best Answer
-
Remove the "" from around your numbers. It's not needed. What that is doing is making it a text value. Instead you want.
=IF([Overall satisfaction with the session]@row = "One", 1, IF([Overall satisfaction with the session]@row = "Two", 2, IF([Overall satisfaction with the session]@row = "Three", 3, IF([Overall satisfaction with the session]@row = "Four", 4, IF([Overall satisfaction with the session]@row = "Five", 5)))))
If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.
Answers
-
Remove the "" from around your numbers. It's not needed. What that is doing is making it a text value. Instead you want.
=IF([Overall satisfaction with the session]@row = "One", 1, IF([Overall satisfaction with the session]@row = "Two", 2, IF([Overall satisfaction with the session]@row = "Three", 3, IF([Overall satisfaction with the session]@row = "Four", 4, IF([Overall satisfaction with the session]@row = "Five", 5)))))
If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.
-
That's it! Thank you so much!!
-
Your very welcome
If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!