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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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:
[TABLE="class: cms_table_MsoNormalTable, width: 96"]
<tbody>[TR]
[TD="width: 64"] X[/TD]
[TD="width: 64"] A,B,C[/TD]
[/TR]
[TR]
[TD="width: 64"] Y[/TD]
[TD="width: 64"] D,E,F[/TD]
[/TR]
</tbody>[/TABLE]



I WANT TO MAKE IT LIKE :

[TABLE="class: cms_table_MsoNormalTable, width: 96"]
<tbody>[TR]
[TD="width: 64"] X[/TD]
[TD="width: 64"] A[/TD]
[/TR]
[TR]
[TD="width: 64"] X[/TD]
[TD="width: 64"] B[/TD]
[/TR]
[TR]
[TD="width: 64"] X[/TD]
[TD="width: 64"] C[/TD]
[/TR]
[TR]
[TD="width: 64"] Y[/TD]
[TD="width: 64"] D[/TD]
[/TR]
[TR]
[TD="width: 64"] Y[/TD]
[TD="width: 64"] E[/TD]
[/TR]
[TR]
[TD="width: 64"] Y[/TD]
[TD="width: 64"] F[/TD]
[/TR]
</tbody>[/TABLE]


KINDLY HELP
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,226,116
Messages
6,189,057
Members
453,524
Latest member
AshJames

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