Import comma separated data from a single cell

I would like to display the comma separated numbers contained in a single cell into individual cells.
As under

Before
 A1
3.49,4.90,1,-3.49,9870.03
After
A1       A2        A3         A4          A5
3.49    4.90      1         -3.49       9870.03

Many Thanks
Ian
Ian BellretiredAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this....

Sub SplitCommaSeparatedCellIntoMultipleCells()
Dim arr
arr = Split(Range("A1").Value, ",")
Range("A1").Resize(UBound(arr) + 1).Value = Application.Transpose(arr)
End Sub

Open in new window

Ian BellretiredAuthor Commented:
Hi Sktneer,
Thanks for this, however I am a novice when it comes to code. Can you tell me where to enter it and the steps to do so
Thanks
Ian
Professor JMicrosoft Excel ExpertCommented:
Please use Text to Columns feature in excel user the data tab click text to column then select delimited and then select comma and then next and finish

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ian BellretiredAuthor Commented:
Thanks, that worked a treat.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.