+ Reply to Thread
Results 1 to 13 of 13

Extract row for specific cells with 2 Criterias

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

    Extract row for specific cells with 2 Criterias

    Hello Friends

    In Sheet 1 for Column B filter only for `ABC dmkijtfsh' then in Column BA Text filter `NT'

    Refer the required result in Sheet 2 Light yellow cells, Sheet 3 shows the after filtered view for better understanding.

    thanks in advance

    Sekar
    Sekar

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Extract row for specific cells with 2 Criterias

    1st you need to use real headings for your data, and those headings need to be repeated in your extract table
    for the sake of simplicity, I used 1 (col B) to 54 (BC), then repeated those numbers in your extract table (4, 10, 26 etc)

    I used this ARRAY formula...
    =IFERROR(INDEX(Sheet1!$B:$BC,SMALL(IF((Sheet1!$B$4:$B$87="ABC dmkijtfsh")*(Sheet1!$BA$4:$BA$87="NT"),ROW(Sheet1!$B$4:$B$87)),ROWS($A$1:A1)),MATCH(B$54,Sheet1!$B$2:$BC$2,0)),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Copy that down as needed, then copy across as needed.

    I have NO idea where you got the values from in col E?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Extract row for specific cells with 2 Criterias

    These array formula shows blank even after Ctrl+Shift+Enter

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Extract row for specific cells with 2 Criterias

    Did you change the headings like I told you to?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Extract row for specific cells with 2 Criterias

    This is what I got....
    B
    C
    D
    E
    53
    4
    10
    26
    54
    4
    10
    26
    45
    55
    a
    72
    Y123_XYZ
    148
    56
    a
    79
    Z234_ABC
    901
    57
    a
    91
    B123_ABC
    773
    58
    Column E Column K Column AA Column AT
    59
    My Extract
    60
    a
    72
    Y123_XYZ
    2
    61
    a
    79
    Z234_ABC
    2
    62
    a
    91
    B123_ABC
    2

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

    Re: Extract row for specific cells with 2 Criterias

    Can you please upload a file, i tried still i am getting blank cells.

  7. #7
    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,000

    Re: Extract row for specific cells with 2 Criterias

    See sheet 4. In A2, copied across and down:

    =IFERROR(INDEX(Sheet1!A:A,AGGREGATE(15,6,ROW(Sheet1!$A$4:$A$100)/((Sheet1!$B$4:$B$100="ABC dmkijtfsh")*(Sheet1!$BA$4:$BA$100="NT")),ROWS(A$2:A2))),"")
    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

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Extract row for specific cells with 2 Criterias

    Here is your file.

  9. #9
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Extract row for specific cells with 2 Criterias

    Why not go with Pivot Table.
    One logic not know about sheet2 column "E" how comes 148,901, 773
    Refer attach file.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Extract row for specific cells with 2 Criterias

    avh I couldnt figure that out either. Seeing as they were manually entered, probably just "garbage" values?

  11. #11
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Extract row for specific cells with 2 Criterias

    FDibbins : Yes i also that way think. Let's waiting for their reply. Have a good day.

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

    Re: Extract row for specific cells with 2 Criterias

    Hello Glenn, Ford and avk

    Thanks for all, prefer to go for Non Array glenn's formula, not preferred for pivot table.

    Also i have not seen glenn's post so i editied Ford's formula to suit for my application since i cannot allow the manually entered numbers in Sheet 1 Say input sheet.

    Please refer the attached file Extract row for specific cells with Creterias-2.xlsx Sheet2 Cells B60:E62,

    Once again thank to all.

    Sekars

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Extract row for specific cells with 2 Criterias

    Happy to help and thanks for 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] Extract row for specific cells with Criteria's
    By Sekars in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2019, 09:52 PM
  2. Extract values from table based on 2 criterias
    By plamenbv in forum Excel General
    Replies: 0
    Last Post: 09-19-2013, 05:09 AM
  3. Macro to extract data from multiple workbooks, specific sheet, specific cells
    By crissandraauree in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2012, 03:54 PM
  4. Extract Datas depending on Criterias
    By Guillaume83 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2011, 05:29 AM
  5. Removing spaces in specific cells given certain criterias.
    By josnah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-13-2007, 01:57 PM
  6. Extract specific words from cells
    By Santa-D in forum Excel General
    Replies: 6
    Last Post: 06-18-2006, 11:10 PM
  7. [SOLVED] extract specific info from cells in a column
    By Herman in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-26-2005, 10: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