+ Reply to Thread
Results 1 to 4 of 4

Index Match Extracting Wrong Information

  1. #1
    Registered User
    Join Date
    02-01-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    2

    Index Match Extracting Wrong Information

    {=INDEX(Data!$A:$A,MATCH($A5&$B$3,Data!$D:$D&Data!$B:$B,0))}

    I have my array to look for whatever is in B3 which will contain a number from 1-20. The problem is my data has 1-9 listed as 01-09 for this category so when it looks for "1" it is extracting from the Number 11 rather than 01. Is there any way I can adjust my formula to fix this problem or is this an issue with the data?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Index Match Extracting Wrong Information

    Always insert a spacer to keep the values from the two cells/ranges from comingling.

    =INDEX(Data!$A$1:$A$1000, MATCH($A5 & "-" & $B$3, INDEX(Data!$D$1:$D$1000 & "-" & Data!$B$1:$B$1000, 0), 0))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-01-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    2

    Re: Index Match Extracting Wrong Information

    Hey JBeaucaire,

    When I inserted the spacers it did not return a value. Would adding the "-" not just make the array also search for text containing the characters within the hyphens?

    Thanks

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Index Match Extracting Wrong Information

    I'd have to see your formula and data to resolve the issue.

    But look at the example formula given above. Notice the first "-" is between the two search values? This creates a single search value from the two with the spacer.

    Then notice the second "-", that shows how we are Indexing two columns of data with the same spacer to CREATE the searchable concatenated columns within the formula itself. We do this all the time, a known method.

+ 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] Extracting information from multiple tables (Vlookup, Index match, indirect??)
    By vesper007 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2016, 02:36 AM
  2. [SOLVED] =INDEX($N$3:$Q$100,MATCH(1,($A$2=$N$2:$N$100)*($B$2=$Q$2:$Q$100),0)) what wrong
    By hktom in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2015, 11:10 PM
  3. [SOLVED] Index/Match wrong result
    By spinkung in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2015, 05:20 AM
  4. [SOLVED] Row and column match? (IF INDEX MATCH) What am I doing wrong.
    By Noop1887 in forum Excel General
    Replies: 2
    Last Post: 01-04-2015, 09:16 AM
  5. [SOLVED] What's wrong with this Index Match/Row formula?
    By DaveBre in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-25-2014, 08:37 PM
  6. [SOLVED] VLOOKUP with MATCH... Displaying wrong column information
    By oneillgirl808 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2013, 09:14 PM
  7. Index and Match-wrong value
    By Steved in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2005, 07:06 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