Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Chi Chi is offline
external usenet poster
 
Posts: 69
Default How do I extract part of a text in a cell?

I am copying option information from the CBOE website, which contains a
string of characters identifying the option expiry date, strike price, and
ticker symbol (e.g. 07 Jul 55.00 (BZHSK-E). I would like to pull out the 55.00
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default How do I extract part of a text in a cell?

There are a couple of ways and the correct answer depends on the layout of
your data strings. In the one you supplied the 5 is the 8th character and you
want 5 characters so this works:-

=MID(A1,8,5)


It may be that you r strings aren't that regular and there are ways around
that using 'Find' so post again with more string example is this doesn't work.

Mike


"CHI" wrote:

I am copying option information from the CBOE website, which contains a
string of characters identifying the option expiry date, strike price, and
ticker symbol (e.g. 07 Jul 55.00 (BZHSK-E). I would like to pull out the 55.00

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default How do I extract part of a text in a cell?

I am copying option information from the CBOE website, which contains a
string of characters identifying the option expiry date, strike price, and
ticker symbol (e.g. 07 Jul 55.00 (BZHSK-E). I would like to pull out the
55.00


If each string value is always laid out as you showed it...

year<spacemonth<spaceprice<spacesymbol

then you can use Split to get at the piece you want. For example...

InfoLine = "07 Jul 55.00 (BZHSK-E)"
Price = Split(InfoLine)(2)

Rick

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 part of a cell André Lopes -Brazil Excel Worksheet Functions 14 November 9th 08 12:27 AM
Extract part of a text string Martin B Excel Worksheet Functions 7 January 13th 08 04:36 PM
How do I extract part of a text string Brennan Excel Discussion (Misc queries) 2 November 28th 06 07:26 PM
Extract just numeric part of mixed text/number entry? Heidi Excel Worksheet Functions 7 June 1st 06 07:33 PM
Is there a function to extract the URL part of a hyperlink in another cell? Rufus V. Smith Excel Worksheet Functions 4 March 28th 06 06:39 PM


All times are GMT +1. The time now is 01:06 AM.

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"