Excel FILTER Function + Trick to Rearrange Column Order
Вставка
- Опубліковано 4 лип 2024
- Excel’s FILTER function is incredible. It enables you to extract a subset of your data based on criteria you specify. You can think of it like a lookup that returns multiple matches. It can return a single column of data or multiple columns, and with a clever trick, which I’ll show you at the end, it can even return non-adjacent columns.
Download the Excel file here: www.myonlinetraininghub.com/e...
0:00 Introduction to FILTER
0:31 FILTER function Syntax
1:03 FILTER with one criteria
2:03 FILTER with multiple AND criteria
4:31 FILTER with multiple OR criteria
6:26 Handing errors
7:56 FILTER and return non-contiguous columns
View my comprehensive courses: www.myonlinetraininghub.com/
Connect with me on LinkedIn: / myndatreacy - Наука та технологія
Disclaimer: If any European people have trouble getting this to work use {1\2} instead of {1;2} if the semicolon is your default separator.
After I spent nearly an hour figuring out this wasn't working because differences in regional formatting I'm so grateful for this very, very elegant solution!
Thanks for sharing 😊
Wow, I was dying to filter only 3 column out of 15 columns, with table having hundreds of rows, and you have just given me the torch for my dark road. Thank you very much.
So pleased I could help!
The expo on use of "FILTER and return non-contiguous columns" is a game changer for me ! Thank you Mynda
Glad you liked it, Lorenzo! 😊
The way you used the CHOOSE function was brilliant. I would like to think I would have come up with this, but I don't know. Absolutely fantastic
Thank you very much! 🤩
Really liked the OR logic and the fact that everything >0 is treated the same. Nice design. Enabling multiple error values is another good tip. Thanks for sharing. 👍
Glad you liked it 😊
I did not know about the Choose function before! That is a really nice way to rearrange columns on the filter! I add seen another method using a double filter where the inner filter was on the whole table, but the second filter was a set of logicals [1,0,0,1] to "turn on" certain columns. It works well for removing unwanted columns, but doesn't let you rearrange columns. The choose function makes this so much cleaner. Thanks for your example!
Glad it was helpful!
Thanks Mynda. You've turned my world upside down (in a positive way) yet again. Love your teaching style
Awesome! Thank you!
Amazing!! I knew how to get only the columns that I wanted by wrapping the FILTER function with another FILTER and a set of 1s and 0s as criteria, but I had no idea about how to rearrange the column order. Very smart use of the CHOOSE function. I use FILTER a lot at work, but with your tutorial I will take it to a new dimension. Many thanks for sharing.
Great to hear 😊
@@MyOnlineTrainingHub Which version of Excel did you use on this video?
You can also use HSTACK instead of CHOOSE
This is so useful and amazingly well explained as usual.
Wish I could give 1000 likes to each of your videos.
Thanks so much, Ahmed 😊
FILTER CHOOSE is my new favorite thing about O365, until the next thing inevitably takes its place. Great video! 👍
Thanks so much! 😊
You made my day today. You are always someone I can rely on to learn something new. Thank you Mynda!
So pleased you find my videos helpful 😊🙏
Phenomal, clear explanation, taking us step by step. This filter function is great, and I love the bit at the end where you show non-adjacent columns.
Thanks so much, Anthony!
Thanks Mynda. Thats exactly what I was looking for. I love the way you teach Excel!
Awesome 😊
The last part is amazing!! Filter and choose function work together. That’s cool~
Glad you liked it, Jeremy! 😊
Genuinely spent the last two days straight trying to figure out how to rearrange the columns.... thank you!!!
So pleased I could help, Nikki!
Had to watch this twice to get my head around it, mainly because I've never used the CHOOSE function. This works great so will definitely be using it. Thanks for the video
Great to hear, Steve!
That's was great. Thanks Mynda. I too like the Choose option for the non-contiguous results.
Cheers, Matt!
Thanks Mynda. Excellent review of the FILTER function. Everything is very practical and used.
Great to hear, Ivan 😊
Always fun and exciting new formulas/functions and presented in an easy to understand fashion... thank you!
Glad you liked it 😊
Wow ! Amazing 🤩 ! I often use Filter function but I didn’t know some tips and tricks shared here. Thanks Mynda 🙏
Glad I could show you something new 😊
The truck for filtering not contiguous columns Is really great! The best I have seen so far
Wow, awesome to hear, Roberto!
Thank you Mynda for this great video and tip. Nice to use the choose function. Filter function saved me from using Index, small and row functions
Great to hear 😊
Thank you so much for your amazing work as always, very comprehensive and understandable
Thanks for your kind words 😊
Literally one day ago I was trying to figure out how to rearrange columns but couldn't. Excellent timing on this video ;) What an amazing method. Thank you so much!
So pleased to hear that 😊
Thank you Mynda, very clear and well presented. Hoping to make the time and watch more of your videos and work. God speed and God bless!
Awesome to hear!
The last segment on discontiguous columns saved me a lot of time, excellent video!
Great to hear!
Hi Mynda! Thankx for the filter+choose combo. Will use it. Cheers
Great to hear 😊
This is truly amazing! Thanks for the detailed video, will definitely give it a try.
Great to hear 😊
Very good way of illustrating how 'Filter' function works. Thanks 'MyOnlineTrainingHub' for teaching me nicely the Filter function. Please keep it up!
Glad it was helpful!
You just helped me out big time with rearranging the columns! Thank you from Prague. :)
Great to hear, Mark!
Such a clear explanation. Even I got it first time! Thanks.
Great to hear, Steven!
Thanks Mynda , learnt a lot about FILTR function, your videos are full of knowledge.
Happy to hear that!
Thanks, Mynda! This is a wonderful formula, and you have a very nice explanation for your viewers. We all viewer like it your tutorial. God Bless you
Thanks for your kind words, Karim!
This solves my immediate problem at work! Thank you so much for sharing.
Great to hear!
Love all of your content, extremely well explained.
Have used CHOOSE() concept with FILTER() function from day 1.
But to make things even more easier have used tables for source data and with INDIRECT() function refer to FILTER() function header row.
When only you change FILTER() header value to existing source table valid header value job is done.
INDIRECT() is volatile function but for not too big data sets works like a charm.
Interesting use of INDIRECT 🤔 thanks for sharing.
Wonderful tutorial! So well explained and helpful! Thanks!
Thanks so much, Helena!
Very clear and useful video (as always!). Thank you!
Cheers, Tom!
Awesome video Mynda!
Thanks so much, Chris 😊
Hi Mynda. Awesome examples! Love the {} trick for filling out the results table when no records are found and the CHOOSE trick to control the output format. Brilliant! Thanks for sharing :)) Thumbs up!!
Thanks so much, Wayne!
good stuff, never thought of using the CHOOSE option for non-contiguous column returns.
I use CHOOSE inside of UNIQUE to get a unique list from non-contiguous columns. Didn't think of using it here either.
Cheers, Dayve!
CHOOSE is such a versatile function. Underrated IMO 😊
@@MyOnlineTrainingHub Do you have a training on CHOOSE?
Please see here: www.myonlinetraininghub.com/excel-choose-function
Really good- I have been using filter and index to do the same, your method is cleaner if it’s just say 2-3 columns you want returned from a large data set. But index I think is cleaner if you want to Omit only a few columns from a large data set. Thanks a lot- this is great.
Cheers, Martin!
Thank you so much!!!! I have a project that I can try this on and I'm sure it will save me so much time. You're always a fantastic help.
Awesome to hear!
Mynda Your simplification is awesome
Thank you! 😃
Wow. This is very useful and so explicit. Thanks so much for sharing
My pleasure 😊
Good stuff. Thanks Mynda!
Thanks so much 😊
So EXCELLENT! Thank you for another useful video!
My pleasure 😊
thank you! They removed my choosecols() function in an update, so i needed this!
I'd update again, because CHOOSECOLS is still available. Sounds like you may have had your version rolled back somehow.
Hi Mynda!Great Tutorial On The Awesome FILTER Function...Thank You :)
My pleasure, Darryl! Glad you liked it 😊
Filter and Choose a powerful combination! Thanks!
Glad you liked it 😊
Thank you, Mynda! Great tutorial I learned a lot. 🤗
I'm so glad!
Great, i liked Filter. Thank you Mynda!
Cheers, Luciano! 😊
@@MyOnlineTrainingHub For you too!
Great! Thank you for the video step by step.
Glad it was helpful!
The use of the CHOOSE function in combination with the matrix notation is sheer genius ! (didn't even know one could put table in the CHOOSE "values" argument...definitely redeem the usefulness of this function in my mind now, lmao)
So pleased you liked it 😁
Thanks for CHOOS(E)ing to show us how to FILTER and return non-contiguous columns :)
My pleasure 😊
Great explained, solved my problem, Thank you very much
Glad I could help 😊
This is another great tutorial, as usual.
Cheers, Sam!
Super uses of filter function, thanks gr8 video.
Thanks, Shoaib!
I think it says something about me when you said 'I hope you're excited to give it a try" and I thought "Yes, yes I am". Also, half-way through was thinking about a list of people who'd find great uses for it to share this with. Excellently presented as always, missed this one when it was released because we hadn't made the switch to 365 at the time.
So pleased you can make use of it :-)
omg. this is what I am looking for. thank you so much.
Wonderful to hear 😊
So powerful ! Thank you!
My pleasure 😊
woah! great tip on minute 7:22 Mynda! 😁👌👌 thanks Mr. Excel !!! 🙏
Cheers! Glad you liked it 😊
thanks for clear and shaep tutorial as always
You are welcome!
Excellent. Thanks for such a great lesson👍
Glad you liked it 😊
Thanks... keep on excellent tutorials...
Thanks, will do!
you are amazing and a super teacher and beautifully of course :) Thank you for sharing
Glad you liked it, Giovanni!
So useful and helpful. Thank you.
Glad you’ll be able to make use of it, Jose!
This is great! I can think of several uses where I can apply this filter method. I would also love to see how you would select the columns based on a value example of something like
Yep, that's easy to do, Mary. Just reference the value column and apply the logical test in your criteria arguments of FILTER. If you get stuck you can post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum
Perfect! Thank you!
Wow, the last trick is really unexpected. Cool
Glad you liked it!
Love the Non - Contiguous columns. I’m now starting to use Choose for the first time in my life LOL
Great to hear, Gary!
Amazing... Thank you soooo much!
You're very welcome!
Amazing, as always!
Thanks, Dalila!
Thank you, tutor. great lesson.
Glad you liked it!
It cried for choose and offset with match (for the headers) makes it more variable, Nice video
Glad I could help 😊
Excel in Office 365 has much more to offer than one can imagine. Wonderfully explained :)
Glad you think so!
Still used to Advanced Filter but may have to start using the filter function more.
FILTER is way better than advanced filter because is evaluates when the source data changes, whereas advanced filter has to be run again.
Thanks for making our life more easier
It's my pleasure 😊🙏
Well presented with some intricacies in the formulae's
Thank you 😊
I had no idea this was possible in excel, you've saved me about 30mins every Monday! 😂
Great to hear!
Thanks, literally very useful
Awesome to hear! 🙏
Thanks. It's a very useful function.
Glad it was helpful!
Very helpful Mynda, thank you very much! =)
Glad it was helpful! 😊🙏
Holly cow!
I tough I already knew all about filter, how wrong I’m
Thanks!
So pleased you learnt something new, Ricardo!
Really fantastic tips
Thanks so much!
Another great video. Thank you Mynda. As far as I Know FILTER function available for Office 2021 also besides Office 365.
Yes, it should also be in the new Office release.
Excellent lesson, I learnt a lot, thank you. One small point. Parentheses are both brackets ( and ). So, a bracket is ( or ) and parentheses are () 🙂
In Australia and the UK (and probably elsewhere) this ( is a bracket and these () are brackets. My understanding is in the US this ( is a parenthesis and these ( ) are parentheses. Usually the term bracket/s are reserved for square brackets [ ]. But I’m not American, so feel free to correct me if you are 😁
Hello Mynda thanks for another amazing tutorial, is this new trick is an alternative to using filter + xlookup-Match, since we primarly used that trick because we wanted to handle non contiguous data ? I'm refering to your xlookup video. Big thumbs up
Thanks so much, Anthony! Yes, the FILTER with CHOOSE enables non-contiguous columns to be returned in any order.
You are amazing 😻 . Thanks 🙏
Thank you! 😃
Thank you for the great video MInda. We can use the new CHOSSECOLS function and make it even easier to Exctract Non-contiguous Columns. Like so '=FILTER(CHOOSECOLS(B11:F19;2;4;5);B11:B19=C53)
Yes, love CHOOSECOLS and CHOOSEROWS. Unfortunately, when this video was recorded CHOOSECOLS wasn't out.
I am impressed great job
Thanks so much 🙏
Thank you very much, This made my day
Great to hear 😊
Thanks for that great tutorial.
Have you a lesson that handles the situation of filter a list based on criteria on a range list. Or a name range?
Even better incorporate a filter function in a sumproduct in order to sum a table based on a criteria range? In one or more columns?
Hi Spiros, FILTER can't take more than one item in the logical test i.e. it can't do something like this:
=FILTER(B11:B19,B11:B19=J11:J12)
You would have to do this instead:
=FILTER(B11:B19,(B11:B19=J11)+(B11:B19=J12))
You can certainly wrap FILTER in aggregation functions like SUM. Why don't you have a play around with it and see what you discover.
Many thanks helpful information
My pleasure, George!
@@MyOnlineTrainingHub Please I need your help, the formula works sooo good but is it possible for the table header to show in the result of this formula
=FILTER(INDEX(A3:G25,SEQUENCE(ROWS(A3:G25)),{1,2,3,4,6,7}),(F3:F25>0)*(G3:G25="Credit"))
I vaguely remember there is another way to select columns, something with a string of ones and zeros, but this choose trick is far more elegant and allows for sequencing the columns exactly the way you want. Somehow this choose trick reminds me of the xlookup function.
Yes, you can use FILTER in FILTER like this to return the 1st, 2nd and 4th columns: =FILTER(FILTER(B11:F19,B11:B19="Sales"),{1,1,0,1,0})
@@MyOnlineTrainingHub Indeed, but that trick reminds me (as it did before) of the vlookup function: if the composition of the table changes, this trick will produce the wrong results or break down. That’s why I like the choose trick better: more robust.
very useful!
Glad you think so!
Great video once again. Thanks for sharing. A quick question - is there a way we can get columns headings as well depending on the columns chosen, whilst using filter formula? Thanks again.
Thank you! You can use VSTACK to append the headings. See this video: ua-cam.com/video/RebdtDzsMj8/v-deo.html
Well explained
Thanks, Imran 😊
wow this is excellent
Thank you very much!
Great examples! Very insightful and detailed! Thanks! Would like to how can apply the examples presented if the data is located in tree or more sheets( 1 mill per sheet)? I am using nested xlookup- hoing to find a fater way?
Thank you! I would use Power Query to consolidate the data in the 3 sheets and then do your lookup. Way more efficient. www.myonlinetraininghub.com/power-query-consolidate-excel-sheets
Hi Minda, an excellent explanation as usual!... have a question, how do I create a combined filter & large formula for, let's say returning two criteria like the "top 10" selling items for a particular "subcategory". I just want it to return, the top 5,10, etc selling items for that subcategory...I am aware I can do it in a Pivot table easily, but I'd like to think outside the box and learn it this way. Thank you again!
Hi Pete, great question! The Top 10 can't be handled as just another criteria. However, using my file as an example and if you have Microsoft 365, you can use the new CHOOSEROWS function to return the top 2 quantities for Support like so: =CHOOSEROWS(SORT(FILTER(B11:F19,B11:B19="Support"),3,-1),SEQUENCE(2))
Jesus you are clever, love your vids .
Great to hear 😊