Merge value of cells in range if other cell meets criteria. Function or macro...

radoqu

New Member
Joined
Jul 25, 2013
Messages
3
Hello,

I'm quite familiar with functions, but new to macros, and i have a problem to solve. It would be great if someone could help me!

Maybe its the best if i give you an example about what i need to do.

skunameresult i need
sku_1Name1sku_2, sku_3
sku_2Name1sku_1, sku_3
sku_3Name1sku_1, sku_2
sku_4Name2sku_5
sku_5Name2sku_4
sku_6Name3sku_7, sku_8, sku_9, sku_10, sku_11
sku_7Name3sku_6, sku_8, sku_9, sku_10, sku_11
sku_8Name3sku_6, sku_7, sku_9, sku_10, sku_11
sku_9Name3sku_6, sku_7, sku_8, sku_10, sku_11
sku_10Name3sku_6, sku_7, sku_8, sku_9, sku_11
sku_11Name3sku_6, sku_7, sku_8, sku_9, sku_10

<tbody>
</tbody>

So: if name in the table is the same, than merge sku's together (separated by ,) without the sku of that line. Ofc. sku and name can be "anything".

Extra: it would be great (but not necessary) if it would work with NOT ordered names (e.g. name1 in row 1,2,3 and in row 1342).

If it is possible it would be better with functions... but i don't think it can be done. A macro would be great too!

Thanks is advance!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Cross posted at EF and excelguru

Sorry, i did not know that users from these forum follow other forums too.

I cross posted that on:
ozgrid - Merge value of cells in range if other cell meets criteria. Function or macro...
excelguru - Merge value of cells in range if other cell meets criteria. Function or macro...
excelforum - Merge value of cells in range if other cell meets criteria. Function or macro...

But thats because i really need some help with that.
Thanks and sorry if i made something wrong.
 
Upvote 0

Forum statistics

Threads
1,215,931
Messages
6,127,759
Members
449,404
Latest member
cburket

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