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:
- Save Time in Excel with Autofill - Learn how to use the useful tool Autofill. Nicky explains how in the two minute video.
- How Microsoft Excel Can Increase Your Productivity - Billy talks about some of the reasons why Microsoft Excel is so indispensable to productive workplaces in this blog.
- How to Create a Pivot Table in Excel - Pivot tables are the perfect way to sort and analyse data in Excel. This two minute video takes you through the process of how to do so.
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
Lynda Marshall6 days ago
Really informative and easy to follow instructions.
Philip Abraham7 days ago
The exercises were really well designed and interesting. I learnt a lot, and am looking forward to part 2.
Hannah Wilson15 days ago
I really enjoyed the training.
Trusted Customer18 days ago
Clear and concise training
Esther Dibiaocha22 days ago
Very good and educative. Quite interactive with so much to learn in a day.
Trusted Customer22 days ago
Sometimes I felt it was going too fast. Otherwise excellent training. I would definitely recommend Happy
Claire22 days ago
Excellent course, good balance of participation - would highly recommend
Anna Whitton26 days ago
Well organised, effective training offer delivered in a good environment. We are already using the tools that we learnt
Ketsela Betru26 days ago
I took two online trainings : Stress Management for Managers and Resilience and Wellbeing at work by your organization. The trainings were lead by Mr Paul. In both cases,...
Trusted Customer26 days ago
We were told that we could ask questions after the training. I did ask a question, but I didn't hear back. Now that it's taking so long to reply, I fear that I am forgett...
Trusted Customer26 days ago
I was kept engaged through out and there was lots of opportunity to ask questions and practice what I was learning. I feel more confident now.
Cheryl Browne28 days ago
Everything from the welcome, the venue and the course delivery was of an excellent quality.