+ Reply to Thread
Results 1 to 7 of 7

index match help needed

  1. #1
    Registered User
    Join Date
    02-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    index match help needed

    Hi,

    I have been trying to seek a solution on the index match option when there are at least 2 variables involved and where the solution i am seeking is a text. I have attached a file with sample data

    Sheet1 is my summary tab with a dropdown menu in cell C3, Country's in Column A and Years in Column B. I have tabs for countries which have the requisite data. Based on the product chosen in C3, I would want to see the comments appearing in Column C in the space provided.

    i have used the Sumifs function for similar requirements but they only work for numericals and they dont seem to work for pulling text. I am guessing that Index match is the only solution. If I am wrong, please do correct me.

    Thanks for your help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: index match help needed

    Do you want comments as a result in Col C??
    Don`t care, take care...

    Regards,
    Mangesh

  3. #3
    Registered User
    Join Date
    02-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Re: index match help needed

    Yes, Mangesh..thats right!

  4. #4
    Registered User
    Join Date
    01-28-2014
    Location
    Brno
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: index match help needed

    Hi,
    for France you can use: =INDEX(France!$C$6:$C$17,SUMPRODUCT((France!$A$6:$A$17=$C$3)*(France!$B$6:$B$17=B6)*(ROW($A$1:$A$12))))
    for Germany: =INDEX(Germany!$C$6:$C$17,SUMPRODUCT((Germany!$A$6:$A$17=$C$3)*(Germany!$B$6:$B$17=B6)*(ROW($A$1:$A$12))))

  5. #5
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: index match help needed

    Okay then you will required helper col in each sheet for multiple conditions in Vlookup

    PLease check attached sheet

    Also note INDIRECT Function will take care of sheet Name reference and will automatically calculate from desired sheet..

    Note: Sheet Names should match with col A details
    Attached Files Attached Files
    Last edited by mangesh.mehendale; 09-02-2015 at 08:59 AM. Reason: Indirect Function Explaination

  6. #6
    Registered User
    Join Date
    02-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Re: index match help needed

    Thanks, Pepe and Mangesh...both your solutions make perfect sense and work very well. So as to avoid adding another 'helper col' in all the country tabs (and I have plenty!!), I have used the indirect function in the formula given by pepe and it works very well.

  7. #7
    Registered User
    Join Date
    01-28-2014
    Location
    Brno
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: index match help needed

    If you populate column A on sheet1 with countries (so A6:A9=France,A10:A13=Germany), than you can use: =INDEX(INDIRECT(A6&"!$C$6:$C$17"),SUMPRODUCT((INDIRECT(A6&"!$A$6:$A$17")=$C$3)*(INDIRECT(A6&"!$B$6:$B$17")=B6)*(ROW($1:$12))))

    If you don't want to populate column A and keep just 1st field (so A7:A9 and A11:A13 are empty), it's still possible, but the formula will look like this:

    =INDEX(INDIRECT(INDEX($A$6:$A$13,SUMPRODUCT(MAX(ISTEXT($A$6:A6)*ROW($1:1))))&"!$C$6:$C$17"),SUMPRODUCT((INDIRECT(INDEX($A$6:$A$13,SUMPRODUCT(MAX(ISTEXT($A$6:A6)*ROW($1:1))))&"!$A$6:$A$17")=$C$3)*(INDIRECT(INDEX($A$6:$A$13,SUMPRODUCT(MAX(ISTEXT($A$6:A6)*ROW($1:1))))&"!$B$6:$B$17")=B6)*(ROW($A$1:$A$12))))

    confirmed by ctrl-shift-enter

+ 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. Second and Third Match on Index Needed
    By excelnoob927 in forum Excel General
    Replies: 0
    Last Post: 11-05-2014, 06:22 PM
  2. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  3. Sum Index Match help needed
    By vhache in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 09:01 AM
  4. Index Match help needed
    By SKIDDERWOLF in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-14-2013, 04:19 AM
  5. Index match help needed
    By jmanz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-06-2012, 05:52 AM
  6. Help needed with INDEX MATCH...
    By Nerf Herder in forum Excel General
    Replies: 4
    Last Post: 06-27-2012, 04:40 AM
  7. [SOLVED] Index and Match Help Needed
    By carl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-26-2005, 05:05 PM

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