+ Reply to Thread
Results 1 to 3 of 3

Index, Match, Offset Formula

  1. #1
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Index, Match, Offset Formula

    In A27:B56 there are a ticker and date for each example and in D27:D56 there is a duration. I am trying to write a formula that matches the ticker and date for each example with the ticker and date in A369:A397 and I369:I397.

    If a ticker and date match can be found then return % that corresponds to the duration #.

    For example:

    Ticker: LCC Date:5/25/2010 Duration=5

    The ticker and date matches with LCC in A369 and 5/25/2010 in I369 so return the 5th number in row 369 which would be -9.03%

    I need to be able to drag this formula from E27:E56

    Anyhelp would be great!
    Attached Files Attached Files
    Last edited by rhudgins; 06-30-2010 at 08:11 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Index, Match, Offset Formula

    Given your use of XL2007 you might find it simplest to use a SUMIFS construct, eg:

    E27:
    =IF(ISNUMBER($D27),SUMIFS(INDEX($R$369:$BX$397,0,$D27),$A$369:$A$397,$A27,$I$369:$I$397,$B27),"")
    copied down

    the SUMIFS will return 0 by default where no match is found - ie nothing to sum

  3. #3
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Index, Match, Offset Formula

    Thanks this works perfectly!

+ 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