• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Pull records with same criterion in multiple columns

Bridgette

New Member
Hello,


I am trying to come up with a formula that will pull out all records from a separate spreadsheet that have certain terms in one and/or two particular columns. Ideally, the end result would be a separate spreadsheet including all records with whatever term in either column.


For example, here's a really, really simplified mockup of my spreadsheet (the actual sheet being several thousand entries long with 50+ columns of criteria):


(A).(B)Name.......(C)Role Title..........(D)Role Description....(E)Location, etc.


1 Robert..........Blue Manager...........Red....................#

2 David...........Red Associate..........Blue...................#

3 Madeline........Red Manager............Red....................#

4 Sophie..........Blue Consultant........Blue...................#

5 Jack............Purple Manager.........Purple.................#


So I would need to pull all the records including Red, for example, in either/both the title column or the description column (and only the title and description columns), and display these records on another sheet. Does this make sense? I'm happy to clarify.


I've tried combining methods for multiple search criteria to no avail.


I apologize if there is some really simple answer I'm not seeing--but any and all help or ideas would be so very very appreciated.


Thank you so much!
 
Bridgette


Firstly, Welcome to the Chandoo.org Forums


Have you looked at using Filters or Advanced Filters?


You may also want to read: http://chandoo.org/wp/2012/05/14/vba-move-data-from-one-sheet-to-multiple-sheets/
 
Hi, Bridgette!

Just a couple of questions:

a) despite of the 50+ columns of criteria, would you be always setting criteria for how many columns? and how many criteria for each column?

b) those criteria would be OR-ed (that's to say include a record/row if one criteria for one column is satisfied), AND-ed (all criteria for all specified column are satisfied), or mixed, and if so, how?

Regards!
 
It looks like we got permission to use advanced filters--thanks so much for the help! I really appreciate it; y'all are amazing.
 
Back
Top