+ Reply to Thread
Results 1 to 7 of 7

Extract List Based on multiple criteria

  1. #1
    Registered User
    Join Date
    01-05-2017
    Location
    Harare
    MS-Off Ver
    2016
    Posts
    7

    Extract List Based on multiple criteria

    Good afternoon All,

    I am looking for help with a formula to extract a list from a database based on 2 criteria. My data is on the tab "Database", and list needs to be on*the "report sheet" sheet, where I have placed the 2 criteria. Please see attached spreadsheet.

    The formula needs to list all identifiers in the database for a particular person where column H in the database is not "Capex" on the report sheet.

    An example of this is found in this Chandoo post, but I struggled to make it work on my data: http://chandoo.org/wp/2014/11/10/for...eward-part-ii/

    I have attached the spreadsheet.
    *
    Many Thanks
    *
    Herbz
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,882

    Re: Extract List Based on multiple criteria

    Your main issue is that you have trailing space in Column A of Database. That's probably the reason you are not finding any match.

    Try cleaning up Column A or add a space to $A$2 in Report and see if it works.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract List Based on multiple criteria

    Hi and welcome to the forum

    See the attached. I've added range names for Data, Crit & DataOut. The macro is

    Please Login or Register  to view this content.
    click the blue button to run it
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    01-05-2017
    Location
    Harare
    MS-Off Ver
    2016
    Posts
    7

    Re: Extract List Based on multiple criteria

    Thanks for the reply Richard

    Would you be able to assist with a formula along the lines of what Chandoo had? This will work out a bit better for me as opposed to a code. I am not that good with code yet, and transplanting the example and using it across workbooks becomes a bit of a challenge.

    http://chandoo.org/wp/2014/11/10/for...eward-part-ii/

    Thanks

    H

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,913

    Re: Extract List Based on multiple criteria

    A6
    Please Login or Register  to view this content.
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Registered User
    Join Date
    01-05-2017
    Location
    Harare
    MS-Off Ver
    2016
    Posts
    7

    Re: Extract List Based on multiple criteria

    Thanks Siva,

    It works perfectly.

    May you please tweak it for me so that it brings back not just a list, but a UNIQUE list, ie if something appears twice in the database, it only appears once on the list.

    Many Thanks

  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 List Based on multiple criteria

    Quote Originally Posted by Herbiec09 View Post
    May you please tweak it for me so that it brings back not just a list, but a UNIQUE list, ie if something appears twice in the database, it only appears once on the list.
    Looks like you started another thread for the same thing...

    http://www.excelforum.com/showthread.php?t=1169616
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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 names in a list, and present in order, based on qty criteria.
    By TrondG in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-23-2016, 08:04 AM
  2. [SOLVED] Extract a sublist from a list based on criteria(s)
    By hcyeap in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-01-2015, 05:16 PM
  3. Extract based on multiple criteria
    By whatever61 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2015, 03:01 PM
  4. [SOLVED] Extract entire rows from list based on criteria
    By Test123Test in forum Excel General
    Replies: 5
    Last Post: 04-29-2013, 09:28 AM
  5. Extract a list of numbers under multiple criteria to another workbook
    By lks0912 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-15-2013, 08:03 AM
  6. [SOLVED] Extract unique values out of list based on an extra criteria
    By sven1975 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 05:02 AM
  7. Extract multiple records matching criteria from list
    By William DeLeo in forum Excel Formulas & Functions
    Replies: 56
    Last Post: 09-06-2005, 12: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