This add-in will help you filter and analyze results for long formulas using SumIfs, CountIfs, or AverageIfs functions, and it's FREE!
The IFS functions are great for finding a result based on multiple criteria. But the formulas can quickly grow in size and become difficult to understand.
Have you ever seen a formula that looks like this and wondered what it was calculating?
It's very difficult to quickly analyze this formula and know what criteria are being summed in the ‘Sales Data' worksheet.
This formula is actually summing the Qty column in the following table based on five different criteria for Rep ID, Region, Product, Color, and Size.
This is easier to see if the formula is located on the same sheet as the source data (as shown above). Most of the time you will have the summary calculations on a separate sheet from the source data, meaning you will have to flip back and forth between tabs to analyze and troubleshoot your formula.
The Functions Argument window can help…
But often times I find myself manually filtering the source table for all the criteria so I can view the rows that are being summed. This can become a very time consuming task when troubleshooting long formulas.
To make this process faster I developed a simple add-in that automatically filters the source data based on the criteria in the SUMIFS, COUNTIFS, or AVERAGEIFS function.
How it Works
When the “Filter Formula in Selected Cell” button in the add-in window is pressed, the add-in will filter the source data for all the criteria in the formula. The Field Names and Criteria will also be listed in the listbox on the add-in window.
These are two great features that make it very fast and easy to see exactly what your formula is calculating. This add-in has saved me a tremendous amount of time, especially when working with someone else's model where I am not familiar with the formulas.
- Once the add-in is installed, the “IFs Filter” button will be added to the Add-ins tab of the ribbon.
- Pressing this button opens the add-in window.
- Select any cell that contains an *IFS formula and press the “Filter Formula in Selected Cell” button.
- The source data will automatically be filtered based on the formula's criteria, and the fields and criteria will be listed in the listbox on the form window.
Open Source Project
The VBA project is unlocked and the code is free for you to manipulate. It can definitely be enhanced further and I would like to hear your ideas and feature requests.
Please leave a comment at the bottom of the page with any questions or suggestions.
IFs Filter Add-in.zip (862.1 KB)
The zip file includes the add-in file and installation instructions. It is compatible with Excel 2007, 2010, and 2013. The SUMIFS, COUNTIFS, and AVERAGEIFS functions were introduced in Excel 2007, so there is no need for compatibility with a prior version.
Feature Request List
Here are a few features I would like to add, and maybe this will spark some ideas for more.
- Add a button to go back to the cell that contains the formula.
- Display the cell address of the formula on the form (add-in window).
- Add check boxes to the listbox so specific column filters can be cleared and reapplied.
Please leave a comment to vote for these features or request others.