+ Reply to Thread
Results 1 to 7 of 7

How to filter data using multiple Criteria using vba

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Post How to filter data using multiple Criteria using vba

    Hi
    i am filter data using multiple criteria with below codes
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    i want to apply all of above code at once to my filter

    thank you
    Last edited by HaroonSid; 01-09-2018 at 06:43 AM.
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to filter data using multiple Criteria using vba

    Hello HaroonSid,

    I would like to try a few possible options, but not by trying to recreate what I think your Workbook and Data might look like.

    Please attach a sample workbook. Make sure there is just enough data to demonstrate your need.

    Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Thank you.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How to filter data using multiple Criteria using vba

    Do you need all the criteria sets exactly as you have now, or is it possible to simply combine the arrays? In other words, could you have say "92" in column H and "LJT" in column J, which would not meet any of the three criteria sets above, but would match if you simply combine all the arrays.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to filter data using multiple Criteria using vba

    @ xlnitwit,

    Exactly my take on it as well. If we had a sample Workbook, we could test accordingly.

    Regards.

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: How to filter data using multiple Criteria using vba

    Sorry for late reply
    here is sample workbook and a screenshot with result as i need,
    i want to combine all three macro's result like screenshot
    A.JPG
    Attached Files Attached Files

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How to filter data using multiple Criteria using vba

    I think you will need an advanced filter for that rather than an autofilter. Is it OK to set that up in the file?

  7. #7
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: How to filter data using multiple Criteria using vba

    Yes i know but how to do with vba
    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] Using checkbox to filter multiple data, want to delete multiple data instead of filter dat
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2014, 11:52 AM
  2. Macro to filter multiple columns of data to multiple work sheets
    By LISSANN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2014, 07:24 PM
  3. Replies: 0
    Last Post: 02-02-2014, 08:42 AM
  4. Filter multiple columns based on multiple data validation fields
    By Jhunnieboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2014, 03:41 PM
  5. Macro to filter data and copy the data's from multiple columns based on the criteria
    By millatshawn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2014, 08:14 AM
  6. Filter Excel Data using vba multiple criteria multiple columns
    By pmyk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2013, 01:32 AM
  7. [SOLVED] Filter Data based upon multiple criteria and counting the data
    By Acidking in forum Excel General
    Replies: 5
    Last Post: 06-13-2013, 09:42 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