Assuming that google sheets still shows a #NAME? error (or similar) when an unknown function name is used, then my formula might still work if you confirm the array correctly. I believe that this is done by adding the arrayformula function to the formula rather than using the excel method of Ctrl Shift Enter.

=ARRAYFORMULA(TEXTJOIN(", ",1,INDEX(CHOOSE(SIGN(O213:Q213-P213:R213)+2,"DOWN","EVEN","UP"),N(IF({1},{3,2,1})))))

If that doesn't work then I have no idea what will other than a series of short formulas joined together as

@Yongle suggested earlier, that formula although a bit longer, is a simpler method that will work fine with google sheets as long as you remember to align it to the correct rows in your sheet.