+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Look up dates & return value

Hybrid View

  1. #1
    Registered User
    Join Date
    10-18-2010
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    73

    Look up dates & return value

    Table 1 has a list of stock prices for specific dates.

    Table 2 has a list of dates and I'm trying to automatically pull in the stock prices from table 1.

    I'm trying to write a formula that compares the date in table 2 to the date in table 1 and then returns the correct stock price. The catch is that they will not be an exact match. The stock price in table 1 remains current until a new price has been established in table 1. So, in my attached example, I need the formula to know that the date in table 2 is after the effective date in table 1 but before the next effective date in table 1.

    This is very difficult for me to explain properly. Does this make sense?

    Thanks,
    Steve
    Attached Files Attached Files

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Look up dates & return value

    How about:

    =VLOOKUP(B17,$B$6:$C$12,2,TRUE)
    Note that Table 1 must be sorted by the effective date.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ 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