+ Reply to Thread
Results 1 to 3 of 3

Using Values from Column to Filter Another Column

  1. #1
    Registered User
    Join Date
    08-20-2014
    Location
    CLT
    MS-Off Ver
    2010
    Posts
    61

    Using Values from Column to Filter Another Column

    Good afternoon,

    I am ultimately looking to delete items in Columns A-C where Col. B does not equal one of the values in Col. F.

    I am thinking this may need to be done with a loop, but not sure how to go about achieving this. I have a variable that counts the number of rows in Col. F which I feel would need to be used.

    Any assistance is appreciated.

    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Using Values from Column to Filter Another Column

    equal one of the values in Col. F
    I suppose you mean any of the cells in col F not necessarily in the same row

    as you are messing with with data copy data (in sheet1) to sheet2 also to preserve the data

    the data in sheet 1 (and also in sheet 2) will be first like this

    hdng1 hdng2 hdng3 hdng4 hdng5 hdng6
    1 2 3 x x 2
    4 10 6 x x 3
    7 8 9 x x 4
    3 5 7 x x 5
    2 7 9 x x 6


    try the macro "test". macro "undo_macro" is to get back original data in sheet1


    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    I am not an expert. better solutions may be available
    [email protected]

  3. #3
    Registered User
    Join Date
    08-20-2014
    Location
    CLT
    MS-Off Ver
    2010
    Posts
    61

    Re: Using Values from Column to Filter Another Column

    Venkat,

    Thanks for the reply. Unfortunately I could not get that work and have created a For loop for this. It gets the value for each item in the Critiera list and filters based on it.

+ 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. Replies: 6
    Last Post: 10-16-2014, 08:42 AM
  2. [SOLVED] Filter rows based on unique values in one column + specific value in another column
    By Dieneces in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2013, 09:55 AM
  3. How to filter a column in a table based on a set of values in another column
    By redhawk87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 06:24 PM
  4. Macro to copy and paste special values for column data and filter column data
    By ascottbag in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-10-2012, 02:15 PM
  5. Replies: 3
    Last Post: 11-24-2008, 01:10 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