Page 1 of 1

concatenation

Posted: Sun Jul 10, 2022 6:33 pm
by sna
Hi there

I have date in a column and text in next column.
I need formula to concat text from above cell till cell with date in adjacent cell.

I attach a template with expected results in colour cells.

Thanks

Re: concatenation

Posted: Sun Jul 10, 2022 10:27 pm
by norkaz
...

C2

=SUBSTITUTE(IF(A2="","",CONCAT($B$2:B2&",")),CONCAT(C$1:C1),"")

Norkaz

Re: concatenation

Posted: Mon Jul 11, 2022 11:45 am
by snasui
:D Another formula,

C2

=IF(A2="","",IFERROR(MID(CONCAT(","&B2:INDEX(B$2:B2,MATCH(2,1/INDEX(A$1:A1<>"",0)))),2,255),B2))

Enter and copy down.

Re: concatenation

Posted: Mon Jul 11, 2022 12:42 pm
by sna
Thank you both ☺️

Re: concatenation

Posted: Mon Jul 11, 2022 2:45 pm
by norkaz
snasui wrote: Mon Jul 11, 2022 11:45 am :D Another formula,

C2

=IF(A2="","",IFERROR(MID(CONCAT(","&B2:INDEX(B$2:B2,MATCH(2,1/INDEX(A$1:A1<>"",0)))),2,255),B2))

Enter and copy down.
:thup: :thup: :thup: