+ Reply to Thread
Results 1 to 7 of 7

Extract entire row with 3 conditions.

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Extract entire row with 3 conditions.

    Hello Friends

    Please find the attached file (Extract entire row with 3 conditions.xlsx).

    I need to plot the entire row with 3 conditions.

    If the given inputs matching to Column C and Column G and if the Column A is filled i.e., un blank then the entire row needs to be filled.

    thanks in advance.
    Attached Files Attached Files
    Sekar

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Extract entire row with 3 conditions.

    In Sheet1 I14

    =IFERROR(INDEX($A$1:$A$192,SMALL(IF((($C$1:$C$192=$I$5)+($C$1:$C$192=$I$6)+($C$1:$C$192=$I$7)+($C$1:$C$192=$I$8)+($C$1:$C$192=$I$9))*(($G$1:G$192=$J$5)+($G$1:G$192=$J$6))*($A$1:A$192<>""),ROW($A$1:$A$192)-ROW($A$1)+1,""),ROWS($1:1))),"")

    Enter with Ctrl+Shift+Enter

    Copy down

    For other columns change highlighted range to required columns.

    You should now be able to do the other samples you gave.

  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: Extract entire row with 3 conditions.

    Quote Originally Posted by johntopley View Post
    (($c$1:$c$192=$i$5)+($c$1:$c$192=$i$6)+($c$1:$c$192=$i$7)+($c$1:$c$192=$i$8)+($c$1:$c$192=$i$9))
    That can be reduced to:

    --ISNUMBER(MATCH($C$1:$C$192,$I$5:$I$9,0))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Extract entire row with 3 conditions.

    Modified formula thanks to Tony in Post #3

    =IFERROR(INDEX($A$1:$A$192,SMALL(IF((--ISNUMBER(MATCH($C$1:$C$192,$I$5:$I$9,0)) )*(--ISNUMBER(MATCH($G$1:$G$192,$J$5:$J$6,0)))*($A$1:A$192<>""),ROW($A$1:$A$192)-ROW($A$1)+1,""),ROWS($1:1))),"")

    Entered with Ctrl+Shift+Enter

    I have changed formula in first column to be as above. Others need changing (ranges) as per my earlier post.
    Attached Files Attached Files
    Last edited by JohnTopley; 05-20-2016 at 01:46 PM.

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Extract entire row with 3 conditions.

    I think this can be accomplished with slicers. Convert the data range to an Excel Table and then insert slicers for Columns C & G.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  6. #6
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Extract entire row with 3 conditions.

    Hello Biff , JohnTopley and dflak

    Thanks for the solutions. Formulas are working well. I need to learn about slicers and again i need to upgrade to 2013 from 2010.

    thanks again

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

    Re: Extract entire row with 3 conditions.

    You're welcome. We appreciate the feedback!

+ 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] Copying and Pasting entire rows on conditions
    By Nuccio92 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2015, 02:01 PM
  2. [SOLVED] Color entire range on conditions
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-17-2015, 01:24 AM
  3. [SOLVED] Select Entire Row When Two Conditions are met in a range
    By jagadeesh.rt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2014, 12:09 PM
  4. [SOLVED] Highlight only one Cell in the entire row based on conditions
    By ascool_asice in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-23-2013, 06:15 AM
  5. Need to extract particular details from entire column
    By prakashmak in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-10-2013, 05:27 AM
  6. [SOLVED] Highlight entire row based of multiple if conditions.
    By nhi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2013, 05:59 PM
  7. [SOLVED] Extract the maximum value and copy the entire row.
    By Faye in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-18-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