Formula for combining all elements in 1 Row

david_cc

New Member
Joined
Jan 20, 2017
Messages
12
Hi guys,

I have a problem with combining different cells from 1 row. There's no need to create ALL possible combinations per row (reversed like: keyword1a & keyword1b + keyword1b & keyword1a) --> Just 1 of the 2 combinations is enough.

Is there a proper way to do this?

Basically this is what I need.


[TABLE="width: 720"]
<tbody>[TR]
[TD]keyword 1a[/TD]
[TD]keyword 1b[/TD]
[TD]keyword 1c[/TD]
[TD]keyword 1d[/TD]
[TD][/TD]
[TD]INPUT[/TD]
[/TR]
[TR]
[TD]keyword 2a[/TD]
[TD]keyword 2b[/TD]
[TD]keyword 2c[/TD]
[TD]keyword 2d[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]and so on....
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]keyword 1a[/TD]
[TD]keyword 1b[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]OUTPUT[/TD]
[/TR]
[TR]
[TD]keyword 1a[/TD]
[TD]keyword 1c[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]keyword 1a[/TD]
[TD]keyword 1d[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]keyword 1b[/TD]
[TD]keyword 1c[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]keyword 1b[/TD]
[TD]keyword 1d[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]keyword 1c[/TD]
[TD]keyword 1d[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]keyword 2a[/TD]
[TD]keyword 2b[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]keyword 2a[/TD]
[TD]keyword 2c[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]keyword 2a[/TD]
[TD]keyword 2d[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]keyword 2b[/TD]
[TD]keyword 2c[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]keyword 2b[/TD]
[TD]keyword 2d[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]keyword 2c
and so on...[/TD]
[TD]keyword 2d[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Thanks for your help!
 
Welcome to the board.

There's a workbook with both VBA- and formula-based methods to do that at https://app.box.com/s/47b28f19d794b25511be

Thanks, I think this goes in right direction but I can't figure out how to change the workbook to create only 2 Output colums (not 4) So basically Input are 4 Columns but Output should only 2. Also the double combinations (reversed) are not needed.

Any help would be appreciated.
 
Upvote 0
You're welcome to modify the code.
 
Upvote 0

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