A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Seperate data



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2010, 08:08 AM posted to microsoft.public.excel.misc
JJ
external usenet poster
 
Posts: 346
Default Seperate data

I need help please. How do I go about to seperate data in one cell ex:
A1
1-------2-b0-40810
A2
2-----------1-03-0060

I typically want to seperate cell A1, 1------from 2-b0-40810 and
cell A2, 2------from 1-03-0060.

Tx
  #2  
Old April 21st, 2010, 08:19 AM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Seperate data

1-------2-b0-40810

The hyphen between 1 and the second piece; represent real hyphen or some
other text values..Could you post the actual data or confirm whether the
samples posted are the real ones.

--
Jacob (MVP - Excel)


"JJ" wrote:

I need help please. How do I go about to seperate data in one cell ex:
A1
1-------2-b0-40810
A2
2-----------1-03-0060

I typically want to seperate cell A1, 1------from 2-b0-40810 and
cell A2, 2------from 1-03-0060.

Tx

  #3  
Old April 21st, 2010, 08:25 AM posted to microsoft.public.excel.misc
JJ
external usenet poster
 
Posts: 346
Default Seperate data

Jacob

this is the actual data. you will see from the data that the second piece of
info is not all in line.

tx.
  #4  
Old April 21st, 2010, 08:45 AM posted to microsoft.public.excel.misc
JJ
external usenet poster
 
Posts: 346
Default Seperate data

The length of data of the second section is not all the same. Some are 9
characters long and others are 11 characters long.

Tx.

"JJ" wrote:

Jacob

this is the actual data. you will see from the data that the second piece of
info is not all in line.

tx.

"Jacob Skaria" wrote:

1-------2-b0-40810

The hyphen between 1 and the second piece; represent real hyphen or some
other text values..Could you post the actual data or confirm whether the
samples posted are the real ones.

--
Jacob (MVP - Excel)


"JJ" wrote:

I need help please. How do I go about to seperate data in one cell ex:
A1
1-------2-b0-40810
A2
2-----------1-03-0060

I typically want to seperate cell A1, 1------from 2-b0-40810 and
cell A2, 2------from 1-03-0060.

Tx

  #5  
Old April 21st, 2010, 09:49 AM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Seperate data

With data in A1

In B1
=LEFT(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},MID(A1,
FIND("-",A1),255)&"0123456789"))+FIND("-",A1)-2)

In C1
=MID(A1,LEN(B1)+1,255)

--
Jacob (MVP - Excel)


"JJ" wrote:

The length of data of the second section is not all the same. Some are 9
characters long and others are 11 characters long.

Tx.

"JJ" wrote:

Jacob

this is the actual data. you will see from the data that the second piece of
info is not all in line.

tx.

"Jacob Skaria" wrote:

1-------2-b0-40810

The hyphen between 1 and the second piece; represent real hyphen or some
other text values..Could you post the actual data or confirm whether the
samples posted are the real ones.

--
Jacob (MVP - Excel)


"JJ" wrote:

I need help please. How do I go about to seperate data in one cell ex:
A1
1-------2-b0-40810
A2
2-----------1-03-0060

I typically want to seperate cell A1, 1------from 2-b0-40810 and
cell A2, 2------from 1-03-0060.

Tx

  #6  
Old April 21st, 2010, 10:01 AM posted to microsoft.public.excel.misc
JJ
external usenet poster
 
Posts: 346
Default Seperate data

hi Jacob

I tried it and it works great. Tx, appreciate your assistance.

"Jacob Skaria" wrote:

With data in A1

In B1
=LEFT(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},MID(A1,
FIND("-",A1),255)&"0123456789"))+FIND("-",A1)-2)

In C1
=MID(A1,LEN(B1)+1,255)

--
Jacob (MVP - Excel)


"JJ" wrote:

The length of data of the second section is not all the same. Some are 9
characters long and others are 11 characters long.

Tx.

"JJ" wrote:

Jacob

this is the actual data. you will see from the data that the second piece of
info is not all in line.

tx.

"Jacob Skaria" wrote:

1-------2-b0-40810

The hyphen between 1 and the second piece; represent real hyphen or some
other text values..Could you post the actual data or confirm whether the
samples posted are the real ones.

--
Jacob (MVP - Excel)


"JJ" wrote:

I need help please. How do I go about to seperate data in one cell ex:
A1
1-------2-b0-40810
A2
2-----------1-03-0060

I typically want to seperate cell A1, 1------from 2-b0-40810 and
cell A2, 2------from 1-03-0060.

Tx

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.