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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Tuelor

Board Regular
Joined
Mar 19, 2011
Messages
101
Would a find and replace do it? For example if you searched for "d" and replaced it with "d,"?

D
 

xizhenyan

New Member
Joined
Aug 15, 2005
Messages
19
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,598
Messages
5,832,645
Members
430,150
Latest member
amitk1

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
Top