+ Reply to Thread
Results 1 to 7 of 7

Filter by criteria

  1. #1
    Registered User
    Join Date
    04-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    81

    Filter by criteria

    HI ,

    I have 2 workbooks "Item" and "Detail"

    The item tab has data i.e items in the 3rd row. for example
    055-02 055-06 055-03 055-12 055-96 055-72 055-25 055-30 055-06 055-09 .......

    The second workbook "detail" has top items in the 3rd row, for example
    055-72 055-30

    I want a VBA code to locate the exact column which contains "055-72" and apply filter in that column

    in this case 055-72 is in column "f"

    and then remove filter and locate the column containing 055-30 from the "Item" tab and apply filter..

    Here the "Item" tab could have that item in any column.

    Thank you so much in advance

  2. #2
    Registered User
    Join Date
    04-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Filter by criteria

    Basically I need to search for a prticular item in a row(range) and apply filter to that particular column where the item matches

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Filter by criteria

    Does this help?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Filter by criteria

    Yes this works but I need to copy the filtered data once this is done

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Filter by criteria

    Where do you want to copy it too?

  6. #6
    Registered User
    Join Date
    04-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Filter by criteria

    Hey John That worked ,I was able to copy the filtered range
    Now I want to add a vlookup formula from the active cell to the next 2000 cells and i tried the below code
    It doesnt work could y
    Range(ActiveCell, ActiveCell.Cells(2000, 1)).Value = WorksheetFunction.VLookup(ActiveCell.Offset(0, -1), Worksheets("RBU Report").Range("$A$1:$A$2000"), 1, False)

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Filter by criteria

    Maybe:

    Please Login or Register  to view this content.

+ 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. Need to filter multiple criteria in Label Filter
    By brassellc7994 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-04-2013, 12:54 PM
  2. Display filter criteria for 3 or more criteria per column
    By stuartcraig88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2012, 05:19 AM
  3. Filter top 10 as second criteria
    By TheOne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2011, 01:08 PM
  4. Filter criteria
    By rwgrietveld in forum Excel General
    Replies: 6
    Last Post: 12-15-2009, 04:35 PM
  5. [SOLVED] Filter Criteria
    By Yaasien in forum Excel General
    Replies: 3
    Last Post: 05-26-2005, 05:15 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