+ Reply to Thread
Results 1 to 5 of 5

Autofilter question

  1. #1
    Registered User
    Join Date
    10-18-2008
    Location
    Earth
    Posts
    13

    Autofilter question

    Ok, I need to do what should be a fairly simple autofilter operation, but I'm having a bunch of truoble getting it to work. What I really want is to filter column 1 such that ( (x>=2000 And x<3000) Or x="*U*" ). I've read that excel can only take two criteria at a time to the autofilter command, so I've been trying to use an extra column to make it work, but I am still having some problems with the sorting. Heres what I am working on:
    Please Login or Register  to view this content.
    This does not run properly at all ("AutoFilter method of Range class failed" error)

    I am also pretty sure that sequence of autofilter operations will still not accomplish the logic I need. Any suggestions / help would be greatly appreciated.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Lets see the workbook, there should be no reason this can't be done in one autofilter step
    Look at the example provided at this thread, look at the code that performs the auto filter.
    http://www.excelforum.com/excel-work...hone-bill.html

  3. #3
    Registered User
    Join Date
    10-18-2008
    Location
    Earth
    Posts
    13
    well the problem with doing it in one step is that I have three conditions to check. The example you gave was great for finding values between x and y, but I need all values between x and y AND all values that contain a certain substring. As far as I know excel only allows two conditions to be checked in a single step.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by mroctogon View Post
    well the problem with doing it in one step is that I have three conditions to check. The example you gave was great for finding values between x and y, but I need all values between x and y AND all values that contain a certain substring. As far as I know excel only allows two conditions to be checked in a single step.
    Okay, then don't supply an example workbook.

  5. #5
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    Why dont u try "ADVANCE FILTER"

    U can supply more than 2 criteria...

+ 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