+ Reply to Thread
Results 1 to 6 of 6

INDEX and MATCH, I think

  1. #1
    Registered User
    Join Date
    09-27-2014
    Location
    Sydney, Australia
    MS-Off Ver
    2007
    Posts
    16

    INDEX and MATCH, I think

    Hi List,

    I have a column of 20 names in A
    A column of numbers, 1 - 20 in B
    A column of 20 RAND() in C

    I then sort B on C results

    I want to display the name that now corresponds to 1 in D1

    I hope someone can help. I have read and tried but..!

    TIA,

    John

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: INDEX and MATCH, I think

    =INDEX($A$1:$A$20, MATCH(D1, $B$1:$B$20, 0))

    But I wonder if this does what you really want:

    =INDEX($A$1:$A$20, RANK(D1, $C$1:$C$20))

    Or enter the following formula into in E1 and copy E1 into E2:E20:

    =INDEX($A$1:$A$20, RANK(C1, $C$1:$C$20))

    The latter provides in E1:E20 a random list of the names in A1:A20.

  3. #3
    Registered User
    Join Date
    09-27-2014
    Location
    Sydney, Australia
    MS-Off Ver
    2007
    Posts
    16

    Re: INDEX and MATCH, I think

    Hi joeu2004,

    Thanks for the quick response.
    I tried your first suggestion by putting =INDEX($A$1:$A$20, MATCH(D1, $B$1:$B$20, 0)) in D1
    It produced a circular argument error message.
    John
    Attached Images Attached Images
    Last edited by JohnHedge; 04-04-2020 at 11:36 PM.

  4. #4
    Registered User
    Join Date
    09-27-2014
    Location
    Sydney, Australia
    MS-Off Ver
    2007
    Posts
    16

    Re: INDEX and MATCH, I think

    =INDEX(A1:A20,MATCH(1,B1:B20,0)) works.
    Thanks for your help.

    John

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: INDEX and MATCH, I think

    Please review the forum rules regarding meaningful and descriptive thread titles, and make sur yours are better than this in future, please.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: INDEX and MATCH, I think

    Quote Originally Posted by JohnHedge View Post
    I tried your first suggestion by putting
    =INDEX($A$1:$A$20, MATCH(D1, $B$1:$B$20, 0)) in D1
    It produced a circular argument error message.
    I never said to put the formula into D1.

    And in hindsight, I guess I needed to tell you __not__ to put the formula into D1.

    FYI, that is __always__ the case, unless you are purposely relying on the circular reference. But that is not a good idea, IMHO.

    So __never__ put a formula into a cell that the formula references.

+ 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