Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 109
Default Autofilter includes extra row

Just recently Autofilter has started including the last row of data in the
sheet, even though this row does NOT contain the filter criteria.

Anything I can do?

George Gee


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default Autofilter includes extra row

Do you have a hidden blank row or a very narrow blank row above the last
row?

Deal with that.


Gord Dibben MS Excel MVP

On Tue, 25 Aug 2009 19:16:09 +0100, "George Gee"
wrote:

Just recently Autofilter has started including the last row of data in the
sheet, even though this row does NOT contain the filter criteria.

Anything I can do?

George Gee


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default Autofilter includes extra row

Filter your data once more.

Now take a look at the row numbers.

You'll notice that the range that was filtered (and now visible) has blue row
numbers.

I'm guessing that that last row number is still grey. That means that excel
doesn't see it as part of the autofilter range.

You could remove the filter arrows and select the entire range and reapply the
filter to see if that works.

===
Just a warning. I had some code that created a new workbook that a filtered
sheet in it. Sometimes (always???), the lastrow wasn't included in the filter
range.

I ended up adding a new last row and filling it with bogus data. I applied the
data|filter|autofilter and then emptied that row with the bogus entries.

Sometimes, when the filtering worked perfectly, I'd get "blanks" as an option
when the real data didn't contain blanks in that field. But I learned to live
with that. (I think that was xl2k, too.)

George Gee wrote:

Just recently Autofilter has started including the last row of data in the
sheet, even though this row does NOT contain the filter criteria.

Anything I can do?

George Gee


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 109
Default Autofilter includes extra row

Hi Gord, no hidden or narrow rows in the sheet.
Hi Dave, all is as you say re row number colours.
I removed the autofilter arrows and re-selected the range with the same
result.

However, I've solved the problem.
I deleted the last row, inserted a new row in a purely random position,
copied the deleted row data from a copy of the workbook, and pasted it in
the
new row. I then sorted the sheet to my requirements, and all is working OK!

I don't pretend to understand what happened, but at least it's back to
normal.

Many thanks
George Gee

"Dave Peterson" wrote in message
...
Filter your data once more.

Now take a look at the row numbers.

You'll notice that the range that was filtered (and now visible) has blue
row
numbers.

I'm guessing that that last row number is still grey. That means that
excel
doesn't see it as part of the autofilter range.

You could remove the filter arrows and select the entire range and reapply
the
filter to see if that works.

===
Just a warning. I had some code that created a new workbook that a
filtered
sheet in it. Sometimes (always???), the lastrow wasn't included in the
filter
range.

I ended up adding a new last row and filling it with bogus data. I
applied the
data|filter|autofilter and then emptied that row with the bogus entries.

Sometimes, when the filtering worked perfectly, I'd get "blanks" as an
option
when the real data didn't contain blanks in that field. But I learned to
live
with that. (I think that was xl2k, too.)

George Gee wrote:

Just recently Autofilter has started including the last row of data in
the
sheet, even though this row does NOT contain the filter criteria.

Anything I can do?

George Gee


--

Dave Peterson



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default Autofilter includes extra row

Your workaround is as nutty as the one I used.

Here's hoping that it doesn't break for you.

George Gee wrote:

Hi Gord, no hidden or narrow rows in the sheet.
Hi Dave, all is as you say re row number colours.
I removed the autofilter arrows and re-selected the range with the same
result.

However, I've solved the problem.
I deleted the last row, inserted a new row in a purely random position,
copied the deleted row data from a copy of the workbook, and pasted it in
the
new row. I then sorted the sheet to my requirements, and all is working OK!

I don't pretend to understand what happened, but at least it's back to
normal.

Many thanks
George Gee

"Dave Peterson" wrote in message
...
Filter your data once more.

Now take a look at the row numbers.

You'll notice that the range that was filtered (and now visible) has blue
row
numbers.

I'm guessing that that last row number is still grey. That means that
excel
doesn't see it as part of the autofilter range.

You could remove the filter arrows and select the entire range and reapply
the
filter to see if that works.

===
Just a warning. I had some code that created a new workbook that a
filtered
sheet in it. Sometimes (always???), the lastrow wasn't included in the
filter
range.

I ended up adding a new last row and filling it with bogus data. I
applied the
data|filter|autofilter and then emptied that row with the bogus entries.

Sometimes, when the filtering worked perfectly, I'd get "blanks" as an
option
when the real data didn't contain blanks in that field. But I learned to
live
with that. (I think that was xl2k, too.)

George Gee wrote:

Just recently Autofilter has started including the last row of data in
the
sheet, even though this row does NOT contain the filter criteria.

Anything I can do?

George Gee


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2007 Autofilter worse than 2003 Autofilter jsky Excel Discussion (Misc queries) 9 October 31st 07 12:14 AM
What tab includes the most commonly-used features and commands Cecil M. Scott Excel Discussion (Misc queries) 1 September 24th 07 06:50 PM
Concatenate data that includes dates dave caizley Excel Worksheet Functions 5 September 18th 07 04:00 PM
Using a macro that includes 2 worksheets Richard Champlin Excel Discussion (Misc queries) 3 August 24th 07 10:51 PM
=max(range includes #N/As) David Excel Worksheet Functions 3 September 14th 05 05:00 PM


All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"