Feb 08, 2024 09:57 AM
We had students respond to a number of self-reflection questions, and their answers are in table 1. Table 2 uses lookup fields to pull in those answers, and then a formula field to attempt to score them.
Each question has 5 answer choices, and each answer choice is worth between 1 and 5 points. Here's an example with the number of points each answer is worth in parentheses:
How would you react to constructive criticism from professors in your host country?
We're using a version of the same nested IF statement to score each question, though obviously changing the answer text:
Feb 08, 2024 10:31 AM
Hey @hhspiel!
I just want to confirm that the preceding a), b), c), etc. values are not a part of the included options.
When using the equality comparison operator in Airtable, strict equality is used, meaning that even trailing or leading whitespace would result in the expression evaluating to false.
Give this formula a shot and let me know how it plays out.
I tested this in an isolated example and was able to get it to behave as expected.
IF(
{non-cog16},
SWITCH(
TRIM({non-cog16}),
"I might take it personally and feel discouraged.",
1,
"I'd feel a bit upset but would try to learn from it.",
2,
"I'd take it as it is, without much emotion.",
3,
"I'd see it as valuable feedback for improvement.",
4,
"I'd welcome it and actively seek out feedback for growth.",
5
)
)
Feb 08, 2024 11:00 AM
Thanks for the suggestion, @Ben_Young1 ! I wasn't familiar with SWITCH - that is so much easier to read, I will definitely use that moving forward! Unfortunately, the formula you posted has the same results for me - all answers are scored EXCEPT - 3 "I'd take it as it is, without much emotion." - which to me again suggests that it is a text issue, but "I'd take it as it is, without much emotion." is the exact text pasted from the answer field.
Wonder why it would work for you and not for me - what does that tell us?
And yes, confirming that the preceding labels a), b), etc are not part of the answers.
Thanks again!