+ Reply to Thread
Results 1 to 9 of 9

Index and match

  1. #1
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    MS365
    Posts
    287

    Index and match

    Hi Guru,

    I trying to use Index and match for attached example but fail to show me the correct result.
    Can someone help?

    This is the formula i used.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,768

    Re: Index and match

    Try

    =INDEX(Sheet1!C2:C21, MATCH(1, (Sheet2!B3=Sheet1!A2:A21) * (Sheet2!C3=Sheet1!B2:B21), 0))

    BUT unmerge cells in column A: NEVER use merged cells when used by formulae
    Attached Files Attached Files

  3. #3
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: Index and match

    worksheet name : Sheet2
    Cell C4 array formula

    HTML Code: 
    Last edited by wk9128; 06-08-2021 at 06:38 AM.

  4. #4
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    MS365
    Posts
    287

    Re: Index and match

    Thank you so much both of you!!!!

  5. #5
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    MS365
    Posts
    287

    Re: Index and match

    Quote Originally Posted by wk9128 View Post
    worksheet name : Sheet2
    Cell C4 array formula

    HTML Code: 

    Hi wk9128,

    May i know what is ROW($1:$12) represent?
    I would like to modify to add in 1 more march. Is following correct?

    Please Login or Register  to view this content.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: Index and match

    Try

    =INDEX(LOOKUP(ROW($1:$30),ROW($1:$30)/('Mth Contr'!$E$1:$E$30<>""),'Mth Contr'!$E$1:$E$30),MATCH(B6&B1&B2,LOOKUP(ROW($1:$30),ROW($1:$30)/('Mth Contr'!$A$1:$A$30<>""),'Mth Contr'!$A$1:$A$30)&'Mth Contr'!$B$1:$B$30)&'Mth Contr'!$C$1:$C$30,)

  7. #7
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    MS365
    Posts
    287

    Re: Index and match

    Thank you very much
    Last edited by cyee; 06-10-2021 at 05:47 AM. Reason: wrong post

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: Index and match

    You're Welcome. Thank You for the feedback

  9. #9
    Registered User
    Join Date
    06-11-2021
    Location
    Liverpool, UK
    MS-Off Ver
    365
    Posts
    1

    Re: Index and match

    Not sure if I'm trying to do the same thing, but I think this is the closest I've found (though who knows?).

    I want to assign a supervisor randomly to a student for different modules. I know how many students there are, how many supervisors and how many students each supervisor will work with. I have assigned ID numbers to students, and have randomised them to assign to the supervisors. Rather than having to manually add the supervisor name to the student can I get excel to do it for me. So:

    Col A is student ID, Cols C - G show module name, Col I is supervisor and Col J is the assigned student ID number. If student ID in Col A matches student ID in Col J return the name shown in Col I to Col C.

    Once I've done it for one module (Col C) I can probably work out how to replicate it for the remaining modules!

    Cheers!!
    Attached Files Attached Files

+ 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

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