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
Stephen Kanengoni4 days ago
easy to understand took note of person difference in the group
Richard Nuthall4 days ago
Good content and very interactive. I will recommend it to colleagues. I am now starting to put tips into practice.
Gay Cooper7 days ago
Happy do really good training.
Luqman Thomas11 days ago
Happy offers practical, easy to use solutions.
Trusted Customer12 days ago
The trainer was excellent: incredibly knowledgeable, supportive and flexible. The course was carefully tailored to meet the needs of the individuals attending. I am alr...
John Fricker12 days ago
The team have handled the fall out of Covid excellently. I've had no trouble getting my cancelled session booked back in with the new online learning tools and both train...
Elma Valerio14 days ago
I learnt how to say no, how to identify patterns of behaviour and I learnt a really helpful strategy to address my concerns in an assertive way.
Trusted Customer21 days ago
The trainer was very patient and was teaching everyone at their own pace.
Dave Haggard21 days ago
Good level of training
Richard Collings24 days ago
It is a little while since I booked but as far as I can remember, everything worked well.
Trusted Customer25 days ago
All the relevant information about the course and the link to join the session was given out in good timing.
Trusted Customer25 days ago
i thought the training was really easy to follow, and i felt i got a lot out of it.