Solved

formula or macro to split txt

Posted on 2014-02-21
5
158 Views
Last Modified: 2014-02-21
Hi experts excel 2007

I have in col o3 the following name and address which I want to split in individual cells u3 on wards
O3= mr psrm simn john 37 devon close fleetwoid fy7 7ea

Whats the best way to achieve this
0
Comment
Question by:route217
[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
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39876337
how do u want to split text? one word per cell?
0
 

Author Comment

by:route217
ID: 39876354
Apologies thats correct.
0
 
LVL 13

Expert Comment

by:akb
ID: 39876369
=+LEFT(O3,FIND(" ",O3)-1)   Will give you the first word
=+MID(O3,FIND(" ",O3)+1,LEN(O3))    Will give you the remaining text

Keep repeating the formulae until you have separated each word
0
 
LVL 13

Assisted Solution

by:akb
akb earned 250 total points
ID: 39876379
Came up with better formulae:

=TRIM(MID(SUBSTITUTE(O3," ",REPT(" ",30)),30*(XXX-COLUMN(O3))+1,30))

Substitue XXX for whichever word you are after

eg. if you want the third word use:
=TRIM(MID(SUBSTITUTE(O3," ",REPT(" ",30)),30*(3-COLUMN(O3))+1,30))
0
 
LVL 8

Accepted Solution

by:
Naresh Patel earned 250 total points
ID: 39876381
ABC
Thanks
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is the 64bit version of this window API? 2 23
Transfer Worksheet Data to Userform & Calculate based on Sum Range 28 47
LOOK FOR 22 34
count number 10 30
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

710 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