# How to Sum Filtered Cells in Excel: A Step-by-Step Guide for Beginners

Summing filtered cells in Excel is a great way to get specific totals from your data without altering your original dataset. By using Excel’s SUBTOTAL function, you can easily sum only the visible cells after applying a filter. This technique is extremely useful for analyzing large datasets where you need to focus on specific criteria.

## How to Sum Filtered Cells in Excel

In this section, we’ll guide you through summing filtered cells in Excel step by step. By following these instructions, you will be able to get accurate sums even after applying filters to your data.

### Step 1: Open Your Excel Workbook

Open the Excel workbook that contains the data you want to filter and sum.

Make sure all your data is in a structured format, with column headers and rows filled with data.

### Step 2: Apply a Filter to Your Data

Click on any cell within your data range, then go to the "Data" tab and click on "Filter."

This will add a drop-down filter to each column header, allowing you to filter data based on the criteria you choose.

### Step 3: Select the Column to Filter

Click on the drop-down arrow of the column you want to filter, then select the criteria you wish to apply.

This will display only the rows that meet your criteria while hiding the others.

### Step 4: Use the SUBTOTAL Function

Click on the cell where you want to display the sum of the filtered cells, and type the formula `=SUBTOTAL(9, [range])`.

Replace `[range]` with the actual range of cells you want to sum, such as `B2:B20`.

### Step 5: Press Enter

Press the Enter key to complete the formula and see the sum of the filtered cells in the selected cell.

Your visible data will now be summed accurately, reflecting only the filtered cells.

After completing these steps, your selected cell will now display the sum of the filtered cells. Any changes to the filter criteria will automatically update the sum, making it a dynamic and powerful tool for data analysis.

## Tips for Summing Filtered Cells in Excel

• Always use the SUBTOTAL function instead of the SUM function to ensure only visible cells are included in the sum.
• Double-check the range you specify in the SUBTOTAL function to avoid errors.
• Familiarize yourself with different SUBTOTAL function options, such as counting and averaging, to expand your data analysis capabilities.
• Remember that SUBTOTAL can handle hidden rows as well as filtered rows.
• Use named ranges to make your formulas easier to read and maintain.

### What is the difference between SUBTOTAL and SUM?

The SUBTOTAL function can ignore hidden and filtered cells, while the SUM function includes all cells in the specified range.

### Can I use SUBTOTAL for other calculations?

Yes, SUBTOTAL can perform various calculations like counting, averaging, and finding the maximum or minimum value.

### Will changing the filter update the subtotal?

Yes, the SUBTOTAL function is dynamic and will automatically update the sum when the filter criteria change.

### Can I sum filtered cells across multiple columns?

Yes, you can sum filtered cells across multiple columns by specifying the desired range in the SUBTOTAL function.

### Is there a shortcut for applying filters?

You can quickly apply filters by using the keyboard shortcut Ctrl + Shift + L.

## Summary

2. Apply a Filter to Your Data
3. Select the Column to Filter
4. Use the SUBTOTAL Function
5. Press Enter

## Conclusion

Summing filtered cells in Excel is an essential skill for anyone working with large datasets. By using the SUBTOTAL function, you can ensure that your sums accurately reflect the data you’re interested in, without including hidden or irrelevant cells. This not only makes your analysis more precise but also saves time and effort.

Whether youâ€™re managing financial records, tracking inventory, or analyzing survey results, knowing how to sum filtered cells can vastly improve your data handling capabilities. Take the time to familiarize yourself with filters and the SUBTOTAL function, and you’ll find that your Excel skills will become much sharper.

For further reading, consider exploring other Excel functions such as COUNTIF, AVERAGEIF, and VLOOKUP. These tools will further enhance your ability to manipulate and analyze data. Happy Excel-ing!