Excel IF formula with 7 different possible variables -
Excel IF formula with 7 different possible variables -
first time here!
i'm looking homecoming value if cell contains of 7 different variables.
as stands, formula follows:
=if(h13=1, "c", if(h13=4, "c", if(h13=7, "c", if(h13=10, "c", if(h13=13, "c", if(h13=16, "c", if(h13=19, "c")))))))
it works, formula unnecessarily long. , combined 5 others part of 1 giant formula. i'm sure there's way consolidate. i've tried if(or) allows 2 variables. how create formula allows 7 variables?
thanks!!
you can or them together.
=if(or(h13=1,h13=4,h13=7,h13=10,h13=13,h13=16,h13=19),"c")
the other method using array formula:
=if(or(exact(h13,l5:l11)),"c")
with l5:l11 beingness {1,4,7,10,13,16,19}
you can read using excel docs
the first 1 simpler maintain, sec 1 more flexible.
excel formula
Comments
Post a Comment