+ Reply to Thread
Results 1 to 8 of 8

index-match gives duplicate results, how to resolve this?

  1. #1
    Registered User
    Join Date
    12-24-2023
    Location
    Melbourne
    MS-Off Ver
    2019
    Posts
    11

    index-match gives duplicate results, how to resolve this?

    Hi all, back again with another request.
    I am looking for a simpler/better/more complete way to achieve what I have done (in a rather convoluted way) to get the listing in cols P & S, rows 183:360, on the 'team all-time calcs' sheet.

    I came up with my solution many years ago but it is limited to finding the first 7 names that have the same corresponding value. Eventually the formula in col P will not accept any more permutations and there are often situations where many more 'teams' have the same value, so I want to find a more complete solution.

    I am revisiting this issue to get a list with no duplicates, but with no success so far, so here I am!

    Attached is a very cut down xlsx file, where you can see the teams data.

    I would greatly appreciate your expert help. Thanks.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,673

    Re: index-match gives duplicate results, how to resolve this?

    I'm not following your question. The formula in column P (starting in row 183) is just
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I can't imagine that's the thing you are trying to simplify. The formula in S is even simpler.

    the first 7 names that have the same corresponding value
    First 7 names where? Which value? Corresponding to what?

    Can you clarify:

    What is the source data
    What result do you want
    Where do you want the result to go

    ?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-24-2023
    Location
    Melbourne
    MS-Off Ver
    2019
    Posts
    11

    Re: index-match gives duplicate results, how to resolve this?

    Sorry for not being clearer, I guess I fell into the trap of 'it makes sense to me, so it should to others'.

    The data is in cols B&C. Col B = number of starts, col C = team name.
    I want this data sorted into a table of most starts to least starts and match which team has made the starts eg Ferrari 1095, McLaren 967 etc.
    A simple index/match gives only the first team that has that value eg Virgin 38 and for subsequent values of 38 it will also only give 'Virgin'.
    My calculations in cols I-N & X-AC are my way of determining the other teams that also scored that value, but it is limited to 7 different names. It then duplicates the 7th name.
    Formula in cols P&S are my 'simple' way of choosing which name should go in which cell.

    What I am after is a formula, index/match with some wizardry I am guessing, that will address the duplicates eg, there are 13 teams that started 2 times and 27 teams started only once. (see row 313)

    The data in cols B&C is currently 'correctly' sorted however this is because I have just obtained the data from another source, already sorted. As time goes on this will cease to be sorted correctly.
    I want to also use the solution I hope 'you' can provide for the drivers' data also (which is not in the sample xlsx). This driver data (also in cols B&C in my complete xlsx) is no longer correctly sorted as it has been collected by me over the past couple of decades.

    Hopefully this helps and doesn't confuse further.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,197

    Re: index-match gives duplicate results, how to resolve this?

    Before we go any further with this, please update your forum profile. There is no Excel 2022 product, so which one do you really have? Newer versions are 2021, 2024 and 365. This is important. 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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    12-24-2023
    Location
    Melbourne
    MS-Off Ver
    2019
    Posts
    11

    Re: index-match gives duplicate results, how to resolve this?

    ok, done. my bad.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,817

    Re: index-match gives duplicate results, how to resolve this?

    Try the following in cells P183 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    12-24-2023
    Location
    Melbourne
    MS-Off Ver
    2019
    Posts
    11

    Re: index-match gives duplicate results, how to resolve this?

    Brilliant, exactly what I was after, thanks.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,817

    Re: index-match gives duplicate results, how to resolve this?

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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 MATCH Returning Duplicate Results
    By Freekindasheets in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-26-2023, 08:26 AM
  2. [SOLVED] Index Match shows wrong results. Why, and How do I resolve it?
    By Manchester Gunners in forum Excel General
    Replies: 5
    Last Post: 05-25-2023, 03:55 AM
  3. [SOLVED] Index Match with duplicate values in results
    By JoelleM92 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2022, 02:27 AM
  4. INDEX Match with UNIQUE Results (Non Duplicate)
    By tomfohr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-11-2022, 10:34 PM
  5. Index and Match duplicate results - How to show duplicate names?
    By barman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-18-2018, 11:28 AM
  6. [SOLVED] Index Match - Avoiding Duplicate Results
    By Aphalite in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2014, 08:12 PM
  7. Index and Match has duplicate results
    By Jonathan Beale in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2014, 12:46 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