Forum Discussion
SergeiBaklan
Jan 22, 2022Diamond Contributor
long texts with arrays in conditional functions
PeterBartholomew1 , tboulden or someone else
Perhaps you know the workaround, even with lambdas. In simplest case
=IF( 1, REPT("a", 256) ) works
=IF( {1}, REPT("a", 256) ) returns #VALUE!
...
tboulden
Jan 22, 2022Iron Contributor
Sergei, you honor me with thinking I can be of help 🙂 However, if I understand the problem correctly, I think you're on the right track with MAP, and I'd venture that MAP vs BYROW internal workings exemplify the issue between your examples using 1 vs {1}. Assuming single column array for arr, I think MAP takes the value from each row-cell, however BYROW takes each row-cell as an array.
SergeiBaklan
Jan 23, 2022Diamond Contributor
Thank you. Not sure about BYROW(), will play with it. MAKEARRAY() works, but formulas are so ugly...
- tbouldenJan 23, 2022Iron ContributorAgreed, I suspected MAKEARRAY would be viable also, but I agree with you that the formulae are ugly and unwieldy.