+ Reply to Thread
Results 1 to 3 of 3

Excel Index Match with date and multiple criteria returning #N/A

  1. #1
    Registered User
    Join Date
    07-30-2020
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Question Excel Index Match with date and multiple criteria returning #N/A

    Hey guys I don't know what is wrong with my formula... from everything I see it should work. I'm entering it with ctrl+shift+enter and other arrays are working.

    I need to match both the date closest to or including a given date and match that to a customer's name.

    Formula:
    =INDEX('2020.07.30 Customer Balances'!O3302:O3316,MATCH(1,(("test")='2020.07.30 Customer Balances'!B3302:B3316)*(MAX(('2020.07.30 Customer Balances'!G3302:G3316<=R3302)*'2020.07.30 Customer Balances'!G3302:G3316)),0))

    excelCapture.PNG
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,458

    Re: Excel Index Match with date and multiple criteria returning #N/A

    With date are sorted as per sample, try:

    =LOOKUP(2,1/($A$2:$A$16="test")/($F$2:$F$16<=Q2),$N$2:$N$16)
    Quang PT

  3. #3
    Registered User
    Join Date
    07-30-2020
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Re: Excel Index Match with date and multiple criteria returning #N/A

    Quote Originally Posted by bebo021999 View Post
    With date are sorted as per sample, try:

    =LOOKUP(2,1/($A$2:$A$16="test")/($F$2:$F$16<=Q2),$N$2:$N$16)
    You're awesome! This worked, however it will only work as long as the dates are in order. I can't count on that 100% though.

    I would still rather the index/match work as it's more reliable long term though

+ 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. Index Match (multiple criteria) Skipping Duplicates & Returning Only Unique Values
    By johnwilliamboyle in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-05-2019, 12:09 PM
  2. [SOLVED] Returning the oldest date when index match has multiple matches
    By bridge4444 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2018, 01:56 AM
  3. Index and Match with multiple criteria and date
    By CaityA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2018, 05:55 AM
  4. [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
  5. Replies: 16
    Last Post: 01-05-2018, 11:04 PM
  6. [SOLVED] Two criteria Index Match on multiple sheets returning multiple values
    By Joak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-21-2014, 10:03 AM
  7. [SOLVED] Index match with multiple criteria and returning last value
    By L.Steele in forum Excel General
    Replies: 2
    Last Post: 05-30-2012, 02:27 PM

Tags for this Thread

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