Change the data in ; as a separate row in excel spreadsheet


I have spreadsheet that contains lots of entries in one row which is updated as ;

For example.
Name     Access
xyx          domain\ambc;domain\bbbcb

I need to convert it to the below format. I mean i want it in a separate row.

Name  Access
xyx        domain\ambc
Please let me know if it possible in excel.

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.

Dan CraciunIT ConsultantCommented:
Yup. Look at text to columns.

krish5musicAuthor Commented:
Hello Dan,

I want the entries in a separate rows instead of columns.

I have already tried that option, but for each entries i need to manually copy from column and create new row and paste it.

Its very time consuming. Please let me know if there is any other option available.

Dan CraciunIT ConsultantCommented:
If you only had domain\ambc;domain\bbbcb;domain\xxx etc, it would be trivial. Use text to columns and then paste special->transpose.

You can save the file as csv (or copy/paste) and use Notepad++ or any other text editor that supports regular expressions.
Then find/replace as below.

that's a space before the +Note: that's a space before the +

After that simply copy/paste the text in excel and use text to columns, using tab as delimiter. The result:
Martin LissOlder than dirtCommented:
Or you could use VBA. Click the blue button in the attached workbook.

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
Martin LissOlder than dirtCommented:
I’m glad I was able to help.

If you expand the “Full Biography” section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange Most Valuable Expert (MVE) 2015, 2017
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2018
              Experts Exchange Top Expert VBA 2018
              Experts Exchange Distinguished Expert in Excel 2018
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

From novice to tech pro — start learning today.