Jan 06 2022 07:02 AM
A1 has formula ={"dog","cat"}, which filled B1 with "cat".
In A3 the formula is =CHOOSE({1,2},A1,B1), and it worked. My goal is to fill multiple cells with one cell and need dynamic result. So this one meet my goal, but I feel CHOOSE is redundant and there should be a better way.
So I write A5 as ={A1,B1}, but Excel does not recognize this formula. What did I do wrong here? Any suggestions with good grammar?
Thank you all for help.
Jan 06 2022 07:06 AM
Jan 06 2022 07:19 AM
Jan 06 2022 08:17 AM
Jan 06 2022 09:39 AM
At the risk of muddling up your cats and dogs
= IF({0,1},"dog","cat")
is also a standard solution. Of course. if you are up for a bit of excitement, you could always try
= LET(
select, RANDARRAY(1,2,0,1,1),
IF(select, "dog","cat"))