+ Reply to Thread
Results 1 to 6 of 6

Filter Keeps Picking Up Last Line of Data

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    68

    Filter Keeps Picking Up Last Line of Data

    Do you know of any reason why an Excel Filter would keep picking up the last line of data when it's not part of the filter.

    I've checked for : blanks, subtotals, formulas, hidden columns.....and nothing....everything is good. The data that I am working with has been copied and then Paste Special - Values into another worksheet. The last line/row number is always grayed out, whereas everything in the active filter is blue. I am not sure what it is carrying over that would cause the filter to show that last row of data that doesn't belong to the active filter. If I put a dot/period in the next row after the last row of data, then that works. But I shouldn't have to do that.

    Any insight or wisdom is much appreciated!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter Keeps Picking Up Last Line of Data

    Is this an Advanced or an Autofilter?

    Please upload the workbook so that we can see the request in context.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-01-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    68

    Re: Filter Keeps Picking Up Last Line of Data

    For some reason, it will not let me add an attachment. I've tried using IE and Edge...but same result.

    This is an autofilter.

  4. #4
    Registered User
    Join Date
    08-01-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    68

    Re: Filter Keeps Picking Up Last Line of Data

    Let's see if the attachment comes thru now.
    Attached Files Attached Files

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filter Keeps Picking Up Last Line of Data

    Your AW column contains a SUBTOTAL formula. Change that to a SUM formula

    I think this is a bug when Subtotal is involved in a Filter - I seem to remember it being mentined before. A work around is either as you've found have a dummy value as the last data row, or if you reall need to use SUBTOTAL rather than SUM, wrapping the Subtotal in parentheses seems to fool it into working properly.
    i.e. =(SUBTOTAL(9,X953:AI953))

  6. #6
    Registered User
    Join Date
    08-01-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    68

    Re: Filter Keeps Picking Up Last Line of Data

    Thank you....that is so weird as I never use SUBTOTAL. I must have accidentally clicked on that. I obviously need more sleep or caffeine. Problem solved.

+ 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. [SOLVED] Picking the value in line by ascending order
    By kREM1993 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-23-2018, 02:25 PM
  2. Replies: 7
    Last Post: 01-18-2015, 06:16 PM
  3. Replies: 4
    Last Post: 11-27-2012, 06:49 AM
  4. [SOLVED] Line graph not picking up data from table correctly
    By Jerseynjphillypa in forum Excel General
    Replies: 1
    Last Post: 07-23-2012, 03:40 PM
  5. Picking Sheet(2) in this line of code
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2009, 07:54 AM
  6. Data Filter - Stops After Line 1399
    By HAPPYHILARY in forum Excel General
    Replies: 3
    Last Post: 11-25-2007, 02:14 PM
  7. [SOLVED] Autofilter always includes last line of data irrespective of filter
    By Peter in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-26-2006, 10:15 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