+ Reply to Thread
Results 1 to 10 of 10

How to match data patterns across multiple columns

Hybrid View

  1. #1
    Registered User
    Join Date
    04-14-2009
    Location
    Amsterdam, the Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    5

    How to match data patterns across multiple columns

    I am using Excel 2007 and I need to search for data patterns that are spread across many columns. I am not sure how to search so that criteria is met across all the columns concurrently.

    For example

    I am interested in data that matches the following criteria ;

    Column B has the value 55
    Column C has the value 70
    Column D has the value 80

    Rows of interest are when all the criteria in columns B,C,D are met at the same time (e.g 55 in B, 70 in C and 80 in D).

    I hope this example makes clear what I am trying to achieve.

    Thanks in advance for your comments.
    Last edited by jonathanpc; 04-15-2009 at 11:16 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to match data patterns across multiple columns

    Creating a macro to search for these patterns is pretty simple, but then what? The search is only half of the issue. So, describe what is supposed to occur with these matches? Create a new list? Hide all the rows that don't match? Delete them? What?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-14-2009
    Location
    Amsterdam, the Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to match data patterns across multiple columns

    Quote Originally Posted by JBeaucaire View Post
    Creating a macro to search for these patterns is pretty simple, but then what? The search is only half of the issue. So, describe what is supposed to occur with these matches? Create a new list? Hide all the rows that don't match? Delete them? What?
    .

    Thanks for taking the time to reply to this.

    My situation is this.

    1. I have very large sheets 500k rows of data with 16 columns that are supplied to me by a third party (so I have no control of how the data arrives).

    2. I need to filter this data to match several criteria.
    3. Once this data is filtered then I would like to send this data to a new "filter results" sheet.
    4. Once in this "filter results" sheet I need to perform further manipulations on the data.

    One issue I have is that the values in fields are not always consistent when representing the same thing. Meaning that one sheet will have a value of "Man" and another sheet "Manchester" both refering to the same thing. So if possible it would good if i could find a way of handling this.

    I would welcome your comments.

    once again thanks a lot for your help.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to match data patterns across multiple columns

    use advanced filter see attached
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    04-14-2009
    Location
    Amsterdam, the Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to match data patterns across multiple columns

    Great ,thanks a lot for this.

    Could you tell me how i could take this one step further and filter perform the filter if i only know part of the filter string ?. For example if i want to filter the word "manchester" but the word in my original document is noted as "man" and "manchester"

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,011

    Re: How to match data patterns across multiple columns

    Text filter -> Begins with -> m, ma, man, manc,...
    Never use Merged Cells in Excel

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to match data patterns across multiple columns

    I would recommend you explore the filtering options suggested by the other responders.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to match data patterns across multiple columns

    you can use wild cards on data see here
    http://www.contextures.com/xladvfilter01.html
    also
    3. Once this data is filtered then I would like to send this data to a new "filter results" sheet.
    you canjust coppy the rows and pase
    or select copy to another location this would have to be on the same sheet tho' just chose somwhere not in the range of your data then copy it to a new sheet
    Last edited by martindwilson; 04-14-2009 at 07:15 PM.

  9. #9
    Registered User
    Join Date
    04-14-2009
    Location
    Amsterdam, the Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to match data patterns across multiple columns

    Quote Originally Posted by martindwilson View Post
    you can use wild cards on data see here
    http://www.contextures.com/xladvfilter01.html
    also
    3. Once this data is filtered then I would like to send this data to a new "filter results" sheet.
    you canjust coppy the rows and pase
    or select copy to another location this would have to be on the same sheet tho' just chose somwhere not in the range of your data then copy it to a new sheet

    Excellent , thanks a lot Martin.

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to match data patterns across multiple columns

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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