A | B | C | D | E | F | ||
---|---|---|---|---|---|---|---|
1 | a1 | a2 | a3 | @ + @+@ | a1+a2+a3 | ||
2 | b1 | b2 | b3 | @ + @+@ | b1+b2+b3 | ||
3 | c1 | c2 | c3 | @ + @+@ | c1+c2+c3 | ||
Suppose I have some texts at range "E1:E3", with the value "@+@+@".
I also have another lookup table ranged at "A1:C3"
I hope that, for each output row in column "F", the "@" character in the column "E" text will be replaced one at a time correspondingly by each lookup value in the row table, following a left-to-right column-wise direction in a row, as shown in the above table
e.g. in cell "F1", one possible formula can be =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(E1,A1,"",1),B1,"",1),C1,"",1)
But as you can see, this formula is very cumbersome and inflexible in case I wish to expand the lookup table to 4 or more columns.
It will be great if there is a much neater and flexible formula in this case.
Thanks.