Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Text function MID, RIGHT, LEN

Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Text function MID, RIGHT, LEN

Please note that this is an array formula. You create array formulas in the
same way that you create other formulas, except you press CTRL+SHIFT+ENTER to
enter the formula. If successful in 'Formula Bar' you can notice the curly
braces at both ends like "{=<formula}"

In A1 MY WORLD - AUSTRALIA BIB, 300 CL

In B1
=MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"01234 56789")),COUNT(1*MID(MID(A1,MIN(SEARCH({0,1,2,3,4, 5,6,7,8,9},A1&"0123456789")),99),ROW($1:$9),1)))

If this post helps click Yes
---------------
Jacob Skaria


"tomjoe" wrote:

Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy



  #3   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Text function MID, RIGHT, LEN

=STXT(A1;EQUIV(VRAI;ESTNUM(CNUM(STXT(A1;LIGNE($1:$ 255);1)));0);SOMME(--
(ESTNUM(CNUM(STXT(A1;LIGNE($1:$255);1))))))
Validate with Shift+Ctrl+Enter

http://cjoint.com/?jvkwRz4kLT

JB
http://boisgontierjacques.free.fr/

On 21 sep, 09:55, tomjoe wrote:
Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?

Tommy


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Text function MID, RIGHT, LEN

Hi,

A non array solution

=LOOKUP(99^99,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0 123456789")),ROW($1:$10000))))

Mike

"tomjoe" wrote:

Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy



  #5   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Text function MID, RIGHT, LEN


=MID(A1,MATCH(TRUE,ISNUMBER(VALUE(MID(A1,ROW($1:$2 55),1))),0),SUM(--
(ISNUMBER(VALUE(MID(A1,ROW($1:$255),1))))))
Validate with Sfift+Ctrl+enterr

JB

On 21 sep, 10:22, JB wrote:
=STXT(A1;EQUIV(VRAI;ESTNUM(CNUM(STXT(A1;LIGNE($1:$ 255);1)));0);SOMME(--
(ESTNUM(CNUM(STXT(A1;LIGNE($1:$255);1))))))
Validate with Shift+Ctrl+Enter

http://cjoint.com/?jvkwRz4kLT

JBhttp://boisgontierjacques.free.fr/

On 21 sep, 09:55, tomjoe wrote:



Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL


I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy- Masquer le texte des messages précédents -


- Afficher le texte des messages précédents -




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Text function MID, RIGHT, LEN

Very much creativity and probably helpful solutions.
I will look into this later today.
Mike: Is it an array fuction I can see within your sumproduct fuction?

Tommy


Mike H skrev:

Hi,

A non array solution

=LOOKUP(99^99,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0 123456789")),ROW($1:$10000))))

Mike

"tomjoe" wrote:

Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Text function MID, RIGHT, LEN

Hi,

Sumproduct is an array but doesn't have to be array entered. My formula
doesn't use sumproduct and doesn't need to be array entered.

Mike

"tomjoe" wrote:

Very much creativity and probably helpful solutions.
I will look into this later today.
Mike: Is it an array fuction I can see within your sumproduct fuction?

Tommy


Mike H skrev:

Hi,

A non array solution

=LOOKUP(99^99,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0 123456789")),ROW($1:$10000))))

Mike

"tomjoe" wrote:

Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Text function MID, RIGHT, LEN

On Mon, 21 Sep 2009 00:55:02 -0700, tomjoe
wrote:

Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy



If you always want the second to last <space separated string, you could try
this:

=LEFT(TRIM(RIGHT(SUBSTITUTE(TRIM(A1)," ",REPT(" ",99)),198)),
FIND(" ",TRIM(RIGHT(SUBSTITUTE(TRIM(A1)," ",REPT(" ",99)),198)))-1)

--ron
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Text function MID, RIGHT, LEN

Does your text strings **always** end with " CL" (there is a space before
the CL) as your examples seem to indicate? If so...

=TRIM(RIGHT(SUBSTITUTE(LEFT(A1,LEN(A1)-3)," ",REPT(" ",99)),99))

This formula is to be entered normally.

--
Rick (MVP - Excel)


"tomjoe" wrote in message
...
Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy




  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Text function MID, RIGHT, LEN

Is there **always** a comma before the number that you want and, if so, is
it **always** the last comma in the text string? If that is the case, and if
my other posting doesn't work for you (if it works, use it before using this
one)...

=LOOKUP(999999,--LEFT(TRIM(RIGHT(SUBSTITUTE(A1,",",REPT("
",99)),99)),ROW($1:$99)))

This is also a normally entered formula and it assumes your number will
never be one million or more.

--
Rick (MVP - Excel)


"tomjoe" wrote in message
...
Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy






  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Text function MID, RIGHT, LEN

My formula returns the number as a text string... if you need that number to
be a real number, use this modification to my formula instead...

=--TRIM(RIGHT(SUBSTITUTE(LEFT(A1,LEN(A1)-3)," ",REPT(" ",99)),99))

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
Does your text strings **always** end with " CL" (there is a space before
the CL) as your examples seem to indicate? If so...

=TRIM(RIGHT(SUBSTITUTE(LEFT(A1,LEN(A1)-3)," ",REPT(" ",99)),99))

This formula is to be entered normally.

--
Rick (MVP - Excel)


"tomjoe" wrote in message
...
Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right
of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy





  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Text function MID, RIGHT, LEN

Thanks.
OK, so you entered the bracets {0,1,2,3,4,5,6,7,8,9} with the keyboard.
I liked your formula, but somehow I can not get it to work.
In Europe we use other names of the formulas, of course, and also we use
semicolon instead of the comma, because comma is reserved for a decimal
separator. It might be something I missed in the translation.
I will look more into it tomorrow.

Tommy

Mike H skrev:

Hi,

Sumproduct is an array but doesn't have to be array entered. My formula
doesn't use sumproduct and doesn't need to be array entered.

Mike

"tomjoe" wrote:

Very much creativity and probably helpful solutions.
I will look into this later today.
Mike: Is it an array fuction I can see within your sumproduct fuction?

Tommy


Mike H skrev:

Hi,

A non array solution

=LOOKUP(99^99,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0 123456789")),ROW($1:$10000))))

Mike

"tomjoe" wrote:

Hi
I try to extract part of a text:
I want to extract the numbers 300, 200 and 5 in the column to the right of
the textstrings under.
MY WORLD - AUSTRALIA BIB, 300 CL
SAVANNAH CHARD FLO-FAIRTRADE BIB, 200 CL
HAMMER LONDON DRY GIN (USA), 5 CL

I have tried:
=MID(B257,FIND(",",B257,1)+1,LEN(B257))
This gives me also the CL (i.e. 300 CL).
Someone who now how I can fix this?


Tommy



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
using a conditional suffix in text function format syntax=text(value,format_text) Brotherharry Excel Worksheet Functions 1 January 13th 09 03:03 PM
Can Text Function change output text color? epiekarc Excel Discussion (Misc queries) 1 December 31st 08 02:58 AM
Advanced text function (combining text) Johan[_2_] Excel Worksheet Functions 2 March 27th 08 10:05 PM
Using Concatenate function to generate text in Text Box Mary S. Charts and Charting in Excel 1 December 14th 05 08:55 PM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM


All times are GMT +1. The time now is 10:18 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"