+ Reply to Thread
Results 1 to 4 of 4

Lookup date and ticker and return price

  1. #1
    Registered User
    Join Date
    04-15-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2011
    Posts
    32

    Question Lookup date and ticker and return price

    This should be fairly easy, but for some reason I am really struggling...

    What I need is a formula that finds the ticker (actually it is a CRSP permanent number) and the date in Sheet 1 and returns the price in Sheet 2 (cell B2 etc.), and if no price is available, return 0.

    I have attached a shrinked example (the actual dataset contains more than 150.000 observations). example.xlsx

    Hope you are able to help me. Many thanks in advance!

    Best,
    Borge

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Lookup date and ticker and return price

    =SUMIFS(Sheet1!$C$2:$C$112,Sheet1!$A$2:$A$112,B$1,Sheet1!$B$2:$B$112,$A2)

    copy across and down

  3. #3
    Registered User
    Join Date
    04-15-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2011
    Posts
    32

    Re: Lookup date and ticker and return price

    Thank you so much for the swift reply! This works perfectly - totally forgot about the SUMIFS-function

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Lookup date and ticker and return price

    You're Welcome!

+ 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