Calculations on a Filtered List in Excel
Auto filter is a wonderful thing isn’t it? With a few clicks of the mouse little dropdowns appear letting you filter your data in a myriad different ways.
In this blog, learn how to create a dropdown filter in your Excel spreadsheets.
Hi, we are Happy
We are leading a movement to create happy, empowered and productive workplaces.
How can we help you and your people to find joy in at least 80% of your work?
But what if you want to find out the total or average of your filtered data? Unfortunately the SUM, AVERAGE, COUNT, COUNTA etc functions seem to let us down here.
Here’s my unfiltered data and the SUM function in action:
And here’s my filtered data:
Notice anything different? No? Exactly! We may want the SUM function to only sum the visible data but, as it was designed to do, it will sum ALL of the data, even the hidden rows.
So what’s the answer? The SUBTOTAL function!
The subtotal function can, if we ask it nicely, ignore any values hidden by the autofilter. It looks like this:
=SUBTOTAL(function_num,ref1,[ref2], . . . . ])
The function_num argument tells the subtotal function what sort of calculation you want it to do:
So here’s the same example as above using the subtotal function:
Why not sign up to our newsletter?
Sign up to our monthly newsletter, full of tips, tricks and news to help you to be happier and more productive at work.
Darren is one of Happy's Senior Trainers, able to train almost every IT course on our course programme. He worked for Happy for 12 years and has been an Associate Trainer since 2018.
Testimonials from happy Customers
Trey Leonard6 days ago
Solid training. very helpful
Andy Evans8 days ago
The course was really useful â€“ thank you :)
Reeta Dass9 days ago
I enjoyed the course it was fun and interactive.
Roger Dawson9 days ago
very clear, excellent use of Zoom, enabling and empowering by making the management stuff uncomplicated and doable
Trusted Customer9 days ago
Good, good pace, good interaction,
Sally Giles16 days ago
The course was tailored to suit everyone's learning needs which was very good. The trainer delivered the course in a very interactive way which suits how I like to learn.
Sally Giles16 days ago
The trainer was excellent and knew just how to pace the course to suit everyone's learning capabilities.
Sallie Gregson16 days ago
Robert Bennett20 days ago
The course was well presented and great introduction to the capabilities of Power BI.
AM20 days ago
Happy Learning were very accommodating to consider our prior commitments and made adjustments around it to fit in with our needs. The tutor Ebiji at Excel Level 4 course ...
Kate McAleer28 days ago
Smooth experience and good quality training
Tsvetalina Petrova29 days ago
I like the way that the raining was done. Even though it was online there was a lot of interaction from the participants not only the tutor.