I’m working on an Airtable database to categorize customer feedback based on two rating values. Each rating can be -4, -2, 0, 2, or 4, and I need to sort responses into six different groups depending on these score combinations.
My current formula works but it’s really long and messy. Is there a better way to write this?
IF(AND({Rating_A}=4,{Rating_B}=4),"Group_Q",
IF(AND({Rating_A}=-4,{Rating_B}=-4),"Group_Q",
IF(AND({Rating_A}=2,{Rating_B}=2),"Group_Q",
IF(AND({Rating_A}=-2,{Rating_B}=-2),"Group_Q",
IF(AND({Rating_A}=0,{Rating_B}=0),"Group_I",
IF(AND({Rating_A}=4,{Rating_B}=2),"Group_A",
IF(AND({Rating_A}=4,{Rating_B}=0),"Group_A",
IF(AND({Rating_A}=4,{Rating_B}=-2),"Group_A",
IF(AND({Rating_A}=4,{Rating_B}=-4),"Group_P",
IF(AND({Rating_A}=2,{Rating_B}=4),"Group_R",
IF(AND({Rating_A}=2,{Rating_B}=0),"Group_I",
IF(AND({Rating_A}=2,{Rating_B}=-2),"Group_I",
IF(AND({Rating_A}=2,{Rating_B}=-4),"Group_M",
IF(AND({Rating_A}=0,{Rating_B}=4),"Group_R",
IF(AND({Rating_A}=0,{Rating_B}=2),"Group_I",
IF(AND({Rating_A}=0,{Rating_B}=-2),"Group_I",
IF(AND({Rating_A}=0,{Rating_B}=-4),"Group_M",
IF(AND({Rating_A}=-2,{Rating_B}=4),"Group_R",
IF(AND({Rating_A}=-2,{Rating_B}=2),"Group_I",
IF(AND({Rating_A}=-2,{Rating_B}=0),"Group_I",
IF(AND({Rating_A}=-4,{Rating_B}=4),"Group_R",
IF(AND({Rating_A}=-4,{Rating_B}=2),"Group_R",
IF(AND({Rating_A}=-4,{Rating_B}=0),"Group_R",
IF(AND({Rating_A}=-4,{Rating_B}=-2),"Group_R",
"Group_Q")))))))))))))))))))))))))
Any suggestions would be great!