+ Reply to Thread
Results 1 to 4 of 4

return nth highest number after search criteria met

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2015
    Location
    viera, FL
    MS-Off Ver
    Ofiice 365
    Posts
    32

    return nth highest number after search criteria met

    In the attached worksheet (Tab2, D21) I am trying to return the 2nd largest number from the data present in Tab1. The search should look at the data in Tab1, column 4 with a result of "2" again returning the 2nd highest number. Correct value should be -11.


    In Tab2, D30 it should return the 2nd highest number but only considering the data in Tab1, column 4 with a criteria of "3". Correct value is -6

    Thank you in advance.

    Gary
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: return nth highest number after search criteria met

    1. =LARGE(IF('Tab2'!4:4="2",'Tab1'!10:10),2) The "" around the 2 renders the 2 as text and not a number. The data types must be the same.
    2. I find neither of these. Correct value should be -11. Correct value is -6
    3. Are you sure this is the correct workbook?
    Dave

  3. #3
    Registered User
    Join Date
    12-07-2015
    Location
    viera, FL
    MS-Off Ver
    Ofiice 365
    Posts
    32

    Re: return nth highest number after search criteria met

    Thanks Dave, yes it worked. I first tried in my original workbook and it works and then I came back to my uploaded attachment and it works there as well. I had the formula in my attachment incorrect but once I fixed it it does return a -11. Should have been {=LARGE(IF('Tab1'!4:4=2,'Tab1'!10:10),2)} instead of {=LARGE(IF('Tab2'!4:4=2,'Tab1'!10:10),2)}. Thanks again.

    Gary

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: return nth highest number after search criteria met

    You are welcome. Glad to help. Thank you for the feedback, added rep and marking your thread Solved.

+ 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. Replies: 4
    Last Post: 05-16-2016, 06:50 PM
  2. Replies: 2
    Last Post: 01-19-2016, 09:40 AM
  3. [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
  4. Search for SECOND highest number in an array
    By King Simon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2013, 09:05 AM
  5. Highest Value Search/Corresponding Month Return
    By mrcables in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-13-2013, 06:43 AM
  6. VBA code to find highest and 2nd highest number based in criteria
    By Michael007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2011, 08:38 AM
  7. [SOLVED] can I search all worksheets in an xls for highest number on load?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2006, 10: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