+ Reply to Thread
Results 1 to 15 of 15

index match with variables

  1. #1
    Registered User
    Join Date
    10-16-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    7

    index match with variables

    hi all,
    I been playing with index-match but I couldnt get it to work on variable inputs. Hope someone can guide me on how I can do the following,

    Input User and Fruit and it will return the date where the user has this fruit.

    Capture.PNG

    Thank you
    Last edited by markchan74; 10-17-2014 at 01:36 AM. Reason: attachment image cant be seen

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,620

    Re: index match with variables

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    10-16-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    7

    Re: index match with variables

    sample.xls

    I have attached the sample file. Not sure if it works.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: index match with variables

    Example Henry Banana 29-Sep
    your example shows as above
    i think it is 30-Sep am i right?
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: index match with variables

    If i am right try this in Cell E14
    =INDEX($C$3:$G$7,MATCH("Date",$C$3:$C$7,0),MATCH($D14,OFFSET($C$3,MATCH($C14,$C$3:$C$7,0)-1,0,1,COLUMNS($C$3:$G$7)),0))

  6. #6
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: index match with variables

    HI, Refer the attachment with formulas
    Attached Files Attached Files
    Click just below left if it helps, Boo?ath?

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: index match with variables

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    With Index + Indirect Just for knowledge

    Punnam

  8. #8
    Registered User
    Join Date
    10-16-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    7

    Re: index match with variables

    Quote Originally Posted by nflsales View Post
    Example Henry Banana 29-Sep
    your example shows as above
    i think it is 30-Sep am i right?
    Yes, my bad, it is 30 Sep

  9. #9
    Registered User
    Join Date
    10-16-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    7

    Re: index match with variables

    Thank you all

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: index match with variables

    Thanks for your feedback and reputation points

  11. #11
    Registered User
    Join Date
    10-16-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    7

    Re: index match with variables

    trial.xls

    Hi guys,
    What if i want to find something different? See attached.
    I need to find the info highlighted from the table above.

    Thanks

  12. #12
    Registered User
    Join Date
    10-16-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    7

    Re: index match with variables

    Attachment 357252

    Hi guys,
    What if i want to find something different? See attached.
    I need to find the info highlighted from the table above.

    Thanks

  13. #13
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: index match with variables

    hi mark,

    if you are looking for information on INDEX i have a link in my sig that shows how it works and some of its less know uses


    http://www.excelforum.com/tips-and-t...ml#post3882837
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  14. #14
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: index match with variables

    in your example you have a row where cat is called off twice

    see my example sheet.

    trial.xls

    how would you want to deal with that?

  15. #15
    Registered User
    Join Date
    10-16-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    7

    Re: index match with variables

    Hi Twiggy,
    Thanks for the link to index. I will read it up.
    Thanks for the solution too.

    Yes, what if I have such a scenario? I can see that, it can only pick the first one it seen. Is it possible to have a "loop" to put more than one answer in a cell, perhaps maybe using "&" ?

+ 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] Vlookup or index match with 2 or more variables
    By jasonleewkd in forum Excel General
    Replies: 7
    Last Post: 12-14-2012, 04:51 AM
  2. [SOLVED] Index / match with variables
    By Mr_Jack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 05:36 PM
  3. 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
  4. INDEX MATCH with three variables?
    By mindwideopen in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-18-2011, 01:57 PM
  5. Index Match With 3 Variables
    By Scooterdog in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-02-2005, 04:06 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