Reputation: 11
I am messing with =IFERROR(IF(VALUE(LEFT())
and can't solve it after spending a whole night (my bad). I want auto generated result like below picture.
I am currently using
=IFERROR(IF(VALUE(LEFT(B2,1)),IF(A2=B2,A2,B2),A2),B2)
as an array formula, but can't get the required results. I mess with array and looking for another simple solution.
Upvotes: 1
Views: 89
Reputation:
Try,
=if(isnumber(--left(b2)), b2, a2)
If you only want the single left-most character/digit from a string, you don't need the 1.
Upvotes: 3