Solved

Multiple words in Column A - Split those into two columns

Posted on 2013-01-25
6
242 Views
Last Modified: 2013-01-26
Hello

Me again.

I have an excel text column with multiple words in it. A space is between each word.

Such as....

Column A Row 1  Apple banana orange
Column A Row 2   1 Dog cat
Column A Row 3  Experts Exchange is 2 great

I would like a formula that makes those words into two columns

Column B would have the only the first word (or number)
Column C would have the remaining words (and any numbers)

So the result would be in the above example

Column B  Row 1 Apple          Column C Row 1 banana orange
Column B  Row 2 1                 Column C Row 2  Dog cat
Column B  Row3  Experts        Column C Row 3  is 2 great

Thanks!

Rowby
0
Comment
Question by:Rowby Goren
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 26

Accepted Solution

by:
redmondb earned 500 total points
ID: 38821353
Hi, rowby.

Assuming that the data is clean - always a space with data before and after - then the attached should do it for you...
B1     =MID(A1,1,FIND(" ",A1,1)-1)
C1     =MID(A1,FIND(" ",A1,1)+1,9999)

Edit: The following versions will also handle no data and missing spaces (at the cost of using TRIM() and so dropping extra spaces in Column C)...
B1     =MID(A1&" ",1,FIND(" ",A1&" ",1)-1)
C1     =TRIM(MID(A1,FIND(" ",A1&" ",1)+1,9999))

Let me know if you need different error-handling (and which version of Excel you're usng.)

Regards,
Brian.
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 38821396
Hi Brian,

I'm using Windows Excel Office 2007.

I'll try both of your versions on my list and see if it's clean enough to use your formula(s) "as is".

I'll be trying them in the morning.

Thanks

Rowby
0
 
LVL 26

Expert Comment

by:redmondb
ID: 38821421
Thanks, Rowby. Unless you actually want an error message in the cell(s) , the second set should be fine.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 9

Author Comment

by:Rowby Goren
ID: 38822189
Thanks!  #2 worked perfectly!

Appreciate your help!

Rowby
0
 
LVL 9

Author Closing Comment

by:Rowby Goren
ID: 38822192
Thanks again!
0
 
LVL 26

Expert Comment

by:redmondb
ID: 38822218
Thanks, rowby, Glad to help!
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question