+ Reply to Thread
Results 1 to 6 of 6

Extract Values If Condition is Satisfied

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

    Extract Values If Condition is Satisfied

    1. Looking for formula (non array preferred) to extract values into column I using column H as the condition for the pull.

    2. Also looking for formula (non array preferred) to extract match into column M2 Based on Value in L2.

    See attached file.

    Thanks
    Attached Files Attached Files
    Last edited by bjnockle; 01-11-2021 at 04:11 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Extract Values If Condition is Satisfied

    Useless Deleted by me
    .
    Last edited by Pepe Le Mokko; 01-11-2021 at 10:05 AM.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Extract Values If Condition is Satisfied

    1. use this:

    =IFERROR(INDEX(F:F,AGGREGATE(15,6,ROW($F$2:$F$100)/(ISNUMBER(SEARCH(H2,$F$2:$F$100))),COUNTIF($H$2:H2,H2))),"")

    2. And this:

    =IFERROR(VLOOKUP($L2,$J:$K,2,FALSE),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Extract Values If Condition is Satisfied

    Glenn: The proposed formula
    HTML Code: 
    works.

    But when I changed the range to start from F2:F100
    Please Login or Register  to view this content.
    , it is not pulling correctly. See the incorrect values below.

    Abo, Cadiz - SA12442673
    Abrahaim, Cadman - CA84636028
    Abrahamo, Cadoret - TB19548089
    Abrahim, Cadwallader - SC17296774


    Could you please assist in adjusting the INDEX portion of the formula to start from F2:F100

    Thanks

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Extract Values If Condition is Satisfied

    Don't change the range. Put it back the way it was.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Extract Values If Condition is Satisfied

    using a full column reference in this case wil have NO impact on performance. If you have an uncontrollable urge to change it to match the rest of the formula, then you need to add in more steps:

    =IFERROR(INDEX($F$2:$F$100,AGGREGATE(15,6,ROW($F$2:$F$100)-ROW($F$2)+1/(ISNUMBER(SEARCH(H2,$F$2:$F$100))),COUNTIF($H$2:H2,H2))),"")

+ 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. If condition satisfied but ignored
    By remkin76 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2019, 12:58 AM
  2. Replies: 7
    Last Post: 06-01-2015, 06:05 PM
  3. Extract values if condition is satisfied
    By bjnockle in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-26-2014, 08:39 AM
  4. Replies: 2
    Last Post: 08-01-2011, 03:22 PM
  5. Replies: 8
    Last Post: 05-06-2011, 08:25 AM
  6. [SOLVED] Deleting columns if condition is satisfied
    By kent-dk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2006, 06:25 AM
  7. Copy sheets only if condition is satisfied (mat)
    By matthias in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-10-2006, 01:10 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