+ Reply to Thread
Results 1 to 6 of 6

Advanced Filter Data And Pick Up Criteria From cells

  1. #1
    Registered User
    Join Date
    02-23-2013
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Advanced Filter Data And Pick Up Criteria From cells

    Hi guys
    I'm trying to run an advanced filter. My macro I recorded below is done by manually typing in "ipad" and "case" in the advanced filter section, to filter all results that CONTAIN those 2 words, however, there are other times I need to run the macro, and it filter out different words (again, that contains these 2 words), I would like those words to be from a cell I specify (eg L1 and M1).

    I've tried substituting "ipad" and "case" in the code to "L1" and "M1" in brackets, and speech marks, but nothing is working so far.

    please can someone help?


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Advanced Filter Data And Pick Up Criteria From cells

    hi dave_100, welcome to Excelforum,
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-23-2013
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Advanced Filter Data And Pick Up Criteria From cells

    Wow thank you! that is such a powerful tool. It works spot on. I would love to understand the logic behind it so I can understand how the code is written, is it even worth me asking, or do you just know the code from experience and trial and error?

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Advanced Filter Data And Pick Up Criteria From cells

    variable enclosed with & will be replaced with its value. Without & variable will be considered as a simple string

  5. #5
    Registered User
    Join Date
    02-23-2013
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Advanced Filter Data And Pick Up Criteria From cells

    on a similar note how would I make the below number filter only give results greater than whatever is in cell I1, rather than as it is, which is greater than 200?


    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Advanced Filter Data And Pick Up Criteria From cells

    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)

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