+ Reply to Thread
Results 1 to 10 of 10

Excluding data from Index?

  1. #1
    Registered User
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    14.4.2
    Posts
    6

    Post Excluding data from Index?

    Sorry if I'm repeating a question. New to this forum. I'm not even sure if my title is correct! My problem:

    I have two sets of data. I can get the top two from one group:

    =INDEX(B27:G27,MATCH(MAX(B28:G28),B28:G28,0))
    =INDEX(B27:G27,MATCH(LARGE(B28:G28,2),B28:G28,0))

    And the top two from the other group:

    =INDEX(H27:M27,MATCH(MAX(H28:M28),H28:M28,0))
    =INDEX(H27:M27,MATCH(LARGE(H28:M28,2),H28:M28,0))

    But, how would I go about getting the highest one not already chosen. I had tried this (=INDEX(B27:M27,MATCH(LARGE(B28:M28,5),B28:M28,0))) but it doesn't work.

    Group1: 12.33, 12.47, 13.68, 14.25, 8.86
    Group2:10, 6.48, 11.80, 8.15, 4.65, 13.1

    The next number should be 12.47, but my attempt is bringing back 12.33. Any thoughts?

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Excluding data from Index?

    Why are you using index?

    The choose function is just right for this.

    Please Login or Register  to view this content.
    will return 12.47

  3. #3
    Registered User
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    14.4.2
    Posts
    6

    Re: Excluding data from Index?

    Oh apologies! I'm using index to return the name that corresponds to the data. So row 27 is the text I'm wanting to populate in my formula, row 28 contains the data I'm trying to sort from.

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Excluding data from Index?

    I'm not sure I understand the question.

    You have two sets of data, one in A27:F28 that looks like this?
    Please Login or Register  to view this content.
    And a second group in H27:M28?
    Please Login or Register  to view this content.
    Would it be possible to attach a sample workbook (with any sensitive data removed) and show the desired result?

    To attach a file click the "Go Advanced" button, there is a paperclip icon in on top near the text formatting.
    Last edited by Speshul; 10-03-2014 at 09:39 AM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  5. #5
    Registered User
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    14.4.2
    Posts
    6

    Re: Excluding data from Index?

    I've attached an example of what I'm trying to do. Hopefully that helps a little more. I have figured out the top two data entries from each group, and I'm trying to find the next highest overall from both groups.

    Example.xls

  6. #6
    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,926

    Re: Excluding data from Index?

    Hi, welcome to the forum

    But, how would I go about getting the highest one not already chosen. I had tried this (=INDEX(B27:M27,MATCH(LARGE(B28:M28,5),B28:M28,0))) but it doesn't work.

    Group1: 12.33, 12.47, 13.68, 14.25, 8.86
    Group2:10, 6.48, 11.80, 8.15, 4.65, 13.1

    The next number should be 12.47, but my attempt is bringing back 12.33. Any thoughts?
    If you want the next-largest number not yet picked, shouldnt the LARGE() argument be 6?
    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

  7. #7
    Registered User
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    14.4.2
    Posts
    6

    Re: Excluding data from Index?

    So I picked the two highest from Group1 & Group2 (4 total). I'd now like to find the highest overall from all of the data that wasn't in the "two highest" group. Sorry that I'm not explaining clearly.

  8. #8
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Excluding data from Index?

    From the sample file, try

    =INDEX(A5:L5,MAX(MATCH(LARGE(F6:L6,3),F6:L6,0),MATCH(LARGE(A6:E6,3),A6:E6,0)))

    This returns the third largest from each group, and then pulls the LARGEST of those two (using the MAX function), and returns the Group name index.

    Hope this helps
    Last edited by Speshul; 10-03-2014 at 10:45 AM.

  9. #9
    Registered User
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    14.4.2
    Posts
    6

    Re: Excluding data from Index?

    Quote Originally Posted by Speshul View Post
    From the sample file, try

    =INDEX(A5:L5,MAX(MATCH(LARGE(F6:L6,3),F6:L6,0),MATCH(LARGE(A6:E6,3),A6:E6,0)))

    This returns the third largest from each group, and then pulls the LARGEST of those two (using the MAX function), and returns the Group name index.

    Hope this helps
    AHHH THIS IS PERFECT! I knew it was going to have to be some sort of nested formulas; I just couldn't figure out the right combo. Thanks SO MUCH and thanks for the quick responses!!!

  10. #10
    Registered User
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    14.4.2
    Posts
    6

    Re: Excluding data from Index?

    Quote Originally Posted by Speshul View Post
    From the sample file, try

    =INDEX(A5:L5,MAX(MATCH(LARGE(F6:L6,3),F6:L6,0),MATCH(LARGE(A6:E6,3),A6:E6,0)))

    This returns the third largest from each group, and then pulls the LARGEST of those two (using the MAX function), and returns the Group name index.

    Hope this helps
    Actually that was almost perfect. I was messing around with the data just to be sure. If you change cell F6 in my attached example to something smaller, like 5, it doesn't work anymore

    Although you did help out a lot!! Here's my solution: =INDEX(A5:L5,IF(LARGE(A6:E6,3)>LARGE(F6:L6,3),MATCH(LARGE(A6:E6,3),A6:E6,0),5+MATCH(LARGE(F6:L6,3),F6:L6,0)))
    Last edited by haxen2000; 10-03-2014 at 11:37 AM. Reason: Found solution

+ 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. Excluding data from worksheets
    By DazFNQ in forum Excel General
    Replies: 1
    Last Post: 07-17-2013, 12:59 AM
  2. Index Formula using max and excluding specifc value
    By bswitalski in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2013, 09:26 AM
  3. Replies: 6
    Last Post: 03-27-2012, 08:25 AM
  4. Charting data while excluding zeros
    By TheNameless122 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-15-2010, 09:11 AM
  5. Excluding Non Mature Data
    By kdegross in forum Excel General
    Replies: 26
    Last Post: 12-16-2009, 04:35 PM

Tags for this Thread

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