Forum Discussion
qazzzlyt
Jan 06, 2022Copper Contributor
Excel formula fill range formula with dynamic result
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.
4 Replies
Sort By
- PeterBartholomew1Silver Contributor
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"))
- qazzzlytCopper ContributorOh thanks again Sergei. How about if A1 and B1 are not in a spilled range?