Solved

The opposite of concatenate in Excel ?

Posted on 2001-06-26
6
6,159 Views
Last Modified: 2008-02-26
Hi,

I'm trying to separate a string of text such as: UKFRABC012345-123Z 456000 Left

Which is unfortunately in one cell only, to the following (column separator is ^): UKFR ^ ABC012345 ^ 123Z ^ 456000 ^ left.

Quite straightforward, I need the opposite of concatenate - maybe a nested IF will work, I'm not sure.

Any ideas welcome, 200 up for grabs :)

Thank you,

Tricky
0
Comment
Question by:Tricky
  • 4
  • 2
6 Comments
 
LVL 13

Accepted Solution

by:
cri earned 200 total points
ID: 6227135
Are the positions fixed ? And is using auxiliary cells an option ? If yes to both, use the MID function:
=MID(A1,1,5)=UKFR
=MID(A1,5,9)=ABC012345
etc.

 
0
 
LVL 13

Expert Comment

by:cri
ID: 6227138
Of course you can also make a VBA function which uses the MID function.

If the position is not given, do the separation follow some rules / markers ?
0
 

Author Comment

by:Tricky
ID: 6227160
Perfect, nice job :)

Thanks...
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 13

Expert Comment

by:cri
ID: 6229000
ThAnk you. If you need further info regarding string handling in VBA, please ask, this was a lot of points for this kind of question.
0
 

Author Comment

by:Tricky
ID: 6229478
I needed an accurate answer quickly, so the points were worth it...

I'll be sure to look out for you in the future ;p

0
 
LVL 13

Expert Comment

by:cri
ID: 6230278
Ok.

For the KPro users and PAQ 'buyers':

Lots of usefull tips, including string handling
http://www.cpearson.com/excel/topic.htm

Extracting the n-th Element From a String
http://www.j-walk.com/ss/excel/tips/tip32.htm

Hints/Caveats:

a) Whereas text comparision in worksheets are case insensitive, the default in VBA is case sensitive, unless you start a module with
'Option Compare Text'

b) Excel|Help|Find 'About text functions' will give you a good overview of all regular Excel text functions
 
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
EXCEL 2010 7 65
filter options in excel 2013 or 2016 3 42
stuck in average 16 47
Access: Retrieving Current Month's Orders for Invoice 6 25
In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now