Mar 17 2023 09:56 AM - edited Mar 17 2023 10:02 AM
Afternoon Excel Community,
I'm currently trying to concat two cells in the same column (It's like this due to an output from a software where use). The column is formatted to where the cell below and above need to be combined. So here is the formula I'm trying to use: =Concat(=CONCAT(B1, "|", B2). The issue with this is when dragged down it turns into this =CONCAT(B2, "|", B3) when I would like it to be like this =CONCAT(B3, "|", B4), next cell after would be =CONCAT(B5, "|", B6), and so on.
Is there a solution to this that anyone can help me with?
Example of the problem I'm facing. I would like for column d to go d1=1|2, d2=3|4, d3=5|6.
The current workaround is to just copy a paste instead of drag. Notice how D1, D3 , and D5 give me the output I would like. Then I remove the the empty spaces.
Mar 17 2023 10:20 AM
Mar 17 2023 10:26 AM
Mar 17 2023 10:33 AM
=CONCATENATE(INDEX(B:B,ROW($C$1)+(ROW(C1)-ROW($C$1))*2),"|",INDEX(B:B,ROW($C$2)+(ROW(C1)-ROW($C$1))*2))
An alternative could be this formula.
Mar 17 2023 01:06 PM
This is a 365 solution.
= LET(
Join, LAMBDA(x, TEXTJOIN("|",,x)),
BYROW(WRAPROWS(input,2), Join)
)