Un - Concatenate?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello there,

I have a large list of police records and one of the fields contains their,
ID Code, Area and Rank seperated by spaces. I know there is a LEN and FIND
fuction but how do I conbine these??

Thankyou in advance

Judith
 
Hi

Why don't you insert the necessary columns (2 in this case), then do
Data|Text to Columns, select delimited, select Space (and unselect Tab) to
split it into columns
 
find will enable you to get the location of the blank spaces in the tex
string, which can then be used with =left, =right, =mid and =len. Th
resulting formulae can be a bit cumbersome but if the ID and area cod
are always the same number of characters they can be simplified.

These should work for variable lengths:

Cell A1 is: 1531 dorset constable
=LEFT(A1,FIND(" ",A1)) returns 1531
=MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1)
returns Dorset
=RIGHT(A1,LEN(A1)-FIND(" ",A1,FIND(" ",A1)+1)) returns Constable

Hope this help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top