Invalid Operation for simple formula
I have this formula that is returning INVALID OPERATION
=IF({AMR Location} = "Baltimore Mfg", AVG({AMR Level}), "")
The Location column is just text. The AMR Level is a number that is calculated from a pick list column.
=IF([Level of Professionalism]@row = "1", 1, IF([Level of Professionalism]@row = "2", 2, IF([Level of Professionalism]@row = "3", 3, IF([Level of Professionalism]@row = "4", 4, IF([Level of Professionalism]@row = "5", 5, 0)))))
I can successfully do an average on the whole Level column so I know it's converting to a number correctly.
Why am I getting the error when I try to do an average by location?
Thanks!
Andrea
Andrea Zenner
Program Manager | Infrastructure & Operations
Apogee Enterprises
EAP | Mobilizer | Core Product Certified | Superstar
azenner@apog.com
Best Answer
-
Hello @Andrea Zenner,
Have you tried using COLLECT? Try using the following,
=AVG(COLLECT({AMR Level}, {AMR Location}, ="Baltimore Mfg"))
Answers
-
Hello @Andrea Zenner,
Have you tried using COLLECT? Try using the following,
=AVG(COLLECT({AMR Level}, {AMR Location}, ="Baltimore Mfg"))
-
That worked! Thanks much! I haven't used COLLECT before. Learned something new today. 😊
Andrea Zenner
Program Manager | Infrastructure & Operations
Apogee Enterprises
EAP | Mobilizer | Core Product Certified | Superstar
azenner@apog.com
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!