Concatenation looping problem

mark-davis

New Member
Joined
Dec 10, 2009
Messages
13
Hello All,

What a wonderful forum and I am sure this problem will get answered. Ideally, I'd like it solved with equations instead of VB.

I have 3 columns (column A, B, and C), each with 3 rows of data in Excel. I would like to concatenate each cell in A with each cell in columns B and C in the following manner:

cell d1--> concatenate(a1," ",b1," ",c1)
cell d2, concatenate a1+b1+c2
cell d3 concatenate a1+b1+c3
cell d4 concatenate a1+b2+c1
cell d5 concatenate a1+b2+c2...repeat according this sequence

Eventually, the last cell in column d will be concatenate a3+b3+c3.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
One could construct an increadably complex, uneditable formula that would do this, but the VBA route sounds best.

Are you using 2008, that would make the macro un avaliable?
 
Upvote 0
Office 2004.

I copied the formula all the way down the spreadsheet. After the expected concatenation, other values are being show. It would be nice to simply have the formula sense end of cell entries and just remain blank.
 
Upvote 0
Whoops, spoke too fast. This works for 3x3 setup. If I place a value in a4, take a look at the undesirable concatenation that is starting to occur. (see attached image below):
pict1.jpg
 
Upvote 0
The formula assumes that all of the columns have the same number of entries. The NoGoods are from concatinating the "" in B4 with other strings.

As I said in post #13, a VB solution would be the way to go.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,916
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top