if statement - Is it possible to use a List in Google Sheets via the OR() function during a comparison (test)? -


specifically in regards conditional formatting, applicable in broader scope of if() tests within google sheets...

can compare using =if(a1=or("yes","y","yes")) , achieve same result =if(or(a1="yes"),(a1="y"),(a1="yes"))? know both expressions simplified removing leading if(), since i'm desiring use information in context of conditional formatting.

i know above 2 statements not evaluate identically. there different (and simpler) syntax verbose or(<full-expression>,<full-expression>,etc...), or stuck that?

well, little more searching under different question yielded answer one: regexmatch().

=regexmatch(a1,"yes|y|yes") evaluates same =if(or(a1="yes"),(a1="y"),(a1="yes")). note: per above-linked page, google products use re2 regular expressions.


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -