Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Get Part of String

I have the below text values (Column A) in a sheet. For each value, I need
to extract the "8" or "10" within each value into column B. This part of the
text string represents an integer that represents the product length.

Given the fact that this "product length" part maybe a single digit or a
double digit number, I'm trying to find a formula that will extract it no
matter if it's 1 or 2 digits.

Any help?

A B
----------------------------------
1 2x8 #1 8
2 2x8 #2 8
3 2x8 P 8
4 2x8 #3 8
5 2x8 #4 8
6 2x8 HM 8
6 2x10 #1 10
7 2x10 #2 10
8 2x10 P 10




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 913
Default Get Part of String

On Tue, 3 Mar 2009 12:05:17 -0600, "Scott"
wrote:

I have the below text values (Column A) in a sheet. For each value, I need
to extract the "8" or "10" within each value into column B. This part of the
text string represents an integer that represents the product length.

Given the fact that this "product length" part maybe a single digit or a
double digit number, I'm trying to find a formula that will extract it no
matter if it's 1 or 2 digits.

Any help?

A B
----------------------------------
1 2x8 #1 8
2 2x8 #2 8
3 2x8 P 8
4 2x8 #3 8
5 2x8 #4 8
6 2x8 HM 8
6 2x10 #1 10
7 2x10 #2 10
8 2x10 P 10




Try this formula:

=TRIM(MID(A1,FIND("x",A1)+1,2))

Hope this helps / Lars-Åke

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
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
part of string [email protected][_2_] Excel Programming 3 November 17th 05 12:22 PM
Use part of string Tempy Excel Programming 5 September 20th 05 11:44 AM
Find a part of a string Peter Pantus Excel Programming 3 March 15th 05 09:03 PM
extracting part of string value Dr. Schwartz[_3_] Excel Programming 3 April 23rd 04 01:23 PM


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