+ Reply to Thread
Results 1 to 10 of 10

I think it's a solution for an Index Function, but I'm not sure how...

  1. #1
    Registered User
    Join Date
    07-22-2015
    Location
    Atlanta, Georgia
    MS-Off Ver
    MS Office 2013 Plus Professional
    Posts
    2

    Exclamation I think it's a solution for an Index Function, but I'm not sure how...

    I have two tables... The data I am working with, in it's simplest form, can be described as in the tables below... I am trying to determine a formula to return the highest value in Table two, Column 2, for the numbers that are in Table One, Column 1. The numbers in Table One, Column 1 are the same values as those listed in Table Two, Column 1. Essentially, I would like to utilize a vlookup, or index/match, function to lookup the values in Table One Columns 1 & 2 to display the text, or value, in Column 3 Table Two. It essentially summarizes all the parts purchased by airplane number.

    Please assist using the tables below!!! Thanks!!!

    Table One:
    Summary of Parts Purchased Per Airplane
    Column 1 Column 2 Column 3
    Airplane Number Highest Number of Characters Description of Parts Purchased by Airplane Number
    1 (formula determine highest value in Table 2, Column 3) (Display total parts description, based on highest number of characters)
    2 "" (Display total parts description, based on highest number of characters)
    3 "" (Display total parts description, based on highest number of characters)
    4 "" (Display total parts description, based on highest number of characters)
    5 "" (Display total parts description, based on highest number of characters)

    Table Two:
    Purchases by each Airplane
    Column 1 Column 2 Column 3
    Airplane Number Number of Characters in Column 3 Description of Parts Purchased by Airplane
    1 1 a
    1 4 a, b
    1 8 a, b, c
    2 1 e
    2 4 e, f
    2 8 e, f, g

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,337

    Re: I think it's a solution for an Index Function, but I'm not sure how...

    Can please post a small sample file showing expected results.

  3. #3
    Registered User
    Join Date
    07-22-2015
    Location
    Atlanta, Georgia
    MS-Off Ver
    MS Office 2013 Plus Professional
    Posts
    2

    Re: I think it's a solution for an Index Function, but I'm not sure how...

    Please see attached file. If you have any questions about my descriptions, please let me know... Obviously, this table is significantly smaller than the data I am working with, otherwise I would simply copy/paste the values or something along those lines.

    Thanks!
    Attached Files Attached Files

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

    Re: I think it's a solution for an Index Function, but I'm not sure how...

    =INDEX(B9:B14;EQUIV(MAX(SI(A9:A14=$A$3;B9:B14));B9:B14;0))

    Put this in B3. You have to enter it with CTRL+SHIFT+ENTER instead, which will put brackers {} around the formula.

    edit: oops, put the french formula lol

    =INDEX(B9:B14,MATCH(MAX(IF(A9:A14=$A$3,B9:B14)),B9:B14,0))

    edit2: wow very timed with FDibbins there

  5. #5
    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,946

    Re: I think it's a solution for an Index Function, but I'm not sure how...

    Try this ARRAY formula...
    =INDEX($C$9:$C$14,MATCH(A3&" "&MAX(IF($A$9:$A$14=$A3,$B$9:$B$14)),$A$9:$A$14&" "&$B$9:$B$14,0))
    copied down

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    edit: Looks like I skipped a step, I didnt bother to do the calc for B3, I did that straight in C3. If you want it broken down...
    B3=MAX(IF($A$9:$A$14=$A3,$B$9:$B$14))
    ARRAY entered
    C3=INDEX($C$9:$C$14,MATCH(A3&" "&F3,INDEX($A$9:$A$14&" "&$B$9:$B$14,0),0))
    Regular formula
    Last edited by FDibbins; 07-22-2015 at 05:14 PM.
    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

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,337

    Re: I think it's a solution for an Index Function, but I'm not sure how...

    The attached file shows the formulae.

    This are all array formulae and must be entered with CTRL+SHIFT+ENTER

    Note that array formulae are expensive on resource so limit the ranges you define to sensible maxima: do not use column ranges such as "A:A" but rather A1:A5000
    Attached Files Attached Files

  7. #7
    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,946

    Re: I think it's a solution for an Index Function, but I'm not sure how...

    @ John, Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!

  8. #8
    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,946

    Re: I think it's a solution for an Index Function, but I'm not sure how...

    Quote Originally Posted by Jdevil View Post
    =INDEX(B9:B14;EQUIV(MAX(SI(A9:A14=$A$3;B9:B14));B9:B14;0))

    Put this in B3. You have to enter it with CTRL+SHIFT+ENTER instead, which will put brackers {} around the formula.

    edit: oops, put the french formula lol

    =INDEX(B9:B14,MATCH(MAX(IF(A9:A14=$A$3,B9:B14)),B9:B14,0))

    edit2: wow very timed with FDibbins there
    1st I was wondering what EQIV and SI were, so thanks for the "translation"

    2nd, that returns 4, 4 and 4 for answers?
    (also, you needed to absolute your ranges, otherwise the last 4 is actually #N/A)

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,337

    Re: I think it's a solution for an Index Function, but I'm not sure how...

    Ford


    This is my second warning so I see little point in continuing participating in the forum. I have managed to find my way round without being "spoon fed" and I am sure other participants are just as (if not more) capable of doing the same.

    You showing a formula without any context (other the written description from the OP) is no better than me or anyone posting a sample worksheet where at least the recipient can see it in context.


    " I didnt bother to do the calc for B3, I did that straight in C3." (your quote) again is meaningless unless the file has been looked at.

    If you consider your answer to be "substantive" i.e a formula , then we differ on the interpretation of the word substantive.

    Do you really believe people spend their time looking at abstract formulae in isolation: if I am sufficiently interested I will look at a file TOGTHER with any formulae for it to make sense.

  10. #10
    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,946

    Re: I think it's a solution for an Index Function, but I'm not sure how...

    John, without getting into an unnecessary debate/discussion here (this is not the place), it was not a warning, it was a request, and the request was to include the formula as well as the file.
    Last edited by FDibbins; 07-22-2015 at 05:59 PM.

+ 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. Using Sumproduct with Index and match - or is there another solution?
    By bildar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2014, 04:19 AM
  2. Index, Match, and/or SumProduct solution?
    By phrankndonna in forum Excel General
    Replies: 3
    Last Post: 12-11-2012, 07:15 PM
  3. [SOLVED] Index array solution
    By holycowbanana85 in forum Excel General
    Replies: 15
    Last Post: 07-24-2012, 04:46 PM
  4. INDEX/LOOKUP solution
    By johnmitch38 in forum Excel General
    Replies: 4
    Last Post: 10-26-2011, 11:01 AM
  5. Index array formula the best solution?
    By edgearmy619 in forum Excel General
    Replies: 0
    Last Post: 05-18-2011, 02:40 AM
  6. Solution Quality Index
    By Problemss in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2008, 08:03 PM
  7. Index/Match Solution?
    By WeatherGuy in forum Excel General
    Replies: 3
    Last Post: 01-31-2006, 06:20 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