Share via

Filter Bug in Excel 2007

Anonymous
2013-01-14T16:18:35+00:00

I've discovered a bug in Excel 2007 that causes some odd behavior with table filters. It's a little hard for me to describe what's happening to you in words, so here's a link to an example file that exhibits this behavior:

https://skydrive.live.com/redir?resid=D9668D8C6D7BCB10!17317&authkey=!AEf7zekMsmZY6NI

Note that I was also able to reproduce this same bug in Microsoft's web-based version of Excel in SkyDrive. Here's the steps to reproduce the problem using the spreadsheet I linked to above:

  1. Open the Spreadsheet I linked to above using Excel 2007 or the web based version of Excel in SkyDrive.
  2. Click the drop-down menu in the "Filter Column" in cell B1.
  3. Remove "A" from the filter for this column and click OK. Rows with "A" in the filter column should disappear.
  4. Now add A back to the filter column and click "OK". All rows should re-appear.

--- Now here's where the bug occurs ---

  1. Open the drop-down menu for the Filter Column again. Note that "C" is missing from the list of options that can be filtered from the column.
  2. Uncheck "B" and click OK. Note that there are still rows that contain "B" visible in the table. The filter is no longer working correctly. You can continue to check and uncheck these filter options until the filter becomes almost unusable.
  3. Go to the data tab in Excel's ribbon interface and toggle the Filter option off and then back on again. (This step cannot be performed in the web-based version of Excel.) Note that the filters and columns have returned to normal.

I believe this bug is somehow caused by the presence of the "Visible?" column in the example spreadsheet. After removing that column I was unable to reproduce the problem. Note that cell C13 in my example illustrates a practical reason for having that column.

I'd appreciate it if Microsoft would fix this issue. Also, please let me know if you know of a way around this problem. (Perhaps there is an alternative way of checking if a row is visible that doesn't trigger this issue?)

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2013-01-16T01:32:35+00:00

    I note that the problem only occurs if the range is a "table".  If you convert the table back to a range, the problem no longer occurs.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2014-09-21T20:40:19+00:00

    I've encountered this issue and it can be a serious problem, especially if you're not aware it's happening.

    What I have started to do as a workaround is completely remove all filtering between queries. Do not just unfilter each column, but actually turn off the filter, then back on again. So far it seems to be working but I've only tested it a few times. It adds a few steps to each procedure but I can't afford to have inaccurate reports.

    Interested to hear how that works out for you.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-01-15T17:35:50+00:00

    Is that a question or a statement? ;) Yes, those were the only workarounds I was able to find. Why? Are they not working for you?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2013-01-15T13:33:00+00:00

    Those are the only workarounds which you were able to find in the link which you have given.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2013-01-14T17:59:45+00:00

    Looks like I'm not the only one who had this problem. This article has a detailed explanation of what's causing the problem and a few possible workarounds: http://blog.contextures.com/archives/2010/03/19/number-the-visible-rows-in-excel-autofilter/

    Was this answer helpful?

    0 comments No comments