+ Reply to Thread
Results 1 to 10 of 10

Index + Match returning incorrect data

  1. #1
    Registered User
    Join Date
    09-05-2017
    Location
    Riverside, Ca
    MS-Off Ver
    2010
    Posts
    6

    Index + Match returning incorrect data

    Hello all, first post. (yayyy)

    Excel 2010

    I have kind of a mess on my hands. I am trying to create something a little more visually appealing than a 50 page report of lines and lines of info. My boss wants to be able to see the result of every inspection point and whether or not it is normal or abnormal. What I came up with is attached. I pull the information from our database (we can't create our own reports with this database yet) and put in on sheet two (Import) of the workbook. Then I divided the information into tables by equipment type and wrote some Index/Match lines to bring the info over from sheet two. Then I conditionally formatted the destination cells based on the return. Easy as pie...right?

    Lo and behold I come across this beauty. As you can see on sheet 1 (Summary) at the top it says there is 1 abnormal finding, but when I scroll through the file, all green. I found the culprit at the top of the page in D35. On Import, row 625, colum I is "Dirty", but D35 returns "Good" for some reason. I have tried adding more detail to the first MATCH lookup value, and it works, but then the other cells around it won't pull data correctly. Does it have to do with using the wildcard function with the exact match? I would rather not have to go back through every cell and fill out the entire name considering the rest of the name is not useful information.

    Thank you in advance for any help you can offer.

    Shawn
    Attached Files Attached Files

  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 returning incorrect data

    The D34 formula that's showing an error is, unlike the other formulae, a normal formula. The others are all array formulae. i.e.they have been entered with Ctrl-Shift-Enter.

    Do the same with D34.
    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
    Registered User
    Join Date
    08-14-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    8

    Re: Index + Match returning incorrect data

    Why not use a pivot table like this:
    pivottest.PNG

  4. #4
    Registered User
    Join Date
    09-05-2017
    Location
    Riverside, Ca
    MS-Off Ver
    2010
    Posts
    6

    Re: Index + Match returning incorrect data

    Quote Originally Posted by Richard Buttrey View Post
    The D34 formula that's showing an error is, unlike the other formulae, a normal formula. The others are all array formulae. i.e.they have been entered with Ctrl-Shift-Enter.

    Do the same with D34.
    Thank you for the reply.

    That was my bad on how I saved it before I uploaded it. I still had the same problem when correctly entered as an array.

  5. #5
    Registered User
    Join Date
    09-05-2017
    Location
    Riverside, Ca
    MS-Off Ver
    2010
    Posts
    6

    Re: Index + Match returning incorrect data

    Quote Originally Posted by iceman62k View Post
    Why not use a pivot table like this:
    Attachment 536733
    I guess I need to work on my pivot table skills...I could not get it to like this nice. However, this would not tell me what was wrong with MV-TX-1, I fear that adding that information to the pivot table would make it a little too much, but I will try it.

    Thank you so much for the reply and help.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,924

    Re: Index + Match returning incorrect data

    In addition to Iceman's fine Pivot Table solution you might also want to take a look at this.
    The array entered formula* in D7:H39 has been modified so that it reads:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    09-05-2017
    Location
    Riverside, Ca
    MS-Off Ver
    2010
    Posts
    6

    Re: Index + Match returning incorrect data

    Quote Originally Posted by JeteMc View Post
    In addition to Iceman's fine Pivot Table solution you might also want to take a look at this.
    The array entered formula* in D7:H39 has been modified so that it reads:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Thank you Jete. This seems to do the trick as well. Is this more efficient than the INDEX/MATCH function if I were to type out the complete name without the wildcard? (Assuming that would fix the problem...)

  8. #8
    Registered User
    Join Date
    09-05-2017
    Location
    Riverside, Ca
    MS-Off Ver
    2010
    Posts
    6

    Re: Index + Match returning incorrect data

    Iceman62k, I am trying to replicate your example on the pivot table, and I cant seem to format the highlight the way you did. Is there a trick to formatting only one column when there are multiple columns in one column label selection e.g. Abnormal and Normal?

    EDIT*

    I got the Abnormal/Normal formatting down, but I can't seem to highlight the text like you did, unless I do it cell by cell.
    Last edited by solleksfan; 09-08-2017 at 04:32 PM.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,924

    Re: Index + Match returning incorrect data

    The asterisk is the problem for sure, but perhaps not in the way your thinking. Look at the formula used in the file attached to post #1 with cell D35 selected. Reenter that formula as an array entered formula and run the 'Evaluate Formula' feature, and notice that the row number given is the 609th (actually row 610 since the array being searched begins at row 2). When you look over at the 'Import' sheet H610 displays 'Nitrogen System Gauges' so it appears that the wildcard is getting the formula to find any thing that begins with 'MV-TX-1 [' and ends with 'Gauges' (as it should BTW). So down the road were you to add say 'Hoses' or 'Valves' then that formula would again find those in the 'Nitrogen System' group (I hope this makes sense).
    The formula proposed in post#6 will doesn't cause that situation to happen. It can also be put in one cell and copied down and across, as is, opposed to being modified 4 more times, which would happen if the full names had to be typed in. In that sense I would say it is efficient.
    Let us know if you have any questions. If on the other hand your question has been answered and issue resolved to your satisfaction, please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

  10. #10
    Registered User
    Join Date
    09-05-2017
    Location
    Riverside, Ca
    MS-Off Ver
    2010
    Posts
    6

    Re: Index + Match returning incorrect data

    Thank you JeteMC. I appreciate everyone taking the time to help.

+ 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 & 2x MATCH returning incorrect values
    By Dan_B in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-06-2017, 06:01 AM
  2. [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
  3. [SOLVED] Index Match returning incorrect values
    By SomeDude0nline in forum Excel General
    Replies: 2
    Last Post: 07-23-2014, 10:20 AM
  4. Index match returning incorrect values
    By Mrpussalia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2014, 10:55 PM
  5. Index Match returning incorrect date
    By cartman88 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-04-2013, 05:34 AM
  6. [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
  7. [SOLVED] INDEX MATCH formula bringing back incorrect data
    By Malinky in forum Excel General
    Replies: 2
    Last Post: 06-27-2012, 08:27 AM

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