+ Reply to Thread
Results 1 to 2 of 2

IFS Lookup & Index Match Values Method?

  1. #1
    Registered User
    Join Date
    06-16-2016
    Location
    Baltimore, Maryland
    MS-Off Ver
    Version 2208 Build 16.0.15601.20148 64-bit
    Posts
    1

    IFS Lookup & Index Match Values Method?

    Excel- Version 2208 Build 16.0.15601.20148 64-bit



    Seven groups of numbers are being compared. Based on the total points, I would like to determine the three most optimal group configurations (optimal meaning the highest and most equal values). These three groups will have the highest point value, but with the restriction that there are only 12 possible "players". The same number/player cannot appear in more than one column.

    For example, reading 1|2|3|2 represents the #1 ranked player in class 1, the #2 ranked player in class 2, the #3 ranked player from class 3, and the #2 ranked player in class 4.

    After the first column of numbers is checked for duplicates, the second, third, and fourth columns will be checked before the final set of three numbers is determined. Currently, I'm nesting vlookup, index, etc.

    =if(vlookup(I2,B2:F8,2,False)=vlookup(I3,B2:F8,2,False),If(vlookup(I2,B2:F8,2,False)=vlookup(I3,B2:F8,2,False),INDEX($B$2:$B$8,MATCH(SMALL(ABS(J2-$B$2:$B$8),4),ABS(J2-$B$2:$B$8),0)),INDEX($B$2:$B$8,MATCH(SMALL(ABS(J2-$B$2:$B$8),2),ABS(J2-$B$2:$B$8),0))))

    ​The original dataset on which this is based has nearly 400 groups of numbers that compares 6 ranks of players among the 4 categories. Nesting that many statements doesn't seem like the most efficient method. Do I have another choice?

    IFS seems like a possibility but I cant seem to get the syntax when I put Vlookup and Index together.

    =INDEX($B$2:$B$8,MATCH(MIN(ABS($B$2:$B$8-J1)),ABS($B$2:$B$8-J1),0)),IFS(J14=1,"No",J14=2,"yes2",J14=3,"yes3")

    Hopefully, this makes sense, and I would be happy to answer any questions you might have. Thank you for any insight.

    Thank you,
    David
    Attached Files Attached Files
    Last edited by wigginsda; 10-12-2022 at 06:23 AM.

  2. #2
    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,779

    Re: IFS Lookup & Index Match Values Method?

    Administrative Note:

    Is you forum profile showing the version of Excel that you need this to work for?

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    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.

+ 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. Replies: 5
    Last Post: 07-01-2021, 02:59 PM
  2. Sum Multiple Match Index Lookup Values
    By figo12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-15-2016, 06:15 PM
  3. [SOLVED] Using INDEX(MATCH) with multiple lookup values
    By Wdr in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-11-2016, 09:33 AM
  4. INDEX/MATCH multiple lookup values
    By mythbit in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2015, 08:55 AM
  5. index match for 3 lookup values
    By krazyhype19 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2014, 06:58 AM
  6. LOOKUP, MATCH, INDEX Question. (2 Search Values)
    By J00 in forum Excel General
    Replies: 1
    Last Post: 07-16-2012, 03:51 PM
  7. Lookup 2 possible values within INDEX/MATCH function.
    By Pete123abc in forum Excel General
    Replies: 2
    Last Post: 06-07-2011, 10:51 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