+ Reply to Thread
Results 1 to 8 of 8

Filter in Excel 2013

  1. #1
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Filter in Excel 2013

    Hi,

    In excel 2013 I applied a "filter" so that you can eliminate certain things & then saved the file..........over the weekend my spreadsheets sheet 1 updated but sheet 2 didnt. So, the filter didn't update/ hold its criteria, I had to go in and reapply filter.

    Is there a way for the filter to auto update?

    Sheet 1 has data, Sheet 2 is just linked to sheet 1 with a filter for 1 particular person
    when data is added to sheet 1, its doesn't auto update in sheet 2.

    Thx

    PS. Shg had suggested (view->custom view) but that isn't working
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: Filter in Excel 2013

    Hi,

    Quickest way to do so is create a short macro which triggers the reapply of the filter every time you activate the sheet.
    Check the attachement and see if this helps.
    Attached Files Attached Files

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Filter in Excel 2013

    If you put your criteria in a cell of its own - I used D2), then you can use this ARRAY formula to pull in what you want...
    =IFERROR(INDEX(Sheet1!D:D,SMALL(IF(Sheet1!$D$3:$D$86=Sheet2!$D$2,ROW(Sheet1!$A$3:$A$86)),ROWS($A$1:A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Change the bolded range to pull from other columns
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Re: Filter in Excel 2013

    Quote Originally Posted by joris moerings View Post
    Hi,

    Quickest way to do so is create a short macro which triggers the reapply of the filter every time you activate the sheet.
    Check the attachement and see if this helps.
    Thanks for the suggestion

  5. #5
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Re: Filter in Excel 2013

    Quote Originally Posted by FDibbins View Post
    If you put your criteria in a cell of its own - I used D2), then you can use this ARRAY formula to pull in what you want...
    =IFERROR(INDEX(Sheet1!D:D,SMALL(IF(Sheet1!$D$3:$D$86=Sheet2!$D$2,ROW(Sheet1!$A$3:$A$86)),ROWS($A$1:A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Change the bolded range to pull from other columns
    Thanks for the suggestion

  6. #6
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Re: Filter in Excel 2013

    Quote Originally Posted by joris moerings View Post
    Hi,

    Quickest way to do so is create a short macro which triggers the reapply of the filter every time you activate the sheet.
    Check the attachement and see if this helps.
    Can you show me or tell me how to create the macro?

  7. #7
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Re: Filter in Excel 2013

    Quote Originally Posted by joris moerings View Post
    Hi,

    Quickest way to do so is create a short macro which triggers the reapply of the filter every time you activate the sheet.
    Check the attachement and see if this helps.
    I guess I am trying to figure out how you created this macro and copy/edit for my needs. OR create a new one so that I use it going forward for the other spreadsheets

  8. #8
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: Filter in Excel 2013

    Hi,

    The macro isn't that complicated. It basically just reapply an already existing filter but by combining it with specific excel event (in this case the activation of the worksheet) it gives the macro it's strength. I placed the code on a sheet module which can be shown by right click on the Sheet2 Tab and choose "View Code".

    Please Login or Register  to view this content.
    If you want to know more about EVENTS and how to combine with VBA i recommend the pages regarding VBA and EVENTS by Chip Pearson These provide a lot of usefull insights.

    Hopes this helps.

+ 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. Create macro in Excel 2013 to filter out rows
    By Hedges in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2015, 05:51 AM
  2. Excel 2013 and Access 2013 as Pivot Table External Data Source
    By Grimnebulin in forum Access Tables & Databases
    Replies: 1
    Last Post: 05-27-2015, 02:13 PM
  3. Automatically reapply Filter (Excel 2013)
    By ChiPhil in forum Excel General
    Replies: 8
    Last Post: 03-03-2015, 06:40 AM
  4. Replies: 1
    Last Post: 12-27-2014, 11:20 PM
  5. No =Filter for Excel 2013
    By DawnAZ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-18-2014, 02:41 PM
  6. Help with Auto Filter in Excel 2013 - Autofilter method of Range class failed
    By yus786 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2014, 03:25 PM
  7. [SOLVED] Is there a Column Filter Drop down Keyboard Shortcut for Excel 2013?
    By bachfantasia in forum Excel General
    Replies: 3
    Last Post: 01-03-2014, 06:40 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