
- MS Excel Basics
- Excel - Home
- Excel - Getting Started
- Excel - Explore Window
- Excel - Backstage
- Excel - Entering Values
- Excel - Move Around
- Excel - Save Workbook
- Excel - Create Worksheet
- Excel - Copy Worksheet
- Excel - Hiding Worksheet
- Excel - Delete Worksheet
- Excel - Close Workbook
- Excel - Open Workbook
- Excel - Context Help
- Editing Worksheet
- Excel - Insert Data
- Excel - Select Data
- Excel - Delete Data
- Excel - Move Data
- Excel - Rows & Columns
- Excel - Copy & Paste
- Excel - Find & Replace
- Excel - Spell Check
- Excel - Zoom In-Out
- Excel - Special Symbols
- Excel - Insert Comments
- Excel - Add Text Box
- Excel - Undo Changes
- Formatting Cells
- Excel - Setting Cell Type
- Excel - Setting Fonts
- Excel - Text Decoration
- Excel - Rotate Cells
- Excel - Setting Colors
- Excel - Text Alignments
- Excel - Merge & Wrap
- Excel - Borders and Shades
- Excel - Apply Formatting
- Formatting Worksheets
- Excel - Sheet Options
- Excel - Adjust Margins
- Excel - Page Orientation
- Excel - Header and Footer
- Excel - Insert Page Breaks
- Excel - Set Background
- Excel - Freeze Panes
- Excel - Conditional Format
- Working with Formula
- Excel - Creating Formulas
- Excel - Copying Formulas
- Excel - Formula Reference
- Excel - Using Functions
- Excel - Builtin Functions
- Advanced Operations
- Excel - Data Filtering
- Excel - Data Sorting
- Excel - Using Ranges
- Excel - Data Validation
- Excel - Using Styles
- Excel - Using Themes
- Excel - Using Templates
- Excel - Using Macros
- Excel - Adding Graphics
- Excel - Cross Referencing
- Excel - Printing Worksheets
- Excel - Email Workbooks
- Excel- Translate Worksheet
- Excel - Workbook Security
- Excel - Data Tables
- Excel - Pivot Tables
- Excel - Simple Charts
- Excel - Pivot Charts
- Excel - Keyboard Shortcuts
- MS Excel Resources
- Excel - Quick Guide
- Excel - Useful Resources
- Excel - Discussion
How to Automatically Reapply Auto-Filter When the Data Changes in Excel?
In Excel, a filter is used to group data based on a command value in any column. We can apply a filter to a table using the slicer. When we change the data in the filtered column, we can see that it will not apply to filtering. We need to close the filter and reapply it to update the data. This might create confusion when we are frequently changing the data in the filtered data. This tutorial will help you understand how we can automatically reapply the auto filter when data changes in Excel.
Here we will first insert a table, then use the slicer to complete our task. Let's look at a simple process for automatically reapplying the auto filter when data changes. We can complete this process by using the VBA application.
Step 1
Consider an Excel sheet with data that is similar to the data shown in the image below.

Now we need to create a table, select the data, and then click on "Insert" and "Select table" to get the table as shown in the below image.

Step 2
Now to apply the filter, click on any cell of the table and click on insert, then click on slicer under filter, then select your criteria, then click OK to get the slicer.

Step 3
Now right-click on the sheet name and select View Code to open the VBA application, and enter the below programme in the textbox.
Example
Private Sub Worksheet_Change(ByVal Target As Range) 'Updated By Nirmal Sheets("Sheet1").AutoFilter.ApplyFilter End Sub
In the code, Sheet1 is the name of our sheet.

Step 4
Now save the sheet as a VBA-enabled template and close the VBA application using the command "Alt + Q". Then, every time we change the data in the filters, they will be updated automatically.

Conclusion
In this tutorial, we used a simple example to demonstrate how you can automatically reapply an autofilter when the data changes in Excel.
- Related Articles
- How to Automatically Run a Macro When a Cell Formula Result Changes in Excel?
- How to Auto-Number or Renumber after Filter in Excel?
- How to Automatically Enter Date When Data is Entered in a Column in Excel?
- How to Automatically Open Files When Starting Excel?
- How to Automatically Hide Specific Worksheets When Opening an Excel File?
- How to Automatically Protect All Worksheets When Closing an Excel Workbook?
- Excel Filter: How to Add, Use and Remove filter in Excel
- How to Automatically Insert Rows in Excel?
- How to Auto-Update a Chart after Entering New Data in Excel?
- How to Automatically Expand the Formula Bar in Excel?
- How to Automatically Generate the Invoice Numbers in Excel?
- How to Auto-Sort Date When Date is Entered or Changed in Excel?
- How to Auto-Select the Text of a Textbox When It is Selected in Excel?
- How to Automatically Fill Increment Cells in Excel?
- How to Automatically Colour the Alternating Rows/Columns in Excel?
