How to save custom filter criteria/view in Excel?
Let’s say you have filtered a range in a worksheet, and now you want to save the filter view, or apply the filter criteria/view to other ranges, how could you get it done in Excel? In this article, I will introduce several methods to save custom filter criteria/view and apply to other ranges in Excel.
- Save custom filter view with Custom View feature in Excel
- Save custom filter criteria/view with recording macro in Excel
- Save custom filter criteria/view with Kutools for Excel in Excel
After filtering a range in a worksheet, we can save the filter view as a custom view, and then restore the filter view easily in Excel.
Step 1: Filter the range in Excel whose filter view you will save later.
Step 2: Click the View > Custom Views. See below screen shot:
Step 3: In the opening Custom Views dialog box, click the Add button.
Step 4: In the Add View dialog box, type a name for this filter view in the Name box, and click the OK button.
Up to now the filter view has been saved. If the filter in the specified range is removed, you can restore it with clicking the View > Custom Views to open the Custom Views dialog box, selecting the custom view in Views box, and clicking the Show button.
Note: This method can only save the custom filter view and restore the filter view in the specified worksheet. We can’t apply the filter view to other ranges/worksheet/workbook.
Alternatively, recording a macro is a tricky way to save custom filter criteria in a specified range in Excel. On the other hand, the macro is able to apply the filter criteria/view to other worksheets easily.
Step 1: Before filtering the specified range, click the Developer > Record Macro. See below screen shot.
Note: By default, the Developer Tab is not shown in the Ribbon. Click to know how to show the Developer tab into Ribbon in Excel.
Step 2: In the opening Record Macro dialog box, type a name for the new macro in the Macro name box, it’s optional to specify a shortcut key for the macro, and click the OK button. See below screen shot:
Step 3: Filter the specified range in Excel.
Step 4: After completing filter, click the Developer > Stop Recording.
So far we have saved the filter criteria/view in Excel.
This macro can apply the filter criteria/view to other ranges which have the same data layout and position as original range. Regarding to the same position, for example, original range is Column A:G in Sheet1, the range you will apply the filter must be Column A:G too.
By the way, if the workbook with this macro is opening, you can also apply the macro with filter criteria to other opening workbooks too.
Step 5: To apply the macro with filter criteria to other ranges, click the Developer > Macros to open the Macro dialog box, next click to select the macro in the Macro list, and click the Run button. See below screen shots:
In this section, I will introduce Kutools for Excel’s Super Filter utility which can save filter criteria/view and apply to other ranges in Excel.
Step 1: Click Kutools Plus > Super Filter to open the Super Filter pane, and then filter original data range with the Super Filter utility. Click to know how to filter with Super Filter utility.
Step 2: In the Super Filter pane, click the Save As button in the Super Filter pane, then in the opening Kutools for Excel dialog box, type a name for the filter criteria setting in the blank box and click the OK button.
So far, the filter criteria has been saved. If you need to apply the filter criteria to other range/worksheet/workbook, please go ahead:
(1) In the Super Filter pane, click the arrow besides the first button, and then select a filter criteria from the drop down list.
Note: If the saved filter scenario is not listing in the drop down list, please click the Open saved filter settings scenario, and in the opening dialog box select the specified filter scenario and click OK button.
(2) Click the Select Range button , and then select the range that you will apply this filter criteria to.
(3) Click the Filter button.
Note: By the way, the selected range should have the same data layout and position as original range that you set the filter criteria to.