+ Reply to Thread
Results 1 to 3 of 3

Weekly options from YAHOO Finance- get Next Fridays date

  1. #1
    Registered User
    Join Date
    05-04-2011
    Location
    GB
    MS-Off Ver
    Excel 2003
    Posts
    1

    Weekly options from YAHOO Finance- get Next Fridays date

    Hi there
    I have a Spreadsheet that can pull basic data of Yahoo and do some calculations.

    I would now like to add a link to pull the WEEKLY Option at the selected "Strike" price from YAHOO.

    The Weekly options expire on Fridays and the symbol for lookup is

    PCX110506C00024000 PCX is the symbol, 11 = year 05 =MM 06 = DD the Friday expiry date of the option C = CALL or PUT the rest is the strike price in this case 24 USD

    Doesn't matter if you don't understand the Stock market -- its manipulating this string is the problem.

    Now by a "Hyperlink" to this option I get the details

    For example http://finance.yahoo.com/q?s=PCX110506C00024000

    I can dynamically insert the symbol, C or P as required and the price but what I need to do is find a way of generating the YYMMDD piece for the Next Friday from the current date

    Any ideas anyone

    Thanks

    jimbo
    Last edited by jimbo45; 05-04-2011 at 04:37 AM.

  2. #2
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    462

    Re: Weekly options from YAHOO Finance- get Next Fridays date

    how about this..

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Weekly options from YAHOO Finance- get Next Fridays date

    Maybe:

    =TEXT(TODAY()-WEEKDAY(TODAY(),3)+IF(WEEKDAY(TODAY(),3)>4,11,4),"YYMMDD")

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1