ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   filter text (https://www.excelbanter.com/excel-worksheet-functions/233033-filter-text.html)

willemeulen[_26_]

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


Teethless mama

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



Rick Rothstein

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




All times are GMT +1. The time now is 08:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com