+ Reply to Thread
Results 1 to 5 of 5

INDEX, MATCH: multiple criteria with iterative data

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    3

    INDEX, MATCH: multiple criteria with iterative data

    Hi there,
    Since this is my first and hopefully not last post, I would like to introduce myselfe. I am 26, female, living in Zurich Switzerland and studying at the University of Zurich and working part time in the financial industry.
    I have a sheet with different identification numbers in the top row and trade date with corresponding daily prices in the columns (sheet full). I now want to find (in sheet TOTAL) for a specific date and identification number the price. The problem is that the identification numbers have common but not totally equal trade dates.
    I tried to solve this problem with a SUMIFS function and also with INDEX and two MATCH nested.
    Any ideas?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: INDEX, MATCH: multiple criteria with iterative data

    What do you mean by "common but not totally equal trade dates" In your example, you have mostly dates from 2011 in full for two of your IDs. For CH0011074785, you have a lot of gaps. Do you want the last P-last prior to a blank date?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-04-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: INDEX, MATCH: multiple criteria with iterative data

    Hii, thanks for your answer. I only want the fields to be filled with the original P-last, not a copy of the last p-last. The sheet I am working with contains over 300 IDs, most of them have 450-500 trading days. I just mentioned this because I want to emphasize that each ID is different, so the search has to be done by the correct ID and the specific date (horizontally and vertically).

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: INDEX, MATCH: multiple criteria with iterative data

    Try this in TOTAL!B2,

    =SUMIF(INDEX(Full!$A:$H,0,MATCH($A2,Full!$A$1:$H$1,0)),B$1,INDEX(Full!$A:$H,0,MATCH($A2,Full!$A$1:$H$1,0)+1))

    Then copy down & across. Adjust the ranges.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Registered User
    Join Date
    01-04-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: INDEX, MATCH: multiple criteria with iterative data

    This works perfectly! Thank you very much!!!!!

+ 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