+ Reply to Thread
Results 1 to 6 of 6

Help-> Index+Match formula pulling wrong values

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Trinidad and Tobago
    MS-Off Ver
    Excel 2003
    Posts
    3

    Help-> Index+Match formula pulling wrong values

    Hi All,

    I am new to this forum and relatively new to excel formulas so be nice. I have this matrix with rows and columns see below:

    Years Experience
    >20 >15 >10 >8 >5 >3 <3 (input24)
    (Input23)Education PHD/Doctorate 1 1 1 2 4 4 5
    Masters Degree 1 2 2 3 4 4 5
    Bachelor Degree 2 3 3 3 4 5 6
    Associate Degree 4 4 5 5 5 7 7
    Technical Diploma/Professional Qualification 5 5 6 6 6 7 7
    0/A Level/High School Diploma 7 7 7 7 7 7 7
    No Formal Education 7 7 7 7 7 7 7

    and a drop down list with Experience and Education, so when the user selects Education and Years Experience from the drop down list, a rating is shown that corresponds to the matrix above. (B19 and C19 are the cells with the drop down list)

    Formula:

    =INDEX(Data,MATCH(B19,Input24,0),MATCH(C19,Input23,0))

    However, at times the formula pulls the wrong number. Please help!

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Help-> Index+Match formula pulling wrong values

    Hi and welcome to the forum!

    "at times the formula pulls the wrong number". I'm afraid that this isn't very useful as it doesn't say for which data the formula doesn't work and so we are left guessing a bit.

    Also, I'm sure you'll appreciate that it's often useful to have an actual Excel sheet in which to experiment with possible solutions - in this case, since you haven't posted one, and since a 'general' solution is hard to give with such particular data, that would mean forum members having to reconstruct your pasted data in an Excel sheet (including most likely the Named Ranges, etc.), which would be time-consuming and not something that everyone would be prepared to do.

    I'm sure if you attach an actual workbook then your problem will be dealt with quite quickly.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    08-29-2013
    Location
    Trinidad and Tobago
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Help-> Index+Match formula pulling wrong values

    Hi, thank you for the quick response. Here is the worksheet.
    Attached Files Attached Files

  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,938

    Re: Help-> Index+Match formula pulling wrong values

    Hi and welcome to the forum

    This is 1 of those times when using range names in formulas makes them more difficult to check.

    You have a number of problems in your formula...
    1. you have the row and column parts swapped around...
    =INDEX(Data,MATCH(C19,Input23,0),MATCH(B19,Input24,0))
    2. your ranges need to be ALL the same size with respect to the rows and columns
    In your named ranges, they all need to start in B3 and then go down to row 10 (for the 1st match) and across to I for the 2nd match.

    This is what the formula should look like with just regular ranges...
    =INDEX($B$3:$I$10,MATCH(C19,B3:B10,0),MATCH(B19,B3:I3,0))
    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

  5. #5
    Registered User
    Join Date
    08-29-2013
    Location
    Trinidad and Tobago
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Help-> Index+Match formula pulling wrong values

    Oh wow! Thanks it works correctly now.

    I am going to try and stay away from naming ranges in the future.

    Oh dear, mistaking rows for columns and vice versa...such a rookie mistake!

    I am new to excel formula building and I am intent on learning as much as possible so I am so happy that I found this forum!

    Thank you.

  6. #6
    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,938

    Re: Help-> Index+Match formula pulling wrong values

    Happy to help and we are really glad to have you with us

    If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 at the bottom of my FIRST post to this thread)

+ 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] Why is my Vlookup pulling in the wrong values?
    By gjjh25 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2013, 01:44 PM
  2. Wrong result displaying using IFERROR-INDEX-MATCH-ROW Formula
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-16-2013, 01:03 PM
  3. VLookup Table Pulling Up the Wrong Values
    By mrvp in forum Excel General
    Replies: 9
    Last Post: 01-02-2012, 02:00 PM
  4. Index/Match formula not pulling through desired results
    By Climaxgp in forum Excel General
    Replies: 0
    Last Post: 08-02-2010, 08:14 AM
  5. Index Max Match formula returning wrong value
    By bk77 in forum Excel General
    Replies: 4
    Last Post: 03-25-2009, 02:17 PM

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