+ Reply to Thread
Results 1 to 5 of 5

INDEX/MATCH generates incorrect result by referencng nearest cell if match not found

  1. #1
    Forum Contributor
    Join Date
    09-28-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    135

    INDEX/MATCH generates incorrect result by referencng nearest cell if match not found

    Hi everyone,

    I am using the following formula to look up part numbers. Basically, I am typing the part number I want to find into cell C2, which is intended to look up product prices and margins on a different sheet.

    =INDEX('2017 RRP Price List'!C$2:C$9999,MATCH(Lookup!C$2,'2017 RRP Price List'!A$2:A$9999))

    The problem is that, if for example I type in part number 1234 but this does not exist on the price list sheet, it will return data related to part number 1233. The user would have no way of knowing that the information is incorrect (unless they were to manually check the product prices sheet).

    Ideally, if the part number is not found, I would like cell C2 to show "NOT FOUND".

    Can anyone help me with this?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    41,486

    Re: INDEX/MATCH generates incorrect result by referencng nearest cell if match not found

    Workbook?

    Try this:

    =IFERROR(INDEX('2017 RRP Price List'!C$2:C$9999,MATCH(Lookup!C$2,'2017 RRP Price List'!A$2:A$9999,0)),"Not Found")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Forum Contributor
    Join Date
    09-28-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    135

    Re: INDEX/MATCH generates incorrect result by referencng nearest cell if match not found

    Hi AliGw

    Workbook attached.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-28-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    135

    Re: INDEX/MATCH generates incorrect result by referencng nearest cell if match not found

    Thank you, that is exactly what I need.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    41,486

    Re: INDEX/MATCH generates incorrect result by referencng nearest cell if match not found

    You're welcome!

+ 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 Match returning incorrect value from table
    By DaveBre in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2014, 08:01 PM
  2. VBA Code to Replace Cell Value when Address found by Index/Match
    By Rubert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2013, 10:27 AM
  3. index match, ..... skip result if blank value ...... jump to next match
    By gehawk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2013, 04:42 AM
  4. [SOLVED] Match Index result from adjoining cell
    By Bravo33 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-19-2012, 07:42 AM
  5. [SOLVED] Index & Match returning incorrect value. Arrays fixed and exact match used.
    By SDes in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2012, 08:29 PM
  6. [SOLVED] INDEX & MATCH to match nearest value?
    By ddub25 in forum Excel General
    Replies: 9
    Last Post: 06-29-2012, 11:27 AM
  7. Index Match using nearest values
    By Nebuchanezer in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-11-2007, 04:22 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