+ Reply to Thread
Results 1 to 12 of 12

Help with match index two variables

  1. #1
    Registered User
    Join Date
    03-08-2016
    Location
    Canada
    MS-Off Ver
    2015
    Posts
    70

    Help with match index two variables

    Kinda stuck . I have data layed out that is not ideal. In my example I need excel to find the colour blue in a list of colours and then find a number below the colour and retrieve the number below that and the number to the right . I have attached a workbook that shows in yellow what i am looking for . I would like be able to change both the colour and the number. Thank you for any help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,109

    Re: Help with match index two variables

    In G3:
    =INDEX($A$1:$A$21,MATCH(F3,A1:A21,0)+3)

    I3:
    =INDEX($A$1:$A$21,MATCH(F3,A1:A21,0)+4)
    J3:
    =INDEX($B$1:$B$21,MATCH(F3,A1:A21,0)+4)
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,991

    Re: Help with match index two variables

    Try this in I3:

    =INDEX(A$1:A$21,MATCH(1,(ROW($A$1:$A$21)>MATCH($F$3,$A$1:$A$21,0))*($A$1:$A$21=$G$3),0)+1)

    Enter with Ctrl+Shift+Enter.

  4. #4
    Registered User
    Join Date
    03-08-2016
    Location
    Canada
    MS-Off Ver
    2015
    Posts
    70

    Re: Help with match index two variables

    Thank you so much for your help but in my example the colour and the 28.5 are variables that find the two numbers in yellow. So f3 and g3 will be changed. Thank you again

  5. #5
    Registered User
    Join Date
    03-08-2016
    Location
    Canada
    MS-Off Ver
    2015
    Posts
    70

    Re: Help with match index two variables

    Thanks phunocam that did not seem to work either

  6. #6
    Registered User
    Join Date
    03-08-2016
    Location
    Canada
    MS-Off Ver
    2015
    Posts
    70

    Re: Help with match index two variables

    Wait a second that did work. Cant thank you enough. Cheers!

  7. #7
    Registered User
    Join Date
    03-08-2016
    Location
    Canada
    MS-Off Ver
    2015
    Posts
    70

    Re: Help with match index two variables

    I just need to fill in j3 now

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Help with match index two variables

    Put this formula in I3:

    =INDEX(A:A,MATCH($F$3,$A:$A,0)+MATCH($G$3,$A$2:$A$7,0)+1)

    and copy it into J3.

    Hope this helps.

    Pete

  9. #9
    Registered User
    Join Date
    03-08-2016
    Location
    Canada
    MS-Off Ver
    2015
    Posts
    70

    Re: Help with match index two variables

    Ok we got a winner! Thank you all for the help!!

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Help with match index two variables

    Thanks for the rep.

    If that takes care of your original question, please click on Thread Tools immediately above your first post in this thread, and mark the thread as Solved.

    Pete

  11. #11
    Registered User
    Join Date
    03-08-2016
    Location
    Canada
    MS-Off Ver
    2015
    Posts
    70

    Re: Help with match index two variables

    I went to do that at first but these were my options? Sorry been awhile?
    Show Printable Version
    Email this Page…
    Unsubscribe from this Thread
    Add a Poll to this Thread…

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Help with match index two variables

    There are some problems on the board at the moment - the "Mark as Solved" option seems to have been lost.

    Pete

+ 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] INDEX+MATCH with 3 variables
    By KJensen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-14-2019, 05:35 AM
  2. Index match with 2 variables
    By billyshears in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-06-2016, 06:08 PM
  3. [SOLVED] VBA index-match with variables
    By vio.coman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2015, 07:55 AM
  4. index match with variables
    By markchan74 in forum Excel General
    Replies: 14
    Last Post: 11-07-2014, 01:10 PM
  5. [SOLVED] Index / match with variables
    By Mr_Jack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 05:36 PM
  6. Utilizing INDEX/MATCH to match variables by column only
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-29-2011, 09:53 AM
  7. INDEX MATCH with three variables?
    By mindwideopen in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-18-2011, 01:57 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