# SUMIFS, COUNTIFS, AVERAGEIFS Filter & Analyzer Add-in

SUMIFS, COUNTIFS, AVERAGEIFS Filter & Analyzer Add-in

This add-in will help you filter and analyze results for long formulas using SumIfs, CountIfs, or AverageIfs functions, and it’s FREE!

### The Problem

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.

### The Solution

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.

### Quick Guide

1. Once the add-in is installed, the “IFs Filter” button will be added to the Add-ins tab of the ribbon.
2. Pressing this button opens the add-in window.
3. Select any cell that contains an *IFS formula and press the “Filter Formula in Selected Cell” button.
4. 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.