Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to change IFS function to switch in Google sheets? [duplicate]

$
0
0

I have this formula =ifs(OR(A1="January",$A$1="March",$A$1="May"),$A10,OR($A$1="April",$A$1="June"),$B11,OR($A$1="February"),$C10) I would like to use switch instead of IFS without repeating A1="":

so something like this switch(A1=("January" or "March" or "May"), A10, ("April"or"June"),B10, ("February"),C10)

I know its wrong. So A1 cell is Month name that user will enter A10 , B10, C10 are values to be shown according to criteria in the formula If I use Switch, I need to repeat lot of words as well: so I expect the formula will be like this: switch(OR(A1="January",A1="March",A1="May"), A10, OR(A1"April",A1="June"),B10, "February",C10)

Any thought how not to repeat the (A1="")? if the value equals to the criteria then


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>