fbpx

Summarize only filtered values using SUBTOTAL & AGGREGATE formulas

Share

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

We all know the good old SUM() formula. It can sum up values in a range. But what if you want to sum up only filtered values in a range? SUM() doesn’t care if a value is filtered or not. It just sums up the numbers. But there are other formulas that can pay attention to the filters. Let’s learn about them.

summarize-filtered-values-demo

Summarize filtered values using SUBTOTAL & AGGREGATE Formulas – video

You may watch this video on our YouTube channel too.

Download Example Workbook

Please click here to download the example workbook. Examine the formulas and play with filters to learn more.

More about Filters, SUBTOTAL & AGGREGATE

Learn more about these features & how they can make you awesome:

Basics:

Advanced Stuff:

What do you use SUBTOTAL for?

Do you use SUBTOTAL and AGGREGATE functions? What do you use them for? Please share your thoughts in the comments section.

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Excel School made me great at work.
5/5

– Brenda

Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

Howto export youtube video comments to Excel file?

How to export YouTube video comments to Excel file? – Free template + Power Query case study

This week, I am running a contest on YouTube. One of the criteria for picking winners is that they must comment on my video. So far, I got more than 200 comments. To make my job easier, I want to export the video comments to an Excel file. Turns out this is easily done once you have a Google developer API key. In this article, let me explain the process for extracting Youtube video comments to Excel table.

4 Responses to “Summarize only filtered values using SUBTOTAL & AGGREGATE formulas”

  1. Heather says:

    Thanks Chandoo - once again you have inspired me to look at a different function for something I do regularly.

    I have used the Subtotal function for years, but had completely ignored Aggregate - and this showed me that I really need to look at this function more closely.

    I use Subtotal for filtering purposes, but also to provide subtotals of my numbers and know that they can be ignored when I use a Subtotal at the very bottom to sum the entire column.

  2. Kiev says:

    Thanks, Chandoo, I am very happy to know this new function - aggregate, it make such a compensate for the subtotal...great...

  3. MF says:

    I use SUBTOTAL(103,Ref) to determine whether a row is hidden or not.

    Here's an example:
    http://wmfexcel.com/2015/08/22/put-a-dynamic-hint-for-showing-or-hiding-rows-or-columns-hidden-by-data-group/

  4. prasha99 says:

    superb! its a great help.

Leave a Reply