Feb 16, 2023 06:22 AM
Hello everyone,
I am new to airtable. I have a survey and each question has a single select field option for the answers with a certain amount of points. How can I assign a number to each single select field value e.g. a=0, b=1, c=2 and d=3 so I can add up these points.
Hope to hear from you.
Thanks
Solved! Go to Solution.
Feb 16, 2023 08:53 AM
Feb 16, 2023 06:36 AM - edited Feb 16, 2023 08:52 AM
This will require an additional Function field with a switch statement:
SWITCH({Answer field},"Answer one",1,"Answer two",2,0)
The last 0 being the default value if nothing is selected
Feb 16, 2023 06:50 AM
Feb 16, 2023 06:54 AM
You are missing the end parenthesis. The hint is the little squiggly line under the front one. Otherwise it should work.
Feb 16, 2023 07:07 AM
Feb 16, 2023 08:05 AM
Oh, It's the closing bracket that's extra now.
SWITCH({Answer field},"Answer one",1,"Answer two",2,0)
Feb 16, 2023 08:35 AM
Yes! It works! Thank you so much Christiaan.
Regards,
Jerrel
Feb 16, 2023 08:53 AM
It's a pleasure! Please mark this post as solved 🙂
Jun 27, 2024 06:37 PM
Hi,
Is it possible to add multiple columns to the SWITCH formula to have a sum of single select columns that have the same options and points?