+ Reply to Thread
Results 1 to 7 of 7

Lookup first match corresponding to any combination of values from multiple criteria lists

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Lookup first match corresponding to any combination of values from multiple criteria lists

    Hi,

    I have a Table 1 with several columns of data. In Table 4 I have some of the data from one of the Table 1 columns. I need to perform a lookup with the data in Table 4 against Table 1 that also satisfies any given criteria given in Table 2 and Table 3. Table 2 and Table 3 contains some of the data from other Table 1 columns than what Table 4 does. For the first match that satisfies all criteria, I need to return the sum of two corresponding columns in Table 1 back to Table 4, in a column adjacent to the matched values. I need the formula for this to return a dynamic array that spills the values down alongside the Table 4 criteria.

    Does anyone have a solution?

    Best regards,
    Marbleking
    Last edited by Marbleking; 09-08-2020 at 10:09 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Lookup first match corresponding to any combination of values from multiple criteria l

    After looking for the criteria a filter on the data.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Lookup first match corresponding to any combination of values from multiple criteria l

    Please try at
    K4
    =UNIQUE(A4:A30)

    L4
    =MOD(SMALL(XLOOKUP(K4#&TRANSPOSE(G4:G6)&I4,A4:A30&B4:B30&C4:C30,D4:D30+E4:E30,9^5)+SEQUENCE(ROWS(K4#))*10^9,SEQUENCE(ROWS(K4#),,,3)),10^6)

  4. #4
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Lookup first match corresponding to any combination of values from multiple criteria l

    Thank you for great and instructive input!

    Regards,
    Marbleking

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Lookup first match corresponding to any combination of values from multiple criteria l

    So there's only ever one entry in Table3?

    The fact that you've marked this thread as 'solved' would suggest as much, though just thought I'd ask.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Lookup first match corresponding to any combination of values from multiple criteria l

    Thank you for great and instructive input!

    Regards,
    Marbleking
    You don't add in your reply to whom you are replying.

  7. #7
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Lookup first match corresponding to any combination of values from multiple criteria l

    Hi,

    Thanks to you, Oeldere, I appreciate your input. Also thanks to Bo_Ry for supplying a solution without helper columns that creates a spilled range.

    As to the question asked by XOR LX, I think that's a good question. For my immediate use, there's only going to be one entry in Table 3. But it sure would be useful to see a more generalized solution which takes into account the possibility of several entries in both Table 2 and Table 3, as well as perhaps also additional criteria tables.

    The best place to learn about these kinds of formulas have proven to be this very forum, though I'd like to find a resource online that contains learning resources about array formulas like this and others.

    Best regards,
    Marbleking

+ 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] Lookup with multiple match criteria
    By Hurley123 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-30-2020, 01:12 PM
  2. [SOLVED] Lookup to match multiple criteria and return multiple results excluding duplicates.
    By kris3012 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-13-2018, 11:06 AM
  3. [SOLVED] Potential combination of LookUp and DeDupe to create multiple values in a single cell
    By Bwambale in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-25-2016, 08:51 AM
  4. [SOLVED] lookup match with multiple criteria
    By Bobsone in forum Excel General
    Replies: 5
    Last Post: 11-08-2014, 07:43 PM
  5. Lookup across a row and sum values in columns that match row criteria?
    By Reanon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2013, 01:43 AM
  6. Replies: 7
    Last Post: 08-04-2013, 03:41 PM
  7. Lookup, match or combination
    By kryt0n in forum Excel General
    Replies: 7
    Last Post: 09-06-2012, 11:41 AM

Tags for this Thread

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