+ Reply to Thread
Results 1 to 7 of 7

INDEX MATCH problem

  1. #1
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    INDEX MATCH problem

    Hi all,

    I have attached a spreadsheet with which I am having problems figuring out how to correctly use the INDEX MATCH function. When you select a lesson in J4, I want it to look at the table and return the associated values from Column B and also the associated values from Column C...the problem is that I cannot figure out how to return multiple values using an offset...meaning when you select lesson 1.2 it should return 2 values in Column K and two values in Column L.

    Your guidance and expertise is appreciated.

    Ken
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: INDEX MATCH problem

    Your number you are trying to match is stored as text. Also the syntax of your formula is incorrect.

    Try this instead:

    =INDEX($B$2:$B$7,MATCH(J4,$A$2:$A$7,0))

    Furthermore, what are you asking for, please give sample desired results. I believe you will need either a helper column or an array formula. Since it sounds like you want to display both matches, unless of course you are wiling to use 2 separate formulas, assuming you only want to find a second match. What is your real data like?

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: INDEX MATCH problem

    A2:A7 is number.

    J7 is text.

    Try this in K4:

    =INDEX($B$2:$B$7,MATCH(VALUE($J$4),$A$2:$A$7,0))

    In K5:

    =INDEX($B$2:$B$7,MATCH(VALUE($J$4),$A$2:$A$7,0)+1)

  4. #4
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: INDEX MATCH problem

    Thank you Phuocam for your input. Your formula works great, but I ran into another problem. Since the data I am working with is unit and lesson numbers for a text book, I have them in as text as in 1.1, 1.2, ... 1.9, 1.10, 1.11. This does not follow the rules of numbers, so they are text. When the formula runs, it works great until it hits 1.10 and above. Any ideas on how to correct? I have attached an updated file.

    Thank you for your time,
    Ken
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: INDEX MATCH problem

    Edit:

    K4:

    =IFERROR(INDEX($B$2:$B$7000,MATCH($J$4&"",$A$2:$A$7000,0)),INDEX($B$2:$B$7000,MATCH(VALUE($J$4),$A$2:$A$7000,0)))

    K5:

    =IFERROR(INDEX($B$2:$B$7000,MATCH($J$4&"",$A$2:$A$7000,0)+1),INDEX($B$2:$B$7000,MATCH(VALUE($J$4),$A$2:$A$7000,0)+1))

  6. #6
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: INDEX MATCH problem

    Amazing! Wow! I can't thank you enough for your help.

    Ken

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: INDEX MATCH problem

    You are 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. 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. Index match problem
    By NicholasLag in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-02-2014, 10:42 AM
  4. [SOLVED] Index Match Match - syntax problem
    By Dabooka in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2014, 09:05 AM
  5. [SOLVED] Index and Match - Problem
    By abshmo5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-11-2013, 11:31 PM
  6. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  7. Problem with INDEX, INDIRECT, MATCH, MATCH
    By JO505 in forum Excel General
    Replies: 5
    Last Post: 09-01-2011, 05:51 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