+ Reply to Thread
Results 1 to 3 of 3

3 largest qty and 3 smallest

  1. #1
    Registered User
    Join Date
    05-31-2010
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    88

    3 largest qty and 3 smallest

    This is a continuation of my previous thread:
    http://www.excelforum.com/excel-work...-criteria.html

    I now need to get the top 3 max and the top 3 min qty in column c and return the part number from column A instead of the qty. Is there a function/way to do it?

    I don't know if I still need to attach my sample sheet, the attachment is at the link above. Just inform me if you need a sample workbook.

    Thanks a million! Excel Forum really helped a lot(and of course the other forums too).
    Last edited by geng; 07-09-2010 at 12:19 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to return Top 3 largest qty and Top 3 smallest qty?

    Use SMALL and LARGE in place of MIN in those formulas.. adjust other ranges and references as required to correspond to what you want,.


    so this part: MIN(IF(Data!$B$1:$B$50=$A4,Data!$C$1:$C$50))

    would change to SMALL(IF(Data!$B$1:$B$50=$A4,Data!$C$1:$C$50),1)

    to get smallest, and SMALL(IF(Data!$B$1:$B$50=$A4,Data!$C$1:$C$50),2) to get second smallest and so on. Notice the 1 and 2 at the ends to indicate which to pull.

    LARGE(IF(Data!$B$1:$B$50=$A4,Data!$C$1:$C$50),1) would get largest and so on.
    Last edited by NBVC; 07-08-2010 at 10:36 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-31-2010
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: 3 largest qty and 3 smallest

    Thank you! Thank you! Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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