+ Reply to Thread
Results 1 to 3 of 3

Returning row value based on multiple criterias in array (not tables). IF ? Lookup ?

  1. #1
    Forum Contributor
    Join Date
    08-28-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013 on PC, 2011 on MAC
    Posts
    159

    Returning row value based on multiple criterias in array (not tables). IF ? Lookup ?

    This would be easy to figure out in a table, but I can't use one for this particular project (document attached to this post).

    Basically, I'm trying to go through many different game results (cells B18:i196), finding if two teams played against each others, and return the result in the appropriate cell.

    ie. Let's take cell Z8, so "Grenier" against "Legault". I need to go through row 18 through row 196, and find the row that has $B8 in column B, Z$4 in column C, and then return the value of column D (rec) from that specific line. Then copy/paste that formula all over U5:AD14. I think I know how I would do that in a table, but for some reasons, can't figure out how to do it in current sheet format.

    Anyone willing to help will earn my eternal gratitude.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-28-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013 on PC, 2011 on MAC
    Posts
    159

    Re: Returning row value based on multiple criterias in array (not tables). IF ? Lookup ?

    Here's what I tried, but didn't work:

    =IF($B8=Z$4,"-",INDEX($D$18:$D$196,MATCH($B8&Z$4,$B$18:$B$196&$C$18:$C$196,0)))

    Edit: Nevermind, only forgot to enter as an array formula, my bad.
    Last edited by KomicJ; 01-01-2016 at 09:08 PM.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Returning row value based on multiple criterias in array (not tables). IF ? Lookup ?

    Here's another way to do it. Range concatenation is inefficient (slow to calculate).

    Array entered**:

    =IF($B8=Z$4,"-",INDEX($D$18:$D$196,MATCH(1,($B$18:$B$196=$B8)*($C$18:$C$196=Z$4),0)))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 1
    Last Post: 08-06-2015, 04:00 PM
  2. Multiple lookup value but not returning table array results
    By swannee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2014, 02:12 PM
  3. [SOLVED] Searching Multiple Criterias and Returning Multiple Results
    By boaesh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-13-2014, 11:02 AM
  4. [SOLVED] Lookup Based On Multiple Tables
    By Maroota in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2013, 05:37 AM
  5. Replies: 19
    Last Post: 05-09-2012, 03:31 AM
  6. Returning a lookup value based on multiple criteria.
    By ahunter488 in forum Excel General
    Replies: 3
    Last Post: 06-09-2011, 01:55 AM
  7. Excel 2007 : Lookup different tables and based on multiple input criteria
    By The Cushion Supplier in forum Excel General
    Replies: 11
    Last Post: 03-26-2011, 12:04 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