+ Reply to Thread
Results 1 to 8 of 8

Find top 2 lowest numbers and top 2 highest numbers

  1. #1
    Registered User
    Join Date
    02-07-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    5

    Find top 2 lowest numbers and top 2 highest numbers

    I want to find the 2 stores with the lowest number out and the 2 stores with the highest number out. I want to input the outs in one cell and the store number in the cell to the left. Sometimes we have 2 stores that have the same number. How can I get excel to put he store numbers in the cells to the left when they have the same number?

    My formulas always return the same store for both cells.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Find top 2 lowest numbers and top 2 highest numbers

    How about in cell H30 and drag across

    =INDEX($D$3:$J$3,MATCH(LARGE($D$5:$J$5,COLUMNS($A$1:A$1)),$D$5:$J$5,0))

    Change the large to small for the other formula
    HTH
    Regards, Jeff

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find top 2 lowest numbers and top 2 highest numbers

    Using your posted workbook....Try this:

    This formula returns the Top Dept:
    Please Login or Register  to view this content.

    Since it appears that Col_F is a duplicate of Col_E
    Please Login or Register  to view this content.
    This formula returns the 2nd Place Top Dept:
    Please Login or Register  to view this content.
    ...and...
    Please Login or Register  to view this content.

    Apply the same formulas to the Bottom Two Depts...
    Largest value dept:
    Please Login or Register  to view this content.
    Second Largest Dept:
    Please Login or Register  to view this content.
    ...and a correction to J43...it should be:
    Please Login or Register  to view this content.

    In your example...those formulas return:
    First Place: 2789
    Second Place: 3848
    Last Place: 3807
    Next-to-Last: 3801

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    02-07-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find top 2 lowest numbers and top 2 highest numbers

    Ok now we're starting to cook with some grease. Alright your formulas worked great but, where it says "store #1" and it list 2 stores, I want to use those 2 cells to give me the 2 different stores that had the same number.

    To better explain: if 2789 had 2 and 3848 had 4 and 3864 had 4 also then I under store #1 would like excel to put nothing in cell E30 and 2789 in cell F30 and under store #2 I would like excel to put 3848 in cell H30 and 3864 in cell I30.

    I hope this better explained my thought...You have been very helpful so far as well as "jeffreybrown"
    Last edited by shg; 02-12-2011 at 05:23 PM. Reason: deleted spurious quote

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find top 2 lowest numbers and top 2 highest numbers

    Ok...I think we got it this time...
    Still using your posted workbook..

    New formula for the 2nd place value:
    Please Login or Register  to view this content.

    If there is a tie for First Place...
    this is the first occurrence...Otherwise, a text-blank:
    Please Login or Register  to view this content.

    If there is a tie for First Place...
    this is the second occurence...Otherwise, it is the First Place dept:
    Please Login or Register  to view this content.

    If there is a tie for second place...
    this is the first occurrence...Otherwise, a text-blank:
    Please Login or Register  to view this content.

    If there is a tie for second place...
    this is the second occurrence...Otherwise, the second place dept:
    Please Login or Register  to view this content.

    ------------------------------------------
    New formula for Next-to-Last Place:
    Please Login or Register  to view this content.

    If there is a tie for Last Place...
    this is the first occurrence...Otherwise, a text-blank:
    Please Login or Register  to view this content.

    If there is a tie for Last Place...
    this is the second occurence...Otherwise, it is the Last Place dept:
    Please Login or Register  to view this content.

    If there is a tie for Next-to-Last Place...
    this is the first occurrence...Otherwise, a text-blank:
    Please Login or Register  to view this content.

    If there is a tie for Next-to-Last Place...
    this is the second occurrence...Otherwise, the Next-to-Last Place dept:
    Please Login or Register  to view this content.

    How'd we do?

  6. #6
    Registered User
    Join Date
    02-07-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find top 2 lowest numbers and top 2 highest numbers

    WOOOOOOHOOOOOO! You are the man....like we say at work that's a wrap. Now I need to copy everything over to all the cells and this should be good to go.

    Now I will give careful study to the formulas so I may grow from young grasshoppa' to excel master such as yourself

    Thank you, no how much do I owe....

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find top 2 lowest numbers and top 2 highest numbers

    A little gratitude is always nice....I'm afraid you've overpaid me!

  8. #8
    Registered User
    Join Date
    02-07-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find top 2 lowest numbers and top 2 highest numbers

    I do appreciate it...besides I don't this will be the last time I reach out for help. I have to do a sheet for every month, Qtr, half to date, and year to date...fun!

+ 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