Need help fixing formula (single value for multiple selections)
I was working on coming up with a formula that if the user selects either one choice or multiple choices in the same category it will equal the same or highest amount. The sample data I used was as follows:
Dog, cat = 3
Mouse, rat = 2
Snake, lizard = 1
The following formula was suggested to me and it does work to a certain degree:
=IF(OR(HAS([Animal dropdown]@row, "Dog"), HAS([Animal dropdown]@row, "Cat")), 3, IF(OR(HAS([Animal dropdown]@row, "Mouse"), HAS([Animal dropdown]@row, "Rat")), 2, IF(OR(HAS([Animal dropdown]@row, "Snake"), HAS([Animal dropdown]@row, "Lizard")), 1)))
The problem I'm having is when multiple selections are made. If two selections are made, even with the same value, the cell goes blank. Instead of selecting dog and cat = 3 or dog and mouse = 3 the cell won't give a value. However, if a single selection is made it will give it the corresponding value such as selecting snake = 1. I've tried different ways but I can't get it to work. Any suggestions would `be greatly appreciated.
Answers
-
@KCope21 - is the "Animal drowpdown" column set up as a multi-select column - the setting "Allow multiple values per cell" is on/checked?
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