Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default second character from the right

As Steve pointed out, but not in the thread for some reason, there was a
typo in the second formula;

=IF(LEFT(RIGHT(A2,1),1)<="L","Call","Put")

should be

=IF(LEFT(RIGHT(A2,2),1)<="L","Call","Put")

--
Regards,
Tom Ogilvy

Tom Ogilvy wrote in message
...
in C2 put in the formula

=TEXT(DATE(2003,CODE(LEFT(RIGHT(A2,1),1))-64,1),"mmm")


in D2:

=IF(LEFT(RIGHT(A2,1),1)<="L","Call","Put")


--
Regards,
Tom Ogilvy


"_______Tim_______" wrote in message
...
Hi,

If I have Stock Option Symbol "QTHHF" in A2 and the rule
is the second character from the right "H" tells me that
the Option expires in August and is a Call, how can I
write a macro to insert the month in column C and the Call
or Putt in column D?

Month Call Put
Jan A M
Feb B N
Mar C O
Apr D P
May E Q
Jun F R
Jul G S
Aug H T
Sep I U
Oct J V
Nov K W
Dec L X

Second from right.

Thank you for your help.

Regards, Tim





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default second character from the right

whoops, sorry Tom...don't know what happened there!

On Tue, 12 Aug 2003 19:58:18 -0400, "Tom Ogilvy"
wrote:

As Steve pointed out, but not in the thread for some reason, there was a
typo in the second formula;

=IF(LEFT(RIGHT(A2,1),1)<="L","Call","Put")

should be

=IF(LEFT(RIGHT(A2,2),1)<="L","Call","Put")


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
Excel 2007 - Formatting text in cell (character by character) TomC Excel Discussion (Misc queries) 0 January 29th 10 07:25 PM
Excel-Match 1st text character in a string to a known character? bushlite Excel Worksheet Functions 2 January 15th 07 06:36 PM
Can I create a special character for the Character Map? JohnP Excel Discussion (Misc queries) 3 December 24th 06 01:10 AM
Typing a quote character Vs pasting a quote character= what happens to the resulting CSV? Interesting!! Tom Ogilvy Excel Programming 0 August 3rd 03 02:53 AM
Typing a quote character Vs pasting a quote character= whathappens to the resulting CSV? Interesting!! Jon Peltier[_3_] Excel Programming 0 August 3rd 03 02:22 AM


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