#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default filter text


Am building a sheet to quickly do a price analysis of materials, as the
prices are updated almost monthly I would prefer to copy and past the
data into excel which works, only one of the colums contains all
information which I need to break up for excell to use it for a vlookup
function.:Bgr

I have the following text in a column.

90X6M DUROFLO UPVC P/PIPE CL9
140X6M DUROFLO UPVC P/PIPE CL12

I want to exctract the 90 and the 9 for the first one and the second
140 and 12 etc, all values are similar in writing but just contain
different numbers.

Thanks,

W


--
willemeulen

Blink1 *Willem van der Meulen* BSc Soil & Water Eng (Netherlands)
------------------------------------------------------------------------
willemeulen's Profile: http://www.thecodecage.com/forumz/member.php?userid=285
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=103792

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default filter text

=LEFT(A1,SEARCH("X",A1)-1)
=RIGHT(A1,LEN(A1)-SEARCH("CL",A1)-1)


"willemeulen" wrote:


Am building a sheet to quickly do a price analysis of materials, as the
prices are updated almost monthly I would prefer to copy and past the
data into excel which works, only one of the colums contains all
information which I need to break up for excell to use it for a vlookup
function.:Bgr

I have the following text in a column.

90X6M DUROFLO UPVC P/PIPE CL9
140X6M DUROFLO UPVC P/PIPE CL12

I want to exctract the 90 and the 9 for the first one and the second
140 and 12 etc, all values are similar in writing but just contain
different numbers.

Thanks,

W


--
willemeulen

Blink1 *Willem van der Meulen* BSc Soil & Water Eng (Netherlands)
------------------------------------------------------------------------
willemeulen's Profile: http://www.thecodecage.com/forumz/member.php?userid=285
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=103792


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default filter text

If there is *always* an "X" after the first number and an CL in front of the
last number, then 'Teethless mama' has given you the answer you need.
However, if this will not always be the case, then you can try the
following:

Return leading number from a cell...

=LOOKUP(9.9E+307,--LEFT(A1,ROW($1:$99)))

Return the ending number from a cell...

=LOOKUP(9.9E+307,--RIGHT(A1,ROW($1:$99)))

--
Rick (MVP - Excel)


"willemeulen" wrote in message
...

Am building a sheet to quickly do a price analysis of materials, as the
prices are updated almost monthly I would prefer to copy and past the
data into excel which works, only one of the colums contains all
information which I need to break up for excell to use it for a vlookup
function.:Bgr

I have the following text in a column.

90X6M DUROFLO UPVC P/PIPE CL9
140X6M DUROFLO UPVC P/PIPE CL12

I want to exctract the 90 and the 9 for the first one and the second
140 and 12 etc, all values are similar in writing but just contain
different numbers.

Thanks,

W


--
willemeulen

Blink1 *Willem van der Meulen* BSc Soil & Water Eng (Netherlands)
------------------------------------------------------------------------
willemeulen's Profile:
http://www.thecodecage.com/forumz/member.php?userid=285
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=103792


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
My filter does not pick up all text Katie Excel Discussion (Misc queries) 5 November 20th 08 02:57 PM
filter in text Robin Excel Discussion (Misc queries) 1 July 3rd 07 07:46 AM
Filter text in a column by its Indent, to remove certain text 99TZ250 Excel Discussion (Misc queries) 1 May 21st 06 08:53 AM
Keep text filter away numbers KH_GS Excel Worksheet Functions 1 March 30th 06 07:30 AM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM


All times are GMT +1. The time now is 09:20 AM.

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

About Us

"It's about Microsoft Excel"