+ Reply to Thread
Results 1 to 5 of 5

Advanced filter help using Excel 2007

  1. #1
    Registered User
    Join Date
    08-22-2013
    Location
    Tulsa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Advanced filter help using Excel 2007

    Hi, I just started learning Excel this summer in preparation for starting college, and I am having trouble with some advanced filtering. My list range is in the Database sheet and named "database", my criteria range is $A$1:$E$4 in the "AdvFil2" sheet, and the results are extracted to $A$8:$E$8, which I named report2, also in "AdvFil2".

    What I am trying to do is this: The criteria is all residents of Tulsa with a tuition amount between $30,000 and $40,000 inclusive, or over $50,000, who are in either Business or Engineering and who have a percentage grade below 75%.
    The "report2" data should show Name, Type, Age, Percentage Grade, and Tuition Amount (but the filtered data is obviously wrong).

    I hope you'll be able to see the attachment to see proper column labels, but if not they are: City = C, tuition = TUITION, business or engineering = COL, percentage grade = PCT, name = NAME, type = TYPE, age = AGE.

    I would really appreciate any help on how to set up this advanced filter correctly. Also if you would please, take a look at the sheet AdvFil1 and tell me if there's a better way to write out that advanced filter, because when I put in the B on the second row all by itself, the results were incorrect.
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Advanced filter help using Excel 2007

    have you read here?
    http://www.contextures.com/xladvfilter01.html
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-22-2013
    Location
    Tulsa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Advanced filter help using Excel 2007

    Yes I looked at that website earlier today, but I'm still having trouble getting the correct results. I have only been using Excel for a few weeks now and I know I'm doing it wrong. On that website I did not see a criteria layout similar to mine.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Advanced filter help using Excel 2007

    The Advanced Filter to get the records for M, >=15 and <=30, GR =B and TUITCTGY = Undergrad could look like this:

    G AGE AGE GR TUITCTGY
    M >=15 <=30 B Undergrad

    To have both A and B for GR

    G AGE AGE GR TUITCTGY
    M >=15 <=30 B Undergrad
    M A

    The spacing gets all messed up. The A should be under the B in the GR column

    The logic of the Advanced Filter can get rather convoluted as you have no doubt seen in the many examples in the help and other files.

    In its simplest form, criteria in a single row are AND criteria and criteria in multiple rows are OR criteria. The AND criteria all must be true and any of the criteria in the OR criteria can be true to return records.

    Your own examples are correctly written on the AdvFil1. It is necessary to repeat the M and age criteria for the second row otherwise you will get a mix M and G and all ages for the specified grade.

    Only practice will sort out the logic until it becomes easy to use.

    I had trouble with your workbook for some strange reason. There appeared to be several hidden rows but no filters hiding them. I only got the rows back by creating a table out of the data and then re-creating a normal range out of the data....strange.
    Last edited by newdoverman; 08-22-2013 at 09:09 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    08-22-2013
    Location
    Tulsa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Advanced filter help using Excel 2007

    Thanks, I finally figured it out before I saw your post (I was making it a lot harder than I should have), but you were right about that nonetheless.

+ 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. Excel 2007 : Advanced filter issue
    By Nikeyg in forum Excel General
    Replies: 2
    Last Post: 04-06-2013, 05:53 AM
  2. Pivot Table - Advanced Filter or Countif in Excel 2007
    By Andjsmith in forum Excel General
    Replies: 1
    Last Post: 07-17-2012, 10:59 AM
  3. Excel 2010 Advanced Function Filter problems - 2007 issues
    By adamwestrop in forum Excel General
    Replies: 3
    Last Post: 07-29-2011, 01:52 PM
  4. Replies: 0
    Last Post: 02-28-2009, 04:11 AM
  5. [SOLVED] Excel 2007 Beta Advanced Filter Performance
    By RHoodnkt in forum Excel General
    Replies: 1
    Last Post: 08-12-2006, 06:00 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