+ Reply to Thread
Results 1 to 6 of 6

VBA - Filtering via List from Column

  1. #1
    Registered User
    Join Date
    07-23-2018
    Location
    USA
    MS-Off Ver
    365 Desktop
    Posts
    3

    Question VBA - Filtering via List from Column

    Good Day,

    I've been by my computer with a VBA/Excel Workbook for the past three hours and cannot figure out why It is not filtering correctly.
    I have a list of Card Numbers that I want to filter out. If it's not on the list then move it to a different sheet. If it's on the list then I want to keep it on the sheet.

    It seems I am having trouble with the "Diesel" portion of the filtering process. Reefer seems to be working just fine.


    It will filter out most of the criteria but not all of it.

    Important:
    Card Numbers that I want to filter out are in Cells B2:B100
    A3:A are the card numbers from the report that need to be processed

    Here is what I have so far.
    Please Login or Register  to view this content.
    Last edited by GooberMcGee; 07-23-2018 at 11:53 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA - Filtering via List from Column

    Quote Originally Posted by GooberMcGee View Post

    It will filter out most of the criteria but not all of it.

    When I see a comment like that, the issue often has to do with both the code and the nature of your data. We probably can't help you without an example workbook with data that illustrates the problem.


    Attach a sample workbook (not a picture or pasted copy). 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.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-23-2018
    Location
    USA
    MS-Off Ver
    365 Desktop
    Posts
    3

    Re: VBA - Filtering via List from Column

    Heya, Thanks for the quick reply.

    Here are the three sheets.
    1. Filtering - This is what I open up first to start the macro which will ask for the unfiltered sheet
    2. Unfiltered - This is what I'm trying to work with, and filter out the card numbers that are not listed and move them to a different sheet in the workbook.
    3. Filtered - After moving them this is what I would like to accomplish.


    Thanks
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-23-2018
    Location
    USA
    MS-Off Ver
    365 Desktop
    Posts
    3

    Re: VBA - Filtering via List from Column

    Heya,
    I still need help with this;

    I am trying to use "Filtering Sheet" to select "Unfiltered" and go through Column A on each sheet of "Unfiltered" and if numbers match Column A on the "Filtering Sheet" then keep them there, if not move the row that has the unmatched number to a new sheet then make it nice and neat then save the workbook as a new workbook.

    Thanks
    Last edited by GooberMcGee; 07-31-2018 at 06:00 PM.

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA - Filtering via List from Column

    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA - Filtering via List from Column

    You're welcome.

+ 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. trouble filtering a list. Why isn't column filtering?
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  2. Replies: 1
    Last Post: 07-18-2005, 11:05 AM

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