Hui Excel Ninja Staff member Jun 6, 2012 #2 Sunnyp Do you need a Macro or a Formula? In an adjacent column You can use a simple =SUBSTITUTE(B2," ",", ") Copy the new data /Paste Values Then delete the original data
Sunnyp Do you need a Macro or a Formula? In an adjacent column You can use a simple =SUBSTITUTE(B2," ",", ") Copy the new data /Paste Values Then delete the original data
Hui Excel Ninja Staff member Jun 6, 2012 #3 If you really do need some VBA code the following will do it: [pre] Code: Dim c As Range For Each c In Range("B2", Range("B65536").End(xlUp)) c.Value = Replace(c.Value, " ", ", ") Next [/pre]
If you really do need some VBA code the following will do it: [pre] Code: Dim c As Range For Each c In Range("B2", Range("B65536").End(xlUp)) c.Value = Replace(c.Value, " ", ", ") Next [/pre]