+ Reply to Thread
Results 1 to 4 of 4

Index Match problem

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2010
    Posts
    44

    Index Match problem

    Hi
    I'm using the following formula:

    =INDEX('Database - Product.xlsx'!Table1[New Link Code],MATCH(LEFT([Prescribed Item],15),(LEFT('Database - Product.xlsx'!Table1[Product],15)),0))

    to retrieve a number based on a match.

    The result shows a #value error and, obviously, I can use iferror to remove this; however, when I query the formula using the fx button, it shows the result as being correct (ie it returns 1000014, which is the desired response).

    What I don't know is why it's showing the correct result using the formula query box and an error in the actual worksheet.

    Can anyone help?

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Index Match problem

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Index Match problem

    Try array entering the same formula.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Dave

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Index Match problem

    Im not sure you can use LEFT to define the MATCH range?
    =INDEX('Database - Product.xlsx'!Table1[New Link Code],MATCH(LEFT([Prescribed Item],15),(LEFT('Database - Product.xlsx'!Table1[Product],15)),0))

    As a test, try creating a helper column to pull out the LEFT-15 from Product, then run the MATCH based on that helper?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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 and match problem
    By MANISH2AGRAWAL in forum Excel General
    Replies: 9
    Last Post: 04-08-2016, 02:44 AM
  2. Formatting with INDEX MATCH MATCH Problem
    By SwissExcel in forum Excel General
    Replies: 1
    Last Post: 07-22-2015, 07:40 AM
  3. [SOLVED] Index Match Match - syntax problem
    By Dabooka in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2014, 09:05 AM
  4. [SOLVED] INDEX and MATCH problem
    By Gadzooky in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2014, 07:29 AM
  5. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  6. Problem with INDEX, INDIRECT, MATCH, MATCH
    By JO505 in forum Excel General
    Replies: 5
    Last Post: 09-01-2011, 05:51 PM
  7. [SOLVED] Possible index/match problem?
    By smoore in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2006, 06:50 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