+ Reply to Thread
Results 1 to 6 of 6

Rank with conditions from two tables

  1. #1
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Rank with conditions from two tables

    In the attached workbook I am looking to extract the top (smallest) 10 times from 2 separate tables. If it was straight forward it wouldn't be a problem, however the 1st and 2nd ranking must be the top (smallest) 2 times from table 1 where 3rd-10th ranking come from either table. Notice in the attached the 3rd place ranking of 9.13 comes from table 2 and is actually smaller than the 2nd place ranking of 9.27 from table 1. this is probably child's play for the group but it seems to be eluding me this morning.

    Thanks
    Attached Files Attached Files
    Click here to read the Forum Rules
    Whatever it is in life you decide to go after, go after with great ferocity.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Rank with conditions from two tables

    When you say table 1 and table 2, you mean that table 1 is B3:B10 or B3:C10, and table 2 is B12:B19 or B12:B19?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Re: Rank with conditions from two tables

    Table 1 - B3:C10
    Table 2 - B12:C19

    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Rank with conditions from two tables

    Hi

    Cell I6 =SMALL($B$3:$C$19,ROWS($A$1:A1)) copy down
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Rank with conditions from two tables

    Pl see the attached file with array formula.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Re: Rank with conditions from two tables

    kvsrinivasamurthy you guys amaze me with some of these array formulas you come up with..... It worked perfectly and is appreciated.

    micope21 Thanks for the formula. I had tried that one but it ignored the fact that the first and second rankings needed to come from one table where the 3rd through 10th could come from either. Check out the array formula that kvsrinivasamurthy uses in his attached workbook. It handles the conditions perfectly.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Rank with conditions from two tables

    Pl mark the thread SOLVED.

+ 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