Results 1 to 5 of 5

Thread: Extract data using Advanced Filter

  1. #1
    Senior Member
    Join Date
    Oct 2011
    Posts
    135
    Rep Power
    13

    Extract data using Advanced Filter

    Hi,

    I'm doing a search on 65000 rows and I wonder if there are alternatives CriteriaRange to the code posted.

    Code:
    Sub Test()
        Range("A2:C31").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range( _
            "A34:C44"), CopyToRange:=Range("A47:C47"), Unique:=False
    End Sub
    Here is an example of the criteria with the data to search
    Attachment 170

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi,

    I don't see anything wrong on this method. Since the data set is huge,a better option would be export data into Access and fetch data using SQL query.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #3
    Senior Member
    Join Date
    Oct 2011
    Posts
    135
    Rep Power
    13
    Hi,
    (I was hoping you could fit the search criteria to improve the number equal to the number if ...)

    One question, I can use Access with Excel 2003.
    If you install Excel 2007 - 2010 on new PCs will be helpful to link to Access?
    What conditions, I have to install Access

  4. #4
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    If the data set is huge, I would recommend Access rather than Excel.

    See this link for some info regarding import data from Access via ADO.

    Erlandsen Data Consulting
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  5. #5
    Senior Member
    Join Date
    Oct 2011
    Posts
    135
    Rep Power
    13
    Hi,

    Finding inspiration in the network are able to find how to use the filter method:
    Code:
    =B2=C2
    To avoid unnecessary sequence to search for the same values
    following examples link
    Excel Advanced Filter Introduction

Similar Threads

  1. Replies: 6
    Last Post: 05-20-2013, 10:06 PM
  2. Replies: 2
    Last Post: 04-14-2013, 09:15 PM
  3. Auto filter and sum up data
    By Ryan_Bernal in forum Excel Help
    Replies: 6
    Last Post: 01-02-2013, 06:42 PM
  4. Extract data with 2 criteria
    By marreco in forum Excel Help
    Replies: 29
    Last Post: 12-26-2012, 12:44 AM
  5. VBA Code to Extract data
    By Howardc in forum Excel Help
    Replies: 1
    Last Post: 07-24-2012, 11:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •