+ Reply to Thread
Results 1 to 3 of 3

Checking multiple criteria and select data over multiple columns

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    1

    Checking multiple criteria and select data over multiple columns

    I'm trying to do an index match that will allow me to check multiple criteria to find the appropriate row, then find the appropriate column.

    I already know about a formula that will allow me to check multiple criteria, but it seems it is limited to pulling data from only one column, e.g. {=INDEX($D$2:$D$10,MATCH(1,(A13=$B$2:$B$10)*(B13=$C$2:$C$10),0))}

    Is there any way to add a lookup function to the formula that will allow me to select the column I want to pull data from?

    Thanks,

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Checking multiple criteria and select data over multiple columns

    The match() function returrn the position in a RANGE of cells, column, row, array...
    depending on how you use it, you can get both, for simple example- you want to know how many "APPLES" "JAKE" has, the information is stored in a table style..rows with name, columns with fruit(names start in A2 and go down,fruit names start in b1 and go across)...= Index($A$1:$AA$27,MATCH("JAKE",$A$2:$Z$27, 0),MATCH("APPLES",$A$1:$AA$1,0))', will give you the match of "JAKE" and "APPLES"...Say jake is in row 15, and apples is in column F,this will result in =INDEX($A$1:$AA$27,15,6), whict is the same as =$F$15, so the value at F15 gets returned...

    Looks confusing I guess....

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    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,929

    Re: Checking multiple criteria and select data over multiple columns

    the syntax for an index/match/match formula is =index(range,row,column) so in your formula, you might try to put the bolded part in a cell of its own and then reference it?

    {=INDEX($D$2:$D$10,MATCH(1,(A13=$B$2:$B$10)*(B13=$C$2:$C$10),0),1)}
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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