+ Reply to Thread
Results 1 to 7 of 7

Index Match Formula with date and code as criteria

  1. #1
    Registered User
    Join Date
    01-11-2019
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    5

    Post Index Match Formula with date and code as criteria

    Hi there,

    i am quite new to excel and would like to search a way to find the dates from the table list as per the attachment.
    I try use the index match with multiple criteria but can't actually get it. The result shows #VALUE!.
    Perhaps that i do not understand how the formula works and require some advice for this.

    Formula use: =INDEX(C8:C15,MATCH(1,(B4:B9=B13)*(D4:D9=C13),0))

    Appreciate the advice.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,914

    Re: Index Match Formula with date and code as criteria

    Welcome to the forum!

    What results are you expecting and why?

    This will not work, but you should know that your ranges need to match, whatever you are doing:

    =INDEX(C4:C9,MATCH(1,(B4:B9=B13)*(D4:D9=C13),0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-11-2019
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    5

    Re: Index Match Formula with date and code as criteria

    Hi there,

    I guess the index match formula can't get what i wish for. The expected result that i wish to get from here will be the dates from Column C - End Date.

    Requirement:
    B13 - random dates
    C13 - Codes given

    Expected result: formula to find the dates in Column C - End Date and show 6/2/2018 as the result.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Index Match Formula with date and code as criteria

    =lookup(2,1/(($b$4:$b$9<=$b13)*($c$4:$c$9>=$b13)*($d$4:$d$9=$c13)),$c$4:$c$9)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Index Match Formula with date and code as criteria

    Like this?

    =SUMPRODUCT(--($D$4:$D$9=C13),$B$4:$B$9<=B13,$C$4:$C$9)

  6. #6
    Registered User
    Join Date
    01-11-2019
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    5

    Re: Index Match Formula with date and code as criteria

    Hi all,

    The formula below works. I try with different date and it gives the correct result:

    =lookup(2,1/(($b$4:$b$9<=$b13)*($c$4:$c$9>=$b13)*($d$4:$d$9=$c13)),$c$4:$c$9)

    Thanks all for your time on this.

  7. #7
    Registered User
    Join Date
    09-21-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    93

    Re: Index Match Formula with date and code as criteria

    simple look up function will also give u the desired result.
    in c13 =LOOKUP(B14,$B$4:$B$9,$D$4:$D$9)

    drag down to c14

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Index Match with multiple criteria and date criteria
    By snolem75 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2018, 03:51 PM
  2. Replies: 16
    Last Post: 01-05-2018, 11:04 PM
  3. VBA Code for Index/Match/Match to input into excel based on 2 criteria inside form
    By Carl Fisher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2017, 12:11 PM
  4. [SOLVED] Index Match Based on One Date Criteria, Table Contains Beginning Date and End Date
    By jcox1953 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2014, 02:41 PM
  5. [SOLVED] INDEX date that MATCH on date range, MATCH code(string)
    By Dahlia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2014, 03:33 AM
  6. Index and Match with Two Criteria, and date Match Type is Less Than
    By ExcelQuestion in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-11-2013, 08:57 AM
  7. [SOLVED] Index match formula to search for two criteria (date & name)
    By davechamp1983 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2012, 10:00 PM

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