+ Reply to Thread
Results 1 to 6 of 6

Return 4th highest number not in list.

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Return 4th highest number not in list.

    From a given list of numbers I want to return the 4th highest number that is not in the list.

    If a given list is 1, 2, 3 then the next highest number is 4 but if the list were 1, 6, 3 the 4th highest number not listed is 2. I'm not sure how to accomplish this. A list of 1, 2, 7 would return 3.

    Jim O
    Last edited by JO505; 08-03-2015 at 04:26 PM.

  2. #2
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Quebec, Canada
    MS-Off Ver
    2013
    Posts
    232

    Re: Return 4th highest number not in list.

    I don't understand what you mean by "4th highest number". How is 2 the 4th highest number in 1,6,3? Don't you mean the lowest (not already there) integer? And do you always only have 3 numbers?

  3. #3
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Return 4th highest number not in list.

    Sorry for the confusion (I'll blame it on Monday). Yes their are always 3 starting numbers.

    I am trying to compile a list of sports teams (MLB) wild card teams. The example shows what I have so far but for the
    sake of clarity I have not included the formulas that build this example.

    I am looking to populate cells F16 & J16 with the next best record not listed in the cells F12:F14 & J12:J14.

    Hope this helps.

    Jim O
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: Return 4th highest number not in list.

    Yes, you can do something like the attached:

    rank_unused_cy.xlsx

    • Column B shows the list of possible numbers that can be selected
    • Column E shows the list of numbers that HAVE been selected
    • Column H shows the numbers that have NOT been selected
    • Column I shows the unselected numbers ranked in descending order

    If you want the 4th highest unused number, just VLOOKUP '4' in column G to get 80.

  5. #5
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Quebec, Canada
    MS-Off Ver
    2013
    Posts
    232

    Re: Return 4th highest number not in list.

    Here is a simple way:

    =IF(AND(F12<>1,F13<>1,F14<>1),1,IF(AND(F12<>2,F13<>2,F14<>2),2,IF(AND(F12<>3,F13<>3,F14<>3),3,4)))

  6. #6
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Return 4th highest number not in list.

    Jdevil,

    That seems to be the answer.

    Thanks very much for your input.

    Jim O

+ 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] How2 find number in range and return that number or if doesn't exist then the next highest
    By Crawfinator1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-06-2014, 08:52 AM
  2. [SOLVED] Return the highest number from more than 30 fields
    By DWSchuetz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 08:36 PM
  3. Return number with highest frequency count
    By Archibald_SM in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2011, 06:14 PM
  4. Return highest number with date
    By ClearConcept in forum Excel General
    Replies: 2
    Last Post: 10-09-2009, 12:05 PM
  5. Return based on highest number in row
    By jillteresa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2009, 01:43 PM
  6. Return 3rd Highest Value from Unsorted List
    By jpopovaclark in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2007, 05:55 PM
  7. [SOLVED] choose the highest value in a row and return column number
    By jlburke4 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2005, 02:50 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