How to Use the Excel Dynamic Array FILTER Function
What do you do if you want to Lookup multiple criteria that returns all match results, not just the first match? Then the new Excel Dynamic Array FILTER formula will come to the rescue. It will take you to the future!
This function is only available to Office 365 subscribers.
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?
The new FILTER formula is like the automatic version of Excel's advanced filter feature but even better.
Basically the Excel Filter function filters your data based on criteria you define. It then returns all the matching records based on other conditions.
Why should you use the Excel FILTER function?
- FILTER returns multiple match results for more than one LOOKUP value.
- Unlike advanced filter in Excel, the FILTER function allows you to filter without having to refresh your filter.
- FILTER can be nested in other functions such as putting filters inside the AND, COUNTA, OR, or SUM functions.
- It is super easy to write one: =FILTER(array, include, [if_empty])
FILTER is only available in the latest version of Excel, so you will need an Office 365 subscription to use it.
How does it work?
The FILTER function will return an array, which will spill if it's the final result of a formula. This means that Excel will dynamically create the appropriate sized array range when you press ENTER. If your dataset has the potential of returning an empty value, then use the 3rd argument ([If empty]). Otherwise, a #CALC! error will result.
FILTER Function Used to Return One Criteria
In the following example we used the formula =FILTER(A5:G21,D5:D21=L2,"") to return all records for Violin, as selected in cell L2, and if there are no Violins, return an empty string ("").
FILTER Function Used to Return Multiple Criteria
In this case, we're using the multiplication operator (*) to return all values in our array range (A5:G21) that have Violin AND are in the Retail channel: =FILTER(A5:G21,(D5:D21=L2)*(B5:B21=L1),"")
Want to learn more?
If you want to become an expert in Excel, creating complex formulas or doing more complex analysis, you'll definitely need to learn more about dynamic array functions. Join us on our Expert Excel Core Level 4 course to learn more online via Zoom on 20th February 2024.
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.
Improve your productivity in Excel with happy
Happy has high-quality, learner-focused Excel training courses for all skill levels, designed to improve your confidence and productivity and our online learning programme is just as interactive as our classroom sessions.
Here are our most popular options:
- If you are new to Excel, take a look at our Introduction to Excel course. Our next public dates are 7th January, held online, and in the classroom at Happy on 30th January.
- If you are comfortable with using Excel and creating formulas, take a look at our Excel for Intermediate Users course. Learn at Happy on 17th December, or on 16th January, held online.
- Wanting to analyse Excel data more effectively? We have an intensive full-day Excel for Advanced Users course. Our next online session is on 21st January, or join us in the classroom on 11th February.
- For expert users, we have an Expert Excel Core Level 4 course, covering advanced formulas and functions such as XLOOKUP and dynamic array functions. Join us in the classroom on 22nd January, or online on 4th February.
Our learners tell us that they save an average of 32 minutes a day with our Excel training courses. How much time could you save with us?
Why learn online with Happy?
- Interactive and engaging - just like our classroom sessions
- Bitesize or full-day sessions - fit around your schedule
- Learn from home - all you need is a quiet place to call from and an internet connection
- IT Helpline - 2 years of free support after your course
- No quibble money-back guarantee
Sal Agoro
Sal trains most MS Office packages. Her real love is in transferring knowledge by making her training sessions fun and more impactful. She is Happy’s Outlook Champion and ensures Outlook courses and training material are updated regularly with new features. Sal has been at Happy for over three years.