adding CSV to a cell

ango858

New Member
Joined
Mar 22, 2011
Messages
29
in one cell I have data such as:

d10d100i01d09d07i04

and i am hoping to to add a comma before each letter so that it appears like this:
d10,d100,i01,d09,d07,i04

i dont mind if it has to add a comma before the first one either:
,d10,d100,i01,d09,d07,i04

i have a lot of data like this and need to be able to loop it, however if someone can get me on the right path with adding the commas i should be able to manage the rest.


thanks in advance.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Would a find and replace do it? For example if you searched for "d" and replaced it with "d,"?

D
 
Upvote 0
I have written a macro in Excel 4.0 Macro. I am sorry to use this old version because I cannot use VBA.

I would like to give you the macro I wrote, but I cannot find an attach button here.

You can use for_next and Mid(.....) to find the lettters one by one and to add a comma befor each letter.
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,702
Members
452,938
Latest member
babeneker

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