Google Sheets – How to CONCATENATE a String with an ArrayFormula

concatenategoogle sheets

I have the following string in column H and I.

H2="http://"
I2="aaa"
H3="http://"
I3="bbb"

I want to have a auto-generated J column, which results like:

J2="http://aaa"
J3="http://bbb"

So I put the following formula in J1:

= ARRAYFORMULA (IF(ROW(J:J)=1;"formulaTest";CONCATENATE(H:H1, I:I1 ) ))

But the result I got is:

J2="http://http://aaabbb"
J3="http://http://aaabbb"

What is going wrong with my formula?

Best Answer

This is what you are looking for:

=ARRAYFORMULA((IF(ROW(J:J)=1,"formulaTest",H1:H & I1:I)))