+ Reply to Thread
Results 1 to 2 of 2

Finding the last date with data

  1. #1
    Registered User
    Join Date
    10-16-2009
    Location
    Boston
    MS-Off Ver
    Excel 2003
    Posts
    4

    Finding the last date with data

    In the attached example spread I'm looking to use an offset for any of the dates in column A to find a price in the reference table corresponding to the day before said date in 'A' that actually exists.

    The price for 1/1/2007 actually settles the last day the product was traded, so it would need to be choose the price (in the ref table) on the 29th of December since that was the last day it actually traded.

    I can't figure out how to work in the weekday function which was the only idea I'd had so far in order to do the date check.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding the last date with data

    I assume you want the last price of the day too....

    Try:

    =LOOKUP(2,1/($A$2:$A$44=K2-1),$D$2:$D$44)

    adjusting ranges as needed

    and copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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