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!
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.
Thank you for showing the Choose function instead of an array of 1s and 0s which is what I've been using so far - and being able to rearrange columns plus the multiple column error handling! Brilliant!!
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!
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.
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. 👍
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.
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
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!
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 😁
It is so good tricks Mynda, thank you! I solved this Filter Rearrange Column Order sequence by using index&[Num_area] like below: =INDEX((C38:C42;D38:D42;E38:E42);;;MATCH($B$55:$D$55;$C$37:$E$37;0)) so we can find exact column values according to wanted list headers and using Filter as below: =FILTER(INDEX((C38:C42;D38:D42;E38:E42);;;MATCH($B$55:$D$55;$C$37:$E$37;0));B38:B42=C53) in that case, whenever you change header names like Price Item Quantity or Quantity Price Item into the header row of the target table, the Filter function shows correct values from the main database.
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!!
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)
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)
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.
@@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.
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.
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
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.
Hi. It is a very informative video. Thanks for sharing. I just noticed that the CHOOSE function is returning the details in a linear form, as the quantity was returned in the end. Not sure but may be it doesn't allow to shuffle the cell references. Also, it is little complex to remember. So, what if you want to return it in an order it was mentioned in the original table OR the way you want them to appear? Here, I am suggesting simple a combination of CHOOSECOL+FILTER function which I often use. For example; =CHOOSECOL(FILTER(TABLE1,(TABLE1[SALES]=$A$1)*(TABLE1[ITEM]=$B$1)), 1, 3, 2). Here, before closing the parentheses, you have to just select the column numbers in a sequence you want to show. Best part is, you can choose to display only one column or multiple columns as per your requirement. I use this trick to create multi dependent drop-down lists as well. I don't know if this function was available when this tutorial was published but I am using Office 365 now and it works there. Hope this helps😊.
Thanks for the very clear explanations ! I used the OR trick to add my initial table headers to the filtered result. Nevetheless it seems impossible that the filtered result becomes a table. Am I wrong ?
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
I have not used the FILTER function yet, however, I can see where it could be really useful. Great tutorial as always! PS "It's not case sensitive but I like to be proper" I do too, it's a pet hate of mine when people aren't and it's really annoying as it only takes a second!
I now use FILTER, UNIQUE, and SORT more than any other functions because they are so useful, especially when used together. (They can create an impromptu range acting as a PivotTable that auto-updates as new data are added to the source and is much easier to reference than the PT in subsequent formulas.)
Filter is of late my favourite function. I only wonder if it is possible to do individual calculations inside the spilled array, like a product of each individual value with a number outside of it.
Awesome to hear! I'm sure you can do what you want. If you get stuck, you're welcome to post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum
If you include the header in the filter range it probably wouldn't satisfy the criteria and if you want to sort the data, then the headers will be somewhere random in the resulting data.
Great video!! ✌Also nested filter works, (keeps original order though) =FILTER(FILTER(B11:F19,{0,1,0,1,0}),B11:B19=C53) or =FILTER(FILTER(B11:F19,{0,1,1,1,0}),B11:B19=C53) if order is not important, if it is, then choose
@@MyOnlineTrainingHub 🙏This one changes order, is longer , but no corresponded range needed to the order sequence that choose requires ✌ =FILTER(INDEX(B10:F19,SEQUENCE(ROWS(B10:F19)),{2,4,3}),B10:B19=C53)
The biggest advantage is that the FILTER function will automatically display changes in the source data, whereas the old Advanced Filter tool has to be manually re-run to get updates.
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.
Glad you liked it. Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum
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 😊
Thanks for that , the same pb in northern african countries
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! 🤩
Thanks Mynda. You've turned my world upside down (in a positive way) yet again. Love your teaching style
Awesome! Thank you!
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!
Genuinely spent the last two days straight trying to figure out how to rearrange the columns.... thank you!!!
So pleased I could help, Nikki!
Thank you for showing the Choose function instead of an array of 1s and 0s which is what I've been using so far - and being able to rearrange columns plus the multiple column error handling! Brilliant!!
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!
The truck for filtering not contiguous columns Is really great! The best I have seen so far
Wow, awesome to hear, Roberto!
FILTER CHOOSE is my new favorite thing about O365, until the next thing inevitably takes its place. Great video! 👍
Thanks so much! 😊
The last segment on discontiguous columns saved me a lot of time, excellent video!
Great to hear!
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
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 😊
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!
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!
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!
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.
You just helped me out big time with rearranging the columns! Thank you from Prague. :)
Great to hear, Mark!
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 😊🙏
This was just the tip I was looking for, thanks - I love your videos.
I'm so glad it was helpful! 🙏
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 😊
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!
The last part is amazing!! Filter and choose function work together. That’s cool~
Glad you liked it, Jeremy! 😊
Thanks Mynda , learnt a lot about FILTR function, your videos are full of knowledge.
Happy to hear that!
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 😊
I had no idea this was possible in excel, you've saved me about 30mins every Monday! 😂
Great to hear!
That's was great. Thanks Mynda. I too like the Choose option for the non-contiguous results.
Cheers, Matt!
Love the Non - Contiguous columns. I’m now starting to use Choose for the first time in my life LOL
Great to hear, Gary!
Thanks Mynda. Thats exactly what I was looking for. I love the way you teach Excel!
Awesome 😊
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!
The best video on filters. Congrats, and thankyou very much.
Glad you think so! 🙏
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
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 😊
Thanks for CHOOS(E)ing to show us how to FILTER and return non-contiguous columns :)
My pleasure 😊
Excel in Office 365 has much more to offer than one can imagine. Wonderfully explained :)
Glad you think so!
Hi Mynda! Thankx for the filter+choose combo. Will use it. Cheers
Great to hear 😊
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 😊
Wow, the last trick is really unexpected. Cool
Glad you liked it!
Thanks Mynda. Excellent review of the FILTER function. Everything is very practical and used.
Great to hear, Ivan 😊
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 😁
This solves my immediate problem at work! Thank you so much for sharing.
Great to hear!
It is so good tricks Mynda, thank you!
I solved this Filter Rearrange Column Order sequence by using index&[Num_area] like below:
=INDEX((C38:C42;D38:D42;E38:E42);;;MATCH($B$55:$D$55;$C$37:$E$37;0)) so we can find exact column values according to wanted list headers and using Filter as below:
=FILTER(INDEX((C38:C42;D38:D42;E38:E42);;;MATCH($B$55:$D$55;$C$37:$E$37;0));B38:B42=C53)
in that case, whenever you change header names like Price Item Quantity or Quantity Price Item into the header row of the target table, the Filter function shows correct values from the main database.
Thanks for sharing, Emre!
Such a clear explanation. Even I got it first time! Thanks.
Great to hear, Steven!
Filter and Choose a powerful combination! Thanks!
Glad you liked it 😊
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!
Mynda Your simplification is awesome
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.
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 😁
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.
Thanks for making our life more easier
It's my pleasure 😊🙏
Thank you, Mynda! Great tutorial I learned a lot. 🤗
I'm so glad!
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!
Great explained, solved my problem, Thank you very much
Glad I could help 😊
Great! Thank you for the video step by step.
Glad it was helpful!
Great, i liked Filter. Thank you Mynda!
Cheers, Luciano! 😊
@@MyOnlineTrainingHub For you too!
Awesome video Mynda!
Thanks so much, Chris 😊
Hi Mynda!Great Tutorial On The Awesome FILTER Function...Thank You :)
My pleasure, Darryl! Glad you liked it 😊
Always fun and exciting new formulas/functions and presented in an easy to understand fashion... thank you!
Glad you liked it 😊
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.
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!
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!
you are amazing and a super teacher and beautifully of course :) Thank you for sharing
Glad you liked it, Giovanni!
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.
So EXCELLENT! Thank you for another useful video!
My pleasure 😊
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 :-)
Hi. It is a very informative video. Thanks for sharing. I just noticed that the CHOOSE function is returning the details in a linear form, as the quantity was returned in the end. Not sure but may be it doesn't allow to shuffle the cell references. Also, it is little complex to remember. So, what if you want to return it in an order it was mentioned in the original table OR the way you want them to appear?
Here, I am suggesting simple a combination of CHOOSECOL+FILTER function which I often use. For example;
=CHOOSECOL(FILTER(TABLE1,(TABLE1[SALES]=$A$1)*(TABLE1[ITEM]=$B$1)), 1, 3, 2).
Here, before closing the parentheses, you have to just select the column numbers in a sequence you want to show. Best part is, you can choose to display only one column or multiple columns as per your requirement.
I use this trick to create multi dependent drop-down lists as well.
I don't know if this function was available when this tutorial was published but I am using Office 365 now and it works there. Hope this helps😊.
Thanks for sharing! CHOOSECOLS was not available when this video was originally recorded.
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.
omg. this is what I am looking for. thank you so much.
Wonderful to hear 😊
Thanks for the very clear explanations ! I used the OR trick to add my initial table headers to the filtered result. Nevetheless it seems impossible that the filtered result becomes a table. Am I wrong ?
Great to hear it was helpful! Correct, FILTER cannot be placed in an Excel Table. Dynamic arrays are not supported for Tables.
Thanks... keep on excellent tutorials...
Thanks, will do!
woah! great tip on minute 7:22 Mynda! 😁👌👌 thanks Mr. Excel !!! 🙏
Cheers! Glad you liked it 😊
Well presented with some intricacies in the formulae's
Thank you 😊
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.
Wow. This is very useful and so explicit. Thanks so much for sharing
My pleasure 😊
Good stuff. Thanks Mynda!
Thanks so much 😊
Thank you so much for your amazing work as always, very comprehensive and understandable
Thanks for your kind words 😊
Very clear and useful video (as always!). Thank you!
Cheers, Tom!
thanks for clear and shaep tutorial as always
You are welcome!
I have not used the FILTER function yet, however, I can see where it could be really useful. Great tutorial as always!
PS "It's not case sensitive but I like to be proper" I do too, it's a pet hate of mine when people aren't and it's really annoying as it only takes a second!
😊 Glad you enjoyed it, Parahi!
I now use FILTER, UNIQUE, and SORT more than any other functions because they are so useful, especially when used together. (They can create an impromptu range acting as a PivotTable that auto-updates as new data are added to the source and is much easier to reference than the PT in subsequent formulas.)
Thank you, tutor. great lesson.
Glad you liked it!
Holly cow!
I tough I already knew all about filter, how wrong I’m
Thanks!
So pleased you learnt something new, Ricardo!
Wonderful tutorial! So well explained and helpful! Thanks!
Thanks so much, Helena!
Super uses of filter function, thanks gr8 video.
Thanks, Shoaib!
Excellent. Thanks for such a great lesson👍
Glad you liked it 😊
Thanks for another great video. My question is can you do all this with Xlookup?
No, XLOOKUP doesn't return multiple columns and rows. XLOOKUP only spills one way, either across or down.
Thanks. It's a very useful function.
Glad it was helpful!
Filter is of late my favourite function.
I only wonder if it is possible to do individual calculations inside the spilled array, like a product of each individual value with a number outside of it.
Awesome to hear! I'm sure you can do what you want. If you get stuck, you're welcome to post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum
It looks awesome.Would you filter the result including header instead of manually typing for header.
If you include the header in the filter range it probably wouldn't satisfy the criteria and if you want to sort the data, then the headers will be somewhere random in the resulting data.
FILTER UNIQUE and SORT - learn it, love it, live it
Definitely, Doug :-)
This is truly amazing! Thanks for the detailed video, will definitely give it a try.
Great to hear 😊
So useful and helpful. Thank you.
Glad you’ll be able to make use of it, Jose!
Great video!! ✌Also nested filter works, (keeps original order though)
=FILTER(FILTER(B11:F19,{0,1,0,1,0}),B11:B19=C53) or
=FILTER(FILTER(B11:F19,{0,1,1,1,0}),B11:B19=C53) if order is not important, if it is, then choose
Yes, I like that one too, but like you say, unfortunately it can't rearrange the column order.
@@MyOnlineTrainingHub 🙏This one changes order, is longer , but no corresponded range needed to the order sequence that choose requires ✌
=FILTER(INDEX(B10:F19,SEQUENCE(ROWS(B10:F19)),{2,4,3}),B10:B19=C53)
It hurts to watch this video, seeing how incredibly useful this function is, knowing that I have to go back to Office 2016 at work.
Bummer, Sean!
This is another great tutorial, as usual.
Cheers, Sam!
What advantage does the FILTER function have over the older Advanced Filter, which I feel is quicker and just as accurate?
The biggest advantage is that the FILTER function will automatically display changes in the source data, whereas the old Advanced Filter tool has to be manually re-run to get updates.
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
Really good, what if I need to filter a specific column based on a list of data or a named range where it's value change from time to time ?
Glad you liked it. Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum
wow, great function, may i know how to set the filter can select more than one department?
Glad you like it! If you want OR operators in the FILTER criteria you use + between them e.g. =FILTER(range, (criteria1)+(criteria2))
Amazing... Thank you soooo much!
You're very welcome!
Very helpful Mynda, thank you very much! =)
Glad it was helpful! 😊🙏