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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -