+ Reply to Thread
Results 1 to 9 of 9

Excel find names of corresponding nth. largest value with criteria and duplicates

  1. #1
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Excel find names of corresponding nth. largest value with criteria and duplicates

    Hello everyone,

    For a couple of days now I have been struggling to find out how I match the name of the corresponding nth largest value in Excel.

    In this hypothetical example (look in the uploaded file), I am trying to find the top 3 largest values within a date range (February 2019). This works just fine.

    However, once I try to lookup the name of the product or the person that is selling the product, I can't seem to retreive the correct row number, and when I am dealing with duplicates it will only show me the first variable that it finds, not the second or third one.

    I hope my explanation and the hypothetical example that I uploaded provides enough information about my problem, if not please ask for additional info.

    Kind regards,




    Hoogoo

    PS: I am not able to upload my .xls file for some reason, so here is a picture


    Excel Hypothetical 1.png

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Excel find names of corresponding nth. largest value with criteria and duplicates

    You have attached an image. That's not very easy to work with. Also... I'm lazy. I have to re-type your information before I can begin to address your problem. That puts me off completely. Not only that, but (depending on their choice of browser) many other members cannot even see the image.

    So. Do yourself a favour and please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough). However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever).

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Make sure confidential info is removed first!!!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Re: Excel find names of corresponding nth. largest value with criteria and duplicates

    As i said in my previous post, I understand that I should upload the file but I am not able to, because for some reason, when I upload my file to "manage attachments", I am not able to select it in this post.

    I made a google spreadsheet, meaby that helps.

    docs.google.com/spreadsheets/d/
    1x46RMW7C3SduudUdbGXTVggFiIPnp88_42bFGf2VRi0/edit?usp=sharing

    (I am apparently not able to post attachments untill I have made more posts).
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Re: Excel find names of corresponding nth. largest value with criteria and duplicates

    Nvm, I was able to post an attachment.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Excel find names of corresponding nth. largest value with criteria and duplicates

    What version of Excel are you using? 2010 or later, or 2007 and earlier? Please amend your profile.

  6. #6
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Re: Excel find names of corresponding nth. largest value with criteria and duplicates

    I just did, I am using Office 365. (So 2010 or later)

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Excel find names of corresponding nth. largest value with criteria and duplicates

    Super.

    G3, copied acorss to I3 and down:
    =INDEX(A:A,AGGREGATE(14,6,ROW($A$2:$A$11)/($D$2:$D$11=$J3),COUNTIF(J$3:$J3,$J3)))

    J3, copied down:
    =AGGREGATE(14,6,$D$2:$D$11/(($A$2:$A$11>=$H$1)*($A$2:$A$11<=$J$1)),F3)

    and change the end date to soemthing that exists (no 30th February!!)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Re: Excel find names of corresponding nth. largest value with criteria and duplicates

    Awesome, this worked perfectly!
    (sorry for the delayed response, had to test the outcome in my actual file).

    Thanks for your help! Have a great day.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Excel find names of corresponding nth. largest value with criteria and duplicates

    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] Return 2nd largest value (ignoring duplicates) with criteria
    By Sqwirtle in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-30-2023, 03:59 AM
  2. Replies: 5
    Last Post: 04-04-2019, 09:50 PM
  3. [SOLVED] Find Largest Value with Criteria, but limit Instances
    By amonty78 in forum Excel General
    Replies: 8
    Last Post: 11-28-2018, 08:33 AM
  4. [SOLVED] Find largest value with criteria
    By Moonfaxx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-03-2017, 12:43 PM
  5. Replies: 4
    Last Post: 04-23-2015, 01:36 AM
  6. [SOLVED] Find the n largest values from a set with duplicates
    By amphinomos in forum Excel General
    Replies: 7
    Last Post: 01-14-2014, 08:59 AM
  7. find the largest RANK value by criteria
    By ccsmith in forum Excel General
    Replies: 2
    Last Post: 05-12-2010, 08:04 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