#1   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 390
Default Parse text

Hello All,

I have a column that is not consistent in the way data stored:

75 F1 Automatic
100 M1 Manual
94.02 C1 As requested

Note every column start with a number.

All I need is the F1, M1, C1 in the next column.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Parse text

Hi Max
Ensure that you have two empty columns to the right of your data column.
Select the ColumnDataText to ColumnsDelimitedcheck SpaceFinish.
The data you want will now be in the second column.

--
Regards
Roger Govier

"Max" wrote in message
...
Hello All,

I have a column that is not consistent in the way data stored:

75 F1 Automatic
100 M1 Manual
94.02 C1 As requested

Note every column start with a number.

All I need is the F1, M1, C1 in the next column.

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 390
Default Parse text

It worked for the most part, but I found more problems like:

Medicare Fac Emp 105% T4 - Bilateral
Medicare 105% T4 - Bilateral

All I need is the T4

"Roger Govier" wrote:

Hi Max
Ensure that you have two empty columns to the right of your data column.
Select the ColumnDataText to ColumnsDelimitedcheck SpaceFinish.
The data you want will now be in the second column.

--
Regards
Roger Govier

"Max" wrote in message
...
Hello All,

I have a column that is not consistent in the way data stored:

75 F1 Automatic
100 M1 Manual
94.02 C1 As requested

Note every column start with a number.

All I need is the F1, M1, C1 in the next column.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Parse text

Hi Max,

Supposing you have the data in column A, use the following formula:-

=IF(ISNUMBER(FIND("F1",A1)),"F1",IF(ISNUMBER(FIND( "M1",A1)),"M1",IF(ISNUMBER(FIND("C1",A1)),"C1","F1 , M1, C1 not exists")))
Thanks.
--
Click on Yes, if it is useful.

Thanks & Best Regards,
Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)


New Delhi, India


"Max" wrote:

Hello All,

I have a column that is not consistent in the way data stored:

75 F1 Automatic
100 M1 Manual
94.02 C1 As requested

Note every column start with a number.

All I need is the F1, M1, C1 in the next column.

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Parse text

Hi Max
That's the problem if your data is not consistent.
Equally, it will be difficult to give you a formula solution, when there is
no "rule" that we can use as to where the data is that you require.

If there was always a "-" character in the cell, following the value you
want to extract, then we could use a formula entered in B1
=MID(A1,Find("-",A1)-3,2)
Copy down for as far as required.
--
Regards
Roger Govier

"Max" wrote in message
...
It worked for the most part, but I found more problems like:

Medicare Fac Emp 105% T4 - Bilateral
Medicare 105% T4 - Bilateral

All I need is the T4

"Roger Govier" wrote:

Hi Max
Ensure that you have two empty columns to the right of your data column.
Select the ColumnDataText to ColumnsDelimitedcheck SpaceFinish.
The data you want will now be in the second column.

--
Regards
Roger Govier

"Max" wrote in message
...
Hello All,

I have a column that is not consistent in the way data stored:

75 F1 Automatic
100 M1 Manual
94.02 C1 As requested

Note every column start with a number.

All I need is the F1, M1, C1 in the next column.

Thanks





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Parse text

On Fri, 3 Apr 2009 05:59:01 -0700, Max wrote:

Hello All,

I have a column that is not consistent in the way data stored:

75 F1 Automatic
100 M1 Manual
94.02 C1 As requested

Note every column start with a number.

All I need is the F1, M1, C1 in the next column.

Thanks


Based on what you've posted so far:

If it is the case that the string you wish to extract will always be the first
substring that consists of a capital letter followed by a single digit, then
one solution would be to download and install Longre's free morefunc.xll add-in
(use Google to find a working download site), and then use this Regular
Expression formula:

=REGEX.MID(A1,"\b[A-Z]\d\b")

If your two character string will *always* have a space before and after, then
you could also use:

=REGEX.MID(A1,"(?<=\s)[A-Z]\d(?=\s)")
--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse hyperlink from visible text Duane Excel Worksheet Functions 2 March 11th 08 02:11 AM
parse text string Dave F[_2_] Excel Worksheet Functions 4 April 29th 07 07:48 AM
Parse text & numbers & format dmiami Excel Worksheet Functions 1 August 25th 05 04:52 PM
Parse text & numbers & format dmiami Excel Worksheet Functions 2 August 25th 05 03:27 PM
Parse text & Numbers Jack Excel Worksheet Functions 2 December 18th 04 05:18 AM


All times are GMT +1. The time now is 01:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"