PC Review


Reply
Thread Tools Rate Thread

How do I extract part of a text in a cell?

 
 
=?Utf-8?B?Q0hJ?=
Guest
Posts: n/a
 
      6th Jul 2007
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      6th Jul 2007
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

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      6th Jul 2007
>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<space>month<space>price<space>symbol

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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract part of a cell André Lopes -Brazil Microsoft Excel Worksheet Functions 14 9th Nov 2008 12:27 AM
I saw somebody else extract part of a cell - can you help? AngrieWoman Microsoft Excel Misc 4 26th Sep 2004 05:16 PM
Extract part of a cell value GazMo Microsoft Excel Misc 4 22nd Sep 2004 08:28 PM
Extract part of a cell value GazMo Microsoft Excel Misc 0 22nd Sep 2004 06:36 PM
Extract data in the right part of a cell =?Utf-8?B?cGx1bXN0b25l?= Microsoft Excel Misc 5 3rd Jul 2004 08:09 PM


Features
 

Advertising
 

Newsgroups
 


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