Is there a way to match on multiple values within the MATCH function? This is my current formula to determine (and later, pick) a passing grade in a class (A to D-), with DF2 the ID:
=IF(ISNUMBER(MATCH(1, (DF2='GRADES'!$B$2:$B$16056)*(('GRADES'!$K$2:$K$16056="A")+('GRADES'!$K$2:$K$16056="A-")+('GRADES'!$K$2:$K$16056="B+")+('GRADES'!$K$2:$K$16056="B")+('GRADES'!$K$2:$K$16056="B-")+('GRADES'!$K$2:$K$16056="C+")+('GRADES'!$K$2:$K$16056="C")+('GRADES'!$K$2:$K$16056="C-")+('GRADES'!$K$2:$K$16056="D+")+('GRADES'!$K$2:$K$16056="D")+('GRADES'!$K$2:$K$16056="D-")),0)), "Yes", "No")
I tried to shorten it this way but it did not work:
=IF(ISNUMBER(MATCH(1, (DF2='GRADES'!$B$2:$B$16056)*('GRADES'!$K$2:$K$16056 = {"A","A-","B+","B","B-","C+","C","C-","D+","D","D-"}),0)), "Yes", "No")
Is there any way to shorten this formula in this manner? The only thing I could think of is to give each letter a number value, with D- at 1 up to A at 11, with F as 0:
=IF(ISNUMBER(MATCH(1, (DF2='GRADES'!$B$2:$B$16056)*('GRADES'!$K$2:$K$16056 >0),0)), "Yes", "No")
Thank you.
Bookmarks