separate parts of a field in excel

I need to separate out the account id from the person.  I would like to do it so that the [] are removed also.  Can someone tell me how to do this in Excel?

Example:  PRESLEY, ELVIS [5000065005]
Becky EdwardsEpic Clarity DeveloperAsked:
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.


if cell is A1 then try in B1

Open in new window

in C1

Open in new window


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
Alexandre TakacsCTOCommented:
You will typically use string functions - the more consistent your source data is the better.

Or even easier the built-in "Text to Columns" feature in Excel.

For instance assuming your input is "Last Name"  - comma - "First Name" you can first use the "comma" as your separator and have two columns populated for you by Excel. You will then use the same tool on the second column and use "[" as your separator.

Give it a try !
Roy CoxGroup Finance ManagerCommented:
Assuming text in A! try

Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Becky EdwardsEpic Clarity DeveloperAuthor Commented:
I used the first answer and it worked perfectly.  Thank you everyone for your responses!
Becky EdwardsEpic Clarity DeveloperAuthor Commented:
It took three columns, but it worked perfectly.  Thank you  Rgonzo for help separating account number from person field.
Roy CoxGroup Finance ManagerCommented:
My formula needs one additional column!
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.