Return true or false for multiple selection question
Hi,
I have some multiple selection questions to grade and not sure what formula to use.
So there are A,B,C,D,X for the selection and the correct answer is A,C.
I want a true response for people who select A&C only, any other types of combination needs to return as false.
I tried AND formula, but it return as true even when people select A,C,D or any combinations that contains A&C. So it did not work out for what I was looking for.
Any suggestions? Thanks!
Best Answer
-
Try this...
=IF([Column Name]@row = "A" + CHAR(10) + "C", "true", "false")
Answers
-
Are all of the options listed in the same cell, or are they spread out across multiple columns?
-
They are in the same cell.
-
Try this...
=IF([Column Name]@row = "A" + CHAR(10) + "C", "true", "false")
-
Hi,
Try this, where "[Column2]" is the name of your column containing the multiple selection.
=IF(OR(CONTAINS("B", [Column2]@row), CONTAINS("D", [Column2]@row), CONTAINS("X", [Column2]@row)), "FALSE Not AC", IF(AND(CONTAINS("A", [Column2]@row), (CONTAINS("C", [Column2]@row))), "TRUE AC Only", "FALSE Not AC"))
-
@Paul Newcome - thanks for showing how to use CHAR(10)!
-
Thank you @Paul Newcome! They work perfectly.
@ker9 Thank you for your input!
-
Happy to help. 👍️
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!