+ Reply to Thread
Results 1 to 7 of 7

Catch 22 on “Top 10” auto filter function

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Catch 22 on “Top 10” auto filter function

    I am trying to create a macro which will quickly auto filter and produce a “Bottom 10” list

    Problem is that my list has lots of zeroes which I want the filter to ignore.

    However if I change the zeros to blank the “Top 10” autofilter function doesn’t work (think it needs a number within each cell)

    Is there any way around this?

    Thanks in advance

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Catch 22 on “Top 10” auto filter function

    Top 10 filter will work with blank cells - may you post sample workbook?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    01-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Catch 22 on “Top 10” auto filter function

    Here is the sample worksheet

    As you can see i have a formula in the zero cells which the "bottom 10" function then picks up.

    However if i completely remove the forumla's out it does seem to work. However as the formula runs all the way down the column i would prefer to keep formula in and have the function working!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-06-2014
    Location
    Cape Cod, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Catch 22 on “Top 10” auto filter function

    ibenam - Change your formulas to look like this: =IF(ISERROR(D3/E3),"",(D3/E3)) It ignores the "" when filtering on Top 10 and Bottom 10.

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Catch 22 on “Top 10” auto filter function

    You may use formula:
    =IFERROR(D3/E3,FALSE)

    and use Conditional Formatting to hide FALSE values.

  6. #6
    Registered User
    Join Date
    01-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Catch 22 on “Top 10” auto filter function

    Quote Originally Posted by gotchuck View Post
    ibenam - Change your formulas to look like this: =IF(ISERROR(D3/E3),"",(D3/E3)) It ignores the "" when filtering on Top 10 and Bottom 10.
    Hi

    I have tried this previously and it makes the "Top 10" option in autofilter dissapear?

  7. #7
    Registered User
    Join Date
    01-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Catch 22 on “Top 10” auto filter function

    Quote Originally Posted by Izandol View Post
    You may use formula:
    =IFERROR(D3/E3,FALSE)

    and use Conditional Formatting to hide FALSE values.
    Perfect - worked!

    I never knew you could put False for text as whenever i used plain text without the "" I would always get the #NAME? error

    Thanks - Rep added.

+ 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: 2
    Last Post: 07-11-2012, 10:48 AM
  2. Function for Auto Filter
    By mcaballes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2007, 03:04 PM
  3. Range limit for auto filter function
    By Pierre in forum Excel General
    Replies: 3
    Last Post: 06-30-2006, 04:35 AM
  4. Auto Filter function
    By Wardy1 in forum Excel General
    Replies: 2
    Last Post: 03-30-2006, 08:20 AM
  5. [SOLVED] Excel Auto Filter Function
    By George in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2006, 05: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