+ Reply to Thread
Results 1 to 3 of 3

Extract values if conditions are met

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Extract values if conditions are met

    Looking for non-array formula (for example LOOKUP Excel Function) to extract values from H3:U19 into J23:M26 if conditions i23:i26 and J22:M22 are met (see Looklist and Outcome Sheet for outcome). Sample file attached.

    Also looking for non-array formula (for example LOOKUP Excel Function) to extract values from H3:U19 into J30:M33 if conditions i30:i33 and J29:M29 are met (see Looklist and Outcome Sheet for outcome). Sample file attached.
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Extract values if conditions are met

    If only ONE row satisfies criteria across multiple columns, SUMIFS can be used instead of a lookup function to return a NUMERIC value.
    Try this in J23, copied across and down:
    =SUMIFS($U$4:$U$19,$H$4:$H$19,$I23,$I$4:$I$19,J$22)

    ...and this in J30, copied across and down:
    =SUMIFS($U$4:$U$19,$H$4:$H$19,J$29,$I$4:$I$19,$I30)

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Attached Files Attached Files
    Last edited by leelnich; 08-06-2017 at 10:18 PM.

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Extract values if conditions are met

    As noted in post #2, SUMIFS works for NUMBERS, but the following can return ANY value type from one column based on values in other columns:
    Alternative for J23, copied across and down:
    =LOOKUP(1,1/(($H$4:$H$19=$I23)*($I$4:$I$19=J$22)),$U$4:$U$19)

    Alternative for J30, copied across and down:
    =LOOKUP(1,1/(($H$4:$H$19=J$29)*($I$4:$I$19=$I30)),$U$4:$U$19)

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 08-07-2017 at 03:54 AM.

+ 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] Extract values based if conditions met
    By bjnockle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-06-2017, 06:06 PM
  2. Extract values if two (2) conditions met
    By bjnockle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-20-2017, 03:52 AM
  3. [SOLVED] Extract values in a range if conditions met
    By bjnockle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2017, 10:13 PM
  4. [SOLVED] Extract Unique Values, Then Extract Again to Remove Suffixes
    By Karl Burrows in forum Excel General
    Replies: 23
    Last Post: 06-25-2005, 08:05 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