Extracting date in desired format

thisisrahul

Active Member
Joined
Sep 2, 2008
Messages
285
I've data in the below format:-

this is, Just to test, excel possibilities of data extraction
test, data in the below format, thanks
please provide help, if any

<tbody>
</tbody>

i want the above data to be extracted in the below format:-

this is

<tbody>
</tbody>
Just to test

<tbody>
</tbody>
excel possibilities of data extraction

<tbody>
</tbody>
test

<tbody>
</tbody>
data in the below format

<tbody>
</tbody>
thanks

<tbody>
</tbody>
please provide help

<tbody>
</tbody>
if any

<tbody>
</tbody>

<tbody>
</tbody>


The above data is comma separated.


_______
Rahul
 
Do you really need to do this using a UDF formula? If you do not need the "live" changing ability of a formula (when the source data is changed), I think a macro would be more efficient overall (simply run it if and whenever you make a change to the source data). Here is the macro (data assumed to be in Column A starting in cell A1, output to Column B starting at cell B1)...
Code:
[table="width: 500"]
[tr]
	[td]Sub ParseByCommas()
  Dim Combined() As String
  Combined = Split(Join(Application.Transpose(Range("A1", Cells(Rows.Count, "A").End(xlUp))), ","), ",")
  Range("B1").Resize(UBound(Combined) + 1) = Application.Transpose(Combined)
End Sub[/td]
[/tr]
[/table]
 
Last edited:
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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