+ Reply to Thread
Results 1 to 3 of 3

Index-Match array giving first value when no match

  1. #1
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Index-Match array giving first value when no match

    Hi,

    I'm using an array to return the most recent value in an index-match.

    =INDEX($D$2:$D$2000,MATCH(MAX(($C$2:$C$2000=$I2)*($A$2:$A$2000)),(($C$2:$C$2000=$I2)*($A$2:$A$2000)),0))

    (I've attached the workbook. In that example the slots in red should error because there is no corresponding match in column C).


    I'd like to wrap it in an iferror so it returns "empty" when there is no value. But it's just returning the top value, no error.

    Can anyone help?

    Thanks.
    Attached Files Attached Files
    Last edited by BPSJACK; 07-09-2019 at 09:31 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Index-Match array giving first value when no match

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Re: Index-Match array giving first value when no match

    Perfect, thank you!

+ 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 - giving #NA but value is correct
    By MartinGTC in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-12-2017, 12:49 PM
  2. [SOLVED] Need help with Index Match or possibly array type of match
    By chadboehne in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2017, 01:16 PM
  3. [SOLVED] Index Match with Partial Match in Lookup Array
    By AliGW in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2016, 03:13 PM
  4. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. [SOLVED] Index, Match and Indirect giving REF error
    By stanleds in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2013, 06:08 AM
  7. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 AM

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