Put comma seperated data into single columb

Status
Not open for further replies.

SRAI31

New Member
Joined
Aug 27, 2017
Messages
10
I had some comma separated vallue in a columb, like below:
A,b,c
d,e,f

i want to make it like:

A
b
c
d
e
f
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Data assumed to start "A1", Results start "B1".
Code:
[COLOR=navy]Sub[/COLOR] MG27Jan16
[COLOR=navy]Dim[/COLOR] Rng [COLOR=navy]As[/COLOR] Range, Sp [COLOR=navy]As[/COLOR] Variant
 [COLOR=navy]Set[/COLOR] Rng = Range("A1", Range("A" & Rows.Count).End(xlUp))
  Sp = Split(Join(Application.Transpose(Rng), ","), ",")
    Range("B1").Resize(UBound(Sp) + 1).Value = Application.Transpose(Sp)
[COLOR=navy]End[/COLOR] [COLOR=navy]Sub[/COLOR]
Regards Mick
 
Last edited:
Upvote 0
Hi mike,

thankxx for help. i need little more help, if the condition will like below:

I HAD SOME DATA LIKE BELOW:
X A,B,C
Y D,E,F

<tbody>
</tbody>



I WANT TO MAKE IT LIKE :

X A
X B
X C
Y D
Y E
Y F

<tbody>
</tbody>


KINDLY HELP
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,829
Messages
6,127,130
Members
449,361
Latest member
VBquery757

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