+ Reply to Thread
Results 1 to 6 of 6

Autofilter doesn't work properly?

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    3

    Autofilter doesn't work properly?

    Hello Everyone,

    I have a fairly large worksheet containing data in about 50 columns or let's say in 50 categories. There are 5 additional columns containing formulas referring to some of the 50 columns mentioned previously. These 55 columns are used as source data for other worksheets that contain charts & formulas. The data on the source worksheet is autofiltered to have a convenient view on certain criteria.
    I have to delete some parts (complete rows) of the source worksheet based on some criteria (hence the autofilter) regularly and paste new data instead of those.
    I pick the rows I want to get rid of by using the filters. When chosen, I select and delete (entire) rows. Then I de-filter data, deactivate autofilter and paste new data after the last row, following the exact order of the sheet.

    Here's the thing: after pasting the fresh data to the relevant 50 columns and copying the formulas in the additional 5 columns from above, autofilter won't filter the newly pasted data anymore. Those won't show up in the dropdowns of the filter, only previous contents are shown. It's important that the first newly pasted row is non-blank, contains data in all cells, the format of the cells are identical to the previous ones. Before pasting fresh data I even delete all additional rows and columns after the untouched source data. After having pasted the new stuff I refresh the whole chart. Still...

    Any ideas how I could include the new data in the filter?

    Thanks a lot!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Autofilter doesn't work properly?

    If you format the data as a table then you should be able to filter/delete as before and when you copy new data it'll be added to the table and will be included in the next filter.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Autofilter doesn't work properly?

    As Norie says, you can define your data as a Table and then newly added rows should be incorporated into the Table.


    If you don't want to convert the data to a Table, select cell A1 and press Ctrl-Shift-End to select all the rows of data BEFORE you re-activate the Autofilter.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    12-03-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Autofilter doesn't work properly?

    Thanks Norie, the table formatting did the trick! Yet it slowed down filtering considerably (30.000+ rows), even with formulas re-pasted as values only. So after having converted the range into a table and having pasted new data, I simply re-converted the table into a range which solved the speed issue and enabled to filter all rows as intended.

    Many thanks again.

  5. #5
    Registered User
    Join Date
    12-03-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Autofilter doesn't work properly?

    Thanks TMS.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Autofilter doesn't work properly?

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. VBA function doesn't work properly
    By sumonrezadu in forum Excel General
    Replies: 4
    Last Post: 08-28-2009, 09:38 AM
  2. Vlookup doesn't work properly
    By HuskerBronco in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2009, 12:49 PM
  3. Button doesn't work properly
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2009, 05:53 AM
  4. Interface doesn't work properly. Why ?
    By BorisMKD in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-02-2009, 10:27 AM
  5. Workbook_Open Doesn't Work Properly
    By Ferg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2005, 03:05 AM

Tags for this Thread

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