+ Reply to Thread
Results 1 to 16 of 16

Index match

  1. #1
    Registered User
    Join Date
    07-31-2018
    Location
    Porto
    MS-Off Ver
    2016
    Posts
    8

    Question Index match

    Hello,

    I am trying to use formula index match to match in a summary table. I want to add this formula in order to search in another spreadsheet for the value in cell GS 3.
    When found, I want to retrieve the value of the cell next to the match.

    In the first picture I have the spreadsheet with the summary.

    In the second picture I have the spreadsheet where I am going to look for the value.

    01.PNG

    02.PNG

    How can I do this correctly?

    Thanks

    NM
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    07-31-2018
    Location
    Porto
    MS-Off Ver
    2016
    Posts
    8

    Re: Index match

    I forgot to explain that the different values I want to search are not all in the same column or row.
    Do I have to do a dynamic search?
    How do I perform this?

    TY

  3. #3
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    842

    Re: Index match

    Request to you kindly do provide Sample workbook with expected results.

  4. #4
    Registered User
    Join Date
    07-31-2018
    Location
    Porto
    MS-Off Ver
    2016
    Posts
    8

    Re: Index match

    I attached a sample workbook.
    Attached Files Attached Files

  5. #5
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    842

    Re: Index match

    Hi nfmoreira,

    Please find here attached sample workbook with Solution. Is exactly the same you are looking for. Please do let us know.

    Please do mark thread as solved if the provided solution furnishes your requirement.

    sample.xlsx

  6. #6
    Registered User
    Join Date
    07-31-2018
    Location
    Porto
    MS-Off Ver
    2016
    Posts
    8

    Re: Index match

    In this case it is correct. But the problem is that the value to match in sheet 2 is not always in same column, it varies.
    In case of 100 entries of data, the formula you provided would not work because I would have to alter the formula for each entry.

  7. #7
    Registered User
    Join Date
    07-31-2018
    Location
    Porto
    MS-Off Ver
    2016
    Posts
    8

    Re: Index match

    Thanks for your help Neilesh

  8. #8
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    842

    Re: Index match

    Hi nfmoreira, Since you have asked for the single match so accordingly i provided. Please find here below the solution based upon the column Headers.

    =INDEX(Sheet2!A:FO,MATCH(Sheet1!S3,Sheet2!CI:CI,0),MATCH(U2,Sheet2!A1:FO1,0))

  9. #9
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    842

    Re: Index match

    Glad to help. Please mark thread as solved if the provided solution furnished your requirement.

  10. #10
    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,933

    Re: Index match

    nfmoreira welcome to the forum

    For future reference, please take a moment to read the forum rules and use thread titles that are descriptive of your problem - not what you think the answer might be. (think google search terms?).

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?
    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

  11. #11
    Registered User
    Join Date
    07-31-2018
    Location
    Porto
    MS-Off Ver
    2016
    Posts
    8

    Re: Index match

    Thank you FDibbins.
    I will take into acount what you said and be more explicit next time

  12. #12
    Registered User
    Join Date
    07-31-2018
    Location
    Porto
    MS-Off Ver
    2016
    Posts
    8

    Re: Index match

    Hi!
    I forgot about the column headers. That's great.
    Regarding the first match MATCH(Sheet1!S3,Sheet2!CI:CI,0), that only works if the value I am searching is in that column. How can I make fail safe and make it so that this match searches for the value in all columns?
    I tried replacing that part for MATCH(Sheet1!S3;Sheet2!A:FO;0) but it does not work.

  13. #13
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    842

    Re: Index match

    Try this nfmoreira,

    =INDEX(Sheet2!$A:$FO,MATCH(Sheet1!$S$3,Sheet2!$CI:$CI,0),MATCH(AC2,Sheet2!$A$1:$FO$1,0))

  14. #14
    Registered User
    Join Date
    07-31-2018
    Location
    Porto
    MS-Off Ver
    2016
    Posts
    8

    Re: Index match

    Thanks for helping me in this issue.
    I attached an example workbook with one more row of results.
    In this case, that formula only works for the first row. The value in the second row of results of sheet 2, is in a different position and with a different header.
    How can I make it so that, no matter where the value is, I can find it and retrieve the value of the cell to its right?
    Attached Files Attached Files

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,561

    Re: Index match

    I imagine that this can be improved on.
    1) On sheet2 FL1:FN1 are populated using: =INDIRECT("Sheet1!S"&COLUMN(C:C))
    2) FL2:FN10 are populated using: =IFERROR(INDEX($A2:$FJ2,MATCH(FL$1,$A2:$FJ2,0)+1),"")
    3) FL11:FN11 are populated using: =SUMPRODUCT((FL2:FL10<>"")*(ROW(2:10)-1))
    Note that you could cut and paste cells FL11:FN11 to a row further down (i.e. anywhere below the last possible row of data) of sheet2.
    4) On sheet1 the formula that populates U3:U4 is:
    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.

  16. #16
    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,933

    Re: Index match

    If you intend to continue on this thread, please change the title as I stated in post #10

+ 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+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 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