Seeking advice for simplifying Airtable formula
I’m currently working on analyzing survey responses in Airtable, where I categorize them based on two score inputs. The score values can be -4, -2, 0, 2, or 4, and we have six distinct categories resulting from different score combinations.
My existing approach involves several nested IF statements that function correctly but have become unwieldy and challenging to handle. Here’s the formula I’m using:
IF(AND({Rating A}=4,{Rating B}=4),"Type1",
IF(AND({Rating A}=-4,{Rating B}=-4),"Type1",
IF(AND({Rating A}=2,{Rating B}=2),"Type1",
IF(AND({Rating A}=-2,{Rating B}=-2),"Type1",
IF(AND({Rating A}=0,{Rating B}=0),"Neutral",
IF(AND({Rating A}=4,{Rating B}=2),"Positive",
IF(AND({Rating A}=4,{Rating B}=0),"Positive",
IF(AND({Rating A}=4,{Rating B}=-2),"Positive",
IF(AND({Rating A}=4,{Rating B}=-4),"Strong",
IF(AND({Rating A}=2,{Rating B}=4),"Reverse",
IF(AND({Rating A}=2,{Rating B}=0),"Neutral",
IF(AND({Rating A}=2,{Rating B}=-2),"Neutral",
IF(AND({Rating A}=2,{Rating B}=-4),"Moderate",
IF(AND({Rating A}=0,{Rating B}=4),"Reverse",
IF(AND({Rating A}=0,{Rating B}=2),"Neutral",
IF(AND({Rating A}=0,{Rating B}=-2),"Neutral",
IF(AND({Rating A}=0,{Rating B}=-4),"Moderate",
IF(AND({Rating A}=-2,{Rating B}=4),"Reverse",
IF(AND({Rating A}=-2,{Rating B}=2),"Neutral",
IF(AND({Rating A}=-2,{Rating B}=0),"Neutral",
IF(AND({Rating A}=-4,{Rating B}=4),"Reverse",
IF(AND({Rating A}=-4,{Rating B}=2),"Reverse",
IF(AND({Rating A}=-4,{Rating B}=0),"Reverse",
IF(AND({Rating A}=-4,{Rating B}=-2),"Reverse",
"Type1"))))))))))))))))))))))))
Would you be able to suggest a more efficient way to write this? Perhaps utilizing a SWITCH statement or a different method that improves readability and ease of modification?