+ Reply to Thread
Results 1 to 5 of 5

Formula to search and match data from using two criteria

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Formula to search and match data from using two criteria

    I am looking for a formula that will search data from 2 cells against another table/book and return the info that matches those 2 cells.

    (Hope the attachement works... I got some error when uploading it )
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Formula to search and match data from using two criteria

    Joe O Ceadaigh,

    Because the information you're returning is a number (price), you can use Sumifs. So using your provided example, in cell C23 and copied down:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Formula to search and match data from using two criteria

    Thanks Tiger,
    Unfortunately I have information I need to pull from multiple books and not all are number... some are text.
    For example if I wanted the colour to be included... what would be the formula?

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Formula to search and match data from using two criteria

    Then it gets a bit more complicated. I personally prefer Index/Match/Index for something like that. The basic format of the formula is:
    =INDEX(OutputValues,MATCH(1,INDEX((CriteriaRange1=Criteria1)*(CriteriaRange2=Criteria2)*(CriteriaRange3=Criteria3)*(etc...),),0))

    So, using your provided workbook, and because you are only matching 2 criteria to return the color, you would use the formula like this in cell C23 and copied down:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Formula to search and match data from using two criteria

    Thanks again Tiger... I will give that a try and see how I get on.

+ 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