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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,214,523
Messages
6,120,028
Members
448,940
Latest member
mdusw

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