Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Send Object Command - Two attachments
 
Posts: n/a
Default Extract String based on condition

How can I extraxt a string that begins with a certain number and is only X
amount of digits long?
Example: I need to extract where an "8" is found, and the next 6 spaces that
immediately follow:

fgte8575684vrdef - Resut should be 8575684

Any ideas? Thanks.

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Extract String based on condition

=MID(A1,Find("8",A1),8)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Send Object Command - Two attachments"
soft.com wrote in message
...
How can I extraxt a string that begins with a certain number and is only X
amount of digits long?
Example: I need to extract where an "8" is found, and the next 6 spaces

that
immediately follow:

fgte8575684vrdef - Resut should be 8575684

Any ideas? Thanks.



  #3   Report Post  
RagDyer
 
Posts: n/a
Default Extract String based on condition

Bob didn't really mean that.
What he really wanted to say was :

=MID(A1,FIND("8",A1),7)

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Bob Phillips" wrote in message
...
=MID(A1,Find("8",A1),8)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Send Object Command - Two attachments"
soft.com wrote in

message
...
How can I extraxt a string that begins with a certain number and is only

X
amount of digits long?
Example: I need to extract where an "8" is found, and the next 6 spaces

that
immediately follow:

fgte8575684vrdef - Resut should be 8575684

Any ideas? Thanks.




  #4   Report Post  
Domenic
 
Posts: n/a
Default Extract String based on condition

Try...

=IF(MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"01 23456789")),1)+0=8,MID(
A1,FIND(8,A1),7),"")

Hope this helps!

In article ,
"Send Object Command - Two attachments"
soft.com wrote:

How can I extraxt a string that begins with a certain number and is only X
amount of digits long?
Example: I need to extract where an "8" is found, and the next 6 spaces that
immediately follow:

fgte8575684vrdef - Resut should be 8575684

Any ideas? Thanks.

  #5   Report Post  
Send Object Command - Two attachments
 
Posts: n/a
Default Extract String based on condition

Thanks to both

"RagDyer" wrote:

Bob didn't really mean that.
What he really wanted to say was :

=MID(A1,FIND("8",A1),7)

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Bob Phillips" wrote in message
...
=MID(A1,Find("8",A1),8)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Send Object Command - Two attachments"
soft.com wrote in

message
...
How can I extraxt a string that begins with a certain number and is only

X
amount of digits long?
Example: I need to extract where an "8" is found, and the next 6 spaces

that
immediately follow:

fgte8575684vrdef - Resut should be 8575684

Any ideas? Thanks.





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
Extract sub string sixbeforedawn Excel Worksheet Functions 2 October 24th 05 09:50 AM
Counting Across Multiple Ranges, Based on Condition Stacy Excel Worksheet Functions 2 June 22nd 05 08:35 PM
count duplicate (or, inversely, unique) entries, but based on a condition markx Excel Worksheet Functions 3 March 8th 05 06:57 PM
Extract hyperlink string from excel cell Ryan Sapien Links and Linking in Excel 1 January 20th 05 12:24 AM
How do you extract numbers from a string of chacters in a cell (E. blackbeemer Excel Worksheet Functions 6 November 12th 04 09:00 AM


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

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"