+ Reply to Thread
Results 1 to 11 of 11

Generate a List of All Items iN Column A that Match a Criteria in Column B

  1. #1
    Registered User
    Join Date
    01-02-2019
    Location
    New York
    MS-Off Ver
    365
    Posts
    5

    Generate a List of All Items iN Column A that Match a Criteria in Column B

    All,

    I have a sheet that i need to extract a list from. The data would be like below. What i would like is a list of all the ID's that Match a Specific Manu. List all ID's that have a Manu of SG. Should return a column that has 1000,1003,1006,1009 and on... I'm think this could be done with Index and match but cant quit figure it out. Any Help Please

    ID Manu
    1000 SG
    1001 IT
    1002 AGS
    1003 SG
    1004 IT
    1005 AGS
    1006 SG
    1007 IT
    1008 AGS
    1009 SG
    1010 IT
    1011 AGS
    1012 SG
    1013 IT

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B

    Pivot table would make that in a snap.

    Pete

  3. #3
    Registered User
    Join Date
    01-02-2019
    Location
    New York
    MS-Off Ver
    365
    Posts
    5

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B

    Thank for the response, While it true that a pivot table is easy to use for this data. I am trying to automate a CSV output. Can i save a Pivot Table as a CSV i have never tried, just kind of assumed it wouldn't work.

    Pete

  4. #4
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B


  5. #5
    Registered User
    Join Date
    01-02-2019
    Location
    New York
    MS-Off Ver
    365
    Posts
    5

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B

    Thanks, That works just fine and allows me to pull all of the data i need out easily... (little embarrassed i didn't just try it in the first place)
    Now i'm just simply curios. Could this be done using index and match?

    Pete

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B

    How about

    Excel 2013 32 bit
    A
    B
    C
    D
    E
    1
    ID Manu
    2
    1000
    SG SG
    1000
    3
    1001
    IT
    1003
    4
    1002
    AGS
    1006
    5
    1003
    SG
    1009
    6
    1004
    IT
    1012
    7
    1005
    AGS
    8
    1006
    SG
    9
    1007
    IT
    10
    1008
    AGS
    11
    1009
    SG
    12
    1010
    IT
    13
    1011
    AGS
    14
    1012
    SG
    15
    1013
    IT
    Sheet: Smith


    Excel 2013 32 bit
    E
    2
    =IFERROR(INDEX($A$2:$A$15,SMALL(IF($B$2:$B$15=$D$2,ROW($A$2:$A$15)-ROW($A$2)+1),ROWS($1:1))),"")
    Sheet: Smith

  7. #7
    Registered User
    Join Date
    01-02-2019
    Location
    New York
    MS-Off Ver
    365
    Posts
    5

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B

    Works Great Thanks

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    01-02-2019
    Location
    New York
    MS-Off Ver
    365
    Posts
    5

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B

    One more question before I mark this closed. In the provided formula how would i reference the sheet name for a criteria instead of $d$2?

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B

    Try this:

    =IFERROR(INDEX($A$2:$A$15,SMALL(IF($B$2:$B$15=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255),ROW($A$2:$A$15)-ROW($A$2)+1),ROWS($1:1))),"")

    Don't change the A1 reference.

  11. #11
    Registered User
    Join Date
    12-25-2018
    Location
    nyc
    MS-Off Ver
    2018
    Posts
    4

    Re: Generate a List of All Items iN Column A that Match a Criteria in Column B

    This can possibly work for me. Thanks.

+ 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] Formula to compare column 1 to column 2 and list items not in column 2.
    By mahalek1976 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-23-2016, 12:55 PM
  2. [SOLVED] Formula to extract list of items in column that also meet 2 criteria in the same row
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-11-2016, 07:00 PM
  3. Replies: 3
    Last Post: 02-07-2014, 03:01 AM
  4. Replies: 2
    Last Post: 03-01-2013, 02:01 AM
  5. [SOLVED] List unmatched items in 3rd column & sum matched items in 4th column
    By sharonvining in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2012, 03:24 PM
  6. Count items in column B if column c meets criteria
    By loki11 in forum Excel General
    Replies: 3
    Last Post: 01-17-2012, 09:20 AM
  7. Generate a list that match a criteria
    By ggremel in forum Excel General
    Replies: 2
    Last Post: 11-10-2010, 08:45 PM

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