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
  • Наука та технологія

КОМЕНТАРІ • 445

  • @PCor18
    @PCor18 3 місяці тому +4

    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!

  • @GSAcharya-uv8cc
    @GSAcharya-uv8cc 10 днів тому

    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.

  • @lorenzoladejobi8701
    @lorenzoladejobi8701 2 роки тому +3

    The expo on use of "FILTER and return non-contiguous columns" is a game changer for me ! Thank you Mynda

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz 4 місяці тому +2

    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

  • @indzara
    @indzara 2 роки тому +7

    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. 👍

  • @JeffreyWigington
    @JeffreyWigington Рік тому +3

    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!

  • @aviman2010
    @aviman2010 Рік тому +1

    Thanks Mynda. You've turned my world upside down (in a positive way) yet again. Love your teaching style

  • @josecarlosconejo5724
    @josecarlosconejo5724 2 роки тому +9

    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.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому +1

      Great to hear 😊

    • @marlonmadrona1309
      @marlonmadrona1309 2 роки тому

      @@MyOnlineTrainingHub Which version of Excel did you use on this video?

    • @rusektor
      @rusektor 4 місяці тому

      You can also use HSTACK instead of CHOOSE

  • @Ahmed-fq6si
    @Ahmed-fq6si 2 роки тому +15

    This is so useful and amazingly well explained as usual.
    Wish I could give 1000 likes to each of your videos.

  • @jcethan2859
    @jcethan2859 2 роки тому +2

    FILTER CHOOSE is my new favorite thing about O365, until the next thing inevitably takes its place. Great video! 👍

  • @brandonnesset1571
    @brandonnesset1571 27 днів тому

    You made my day today. You are always someone I can rely on to learn something new. Thank you Mynda!

  • @AnthonyEnglish
    @AnthonyEnglish Рік тому

    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.

  • @mathiasburkard2403
    @mathiasburkard2403 2 роки тому +1

    Thanks Mynda. Thats exactly what I was looking for. I love the way you teach Excel!

  • @jeremylau93
    @jeremylau93 2 роки тому

    The last part is amazing!! Filter and choose function work together. That’s cool~

  • @nikkicroxall6113
    @nikkicroxall6113 2 роки тому

    Genuinely spent the last two days straight trying to figure out how to rearrange the columns.... thank you!!!

  • @stevereed5776
    @stevereed5776 2 роки тому

    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

  • @mattschoular8844
    @mattschoular8844 2 роки тому

    That's was great. Thanks Mynda. I too like the Choose option for the non-contiguous results.

  • @IvanCortinas_ES
    @IvanCortinas_ES 2 роки тому

    Thanks Mynda. Excellent review of the FILTER function. Everything is very practical and used.

  • @peterharbman
    @peterharbman 2 роки тому

    Always fun and exciting new formulas/functions and presented in an easy to understand fashion... thank you!

  • @ismaelkourouma5558
    @ismaelkourouma5558 2 роки тому

    Wow ! Amazing 🤩 ! I often use Filter function but I didn’t know some tips and tricks shared here. Thanks Mynda 🙏

  • @robertoschenone9648
    @robertoschenone9648 2 роки тому

    The truck for filtering not contiguous columns Is really great! The best I have seen so far

  • @nadermounir8228
    @nadermounir8228 2 роки тому

    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

  • @arkai59
    @arkai59 2 роки тому +1

    Thank you so much for your amazing work as always, very comprehensive and understandable

  • @pupycron4302
    @pupycron4302 2 роки тому

    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!

  • @rajivghildiyal8265
    @rajivghildiyal8265 9 місяців тому

    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!

  • @brianwied3702
    @brianwied3702 Рік тому

    The last segment on discontiguous columns saved me a lot of time, excellent video!

  • @mickaell3451
    @mickaell3451 2 роки тому

    Hi Mynda! Thankx for the filter+choose combo. Will use it. Cheers

  • @zubairso
    @zubairso 2 роки тому +1

    This is truly amazing! Thanks for the detailed video, will definitely give it a try.

  • @ravichandrankannappan6552
    @ravichandrankannappan6552 2 роки тому

    Very good way of illustrating how 'Filter' function works. Thanks 'MyOnlineTrainingHub' for teaching me nicely the Filter function. Please keep it up!

  • @marksant5488
    @marksant5488 Рік тому

    You just helped me out big time with rearranging the columns! Thank you from Prague. :)

  • @stevenlagoe7808
    @stevenlagoe7808 2 роки тому

    Such a clear explanation. Even I got it first time! Thanks.

  • @alinaqvi6203
    @alinaqvi6203 2 місяці тому

    Thanks Mynda , learnt a lot about FILTR function, your videos are full of knowledge.

  • @karimsamnani3660
    @karimsamnani3660 2 роки тому

    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

  • @lww8132
    @lww8132 2 роки тому

    This solves my immediate problem at work! Thank you so much for sharing.

  • @fr-reisid5405
    @fr-reisid5405 4 місяці тому

    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.

  • @helenasvensson6595
    @helenasvensson6595 2 роки тому

    Wonderful tutorial! So well explained and helpful! Thanks!

  • @tomfontanella6585
    @tomfontanella6585 2 роки тому

    Very clear and useful video (as always!). Thank you!

  • @chrism9037
    @chrism9037 2 роки тому

    Awesome video Mynda!

  • @wayneedmondson1065
    @wayneedmondson1065 2 роки тому +2

    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!!

  • @davidferrick
    @davidferrick 2 роки тому +8

    good stuff, never thought of using the CHOOSE option for non-contiguous column returns.

    • @JoelShafron
      @JoelShafron 2 роки тому

      I use CHOOSE inside of UNIQUE to get a unique list from non-contiguous columns. Didn't think of using it here either.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому

      Cheers, Dayve!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому

      CHOOSE is such a versatile function. Underrated IMO 😊

    • @JoelShafron
      @JoelShafron 2 роки тому

      @@MyOnlineTrainingHub Do you have a training on CHOOSE?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому

      Please see here: www.myonlinetraininghub.com/excel-choose-function

  • @martyc5674
    @martyc5674 2 роки тому

    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.

  • @user-ns5cq7bb2c
    @user-ns5cq7bb2c 4 місяці тому

    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.

  • @FaysalEasyExcel
    @FaysalEasyExcel 2 роки тому

    Mynda Your simplification is awesome

  • @nonoobott8602
    @nonoobott8602 2 роки тому

    Wow. This is very useful and so explicit. Thanks so much for sharing

  • @vitruvian_man
    @vitruvian_man 2 роки тому

    Good stuff. Thanks Mynda!

  • @utubeAgape
    @utubeAgape 2 роки тому

    So EXCELLENT! Thank you for another useful video!

  • @henryhache5509
    @henryhache5509 Рік тому +1

    thank you! They removed my choosecols() function in an update, so i needed this!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Рік тому

      I'd update again, because CHOOSECOLS is still available. Sounds like you may have had your version rolled back somehow.

  • @darrylmorgan
    @darrylmorgan 2 роки тому

    Hi Mynda!Great Tutorial On The Awesome FILTER Function...Thank You :)

  • @bogdanp6092
    @bogdanp6092 2 роки тому

    Filter and Choose a powerful combination! Thanks!

  • @Fabi_terra
    @Fabi_terra 4 місяці тому

    Thank you, Mynda! Great tutorial I learned a lot. 🤗

  • @Luciano_mp
    @Luciano_mp 2 роки тому

    Great, i liked Filter. Thank you Mynda!

  • @vgb311
    @vgb311 7 місяців тому

    Great! Thank you for the video step by step.

  • @laStar972chuck
    @laStar972chuck 2 роки тому

    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)

  • @miiihaaas
    @miiihaaas 2 роки тому

    Thanks for CHOOS(E)ing to show us how to FILTER and return non-contiguous columns :)

  • @truewiking
    @truewiking 2 роки тому

    Great explained, solved my problem, Thank you very much

  • @SamPandiangan
    @SamPandiangan 2 роки тому

    This is another great tutorial, as usual.

  • @shoaibrehman9988
    @shoaibrehman9988 2 роки тому

    Super uses of filter function, thanks gr8 video.

  • @NiteLynr
    @NiteLynr 2 роки тому

    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.

  • @aivie1900
    @aivie1900 Рік тому

    omg. this is what I am looking for. thank you so much.

  • @xinliu7379
    @xinliu7379 2 роки тому

    So powerful ! Thank you!

  • @spilledgraphics
    @spilledgraphics 2 роки тому

    woah! great tip on minute 7:22 Mynda! 😁👌👌 thanks Mr. Excel !!! 🙏

  • @zainululum
    @zainululum 2 роки тому

    thanks for clear and shaep tutorial as always

  • @zaighamuddinfarooqui1705
    @zaighamuddinfarooqui1705 2 роки тому

    Excellent. Thanks for such a great lesson👍

  • @hamidsh4789
    @hamidsh4789 2 роки тому

    Thanks... keep on excellent tutorials...

  • @Giovanni-vx8xl
    @Giovanni-vx8xl 2 роки тому

    you are amazing and a super teacher and beautifully of course :) Thank you for sharing

  • @benign39
    @benign39 2 роки тому

    So useful and helpful. Thank you.

  • @marywise5943
    @marywise5943 2 роки тому +1

    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

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому

      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

    • @marywise5943
      @marywise5943 2 роки тому

      Perfect! Thank you!

  • @jiajiaphotography
    @jiajiaphotography 2 роки тому

    Wow, the last trick is really unexpected. Cool

  • @garyallan69
    @garyallan69 2 роки тому

    Love the Non - Contiguous columns. I’m now starting to use Choose for the first time in my life LOL

  • @redhaakhund1271
    @redhaakhund1271 Рік тому

    Amazing... Thank you soooo much!

  • @daliladuf
    @daliladuf 2 роки тому

    Amazing, as always!

  • @anv.4614
    @anv.4614 Рік тому

    Thank you, tutor. great lesson.

  • @ChristosLefkimiotis
    @ChristosLefkimiotis 4 місяці тому

    It cried for choose and offset with match (for the headers) makes it more variable, Nice video

  • @sachinrv1
    @sachinrv1 Рік тому

    Excel in Office 365 has much more to offer than one can imagine. Wonderfully explained :)

  • @sjn7220
    @sjn7220 2 роки тому

    Still used to Advanced Filter but may have to start using the filter function more.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому

      FILTER is way better than advanced filter because is evaluates when the source data changes, whereas advanced filter has to be run again.

  • @jobygeorgev06
    @jobygeorgev06 5 місяців тому

    Thanks for making our life more easier

  • @stephenmascarenhas1987
    @stephenmascarenhas1987 5 місяців тому

    Well presented with some intricacies in the formulae's

  • @_sootyfoot
    @_sootyfoot Рік тому

    I had no idea this was possible in excel, you've saved me about 30mins every Monday! 😂

  • @sukunair8918
    @sukunair8918 9 місяців тому

    Thanks, literally very useful

  • @pvrameshbabu
    @pvrameshbabu 4 місяці тому

    Thanks. It's a very useful function.

  • @amospan14
    @amospan14 7 місяців тому

    Very helpful Mynda, thank you very much! =)

  • @lopher70
    @lopher70 2 роки тому

    Holly cow!
    I tough I already knew all about filter, how wrong I’m
    Thanks!

  • @manissery1956
    @manissery1956 2 роки тому

    Really fantastic tips

  • @ademkursatkaracil
    @ademkursatkaracil 2 роки тому

    Another great video. Thank you Mynda. As far as I Know FILTER function available for Office 2021 also besides Office 365.

  • @garyevans7620
    @garyevans7620 4 місяці тому

    Excellent lesson, I learnt a lot, thank you. One small point. Parentheses are both brackets ( and ). So, a bracket is ( or ) and parentheses are () 🙂

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  4 місяці тому

      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 😁

  • @Lyriks_
    @Lyriks_ 2 роки тому +1

    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

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому +1

      Thanks so much, Anthony! Yes, the FILTER with CHOOSE enables non-contiguous columns to be returned in any order.

  • @gilbertosegoviano7701
    @gilbertosegoviano7701 2 роки тому

    You are amazing 😻 . Thanks 🙏

  • @Permik123
    @Permik123 Місяць тому

    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)

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Місяць тому

      Yes, love CHOOSECOLS and CHOOSEROWS. Unfortunately, when this video was recorded CHOOSECOLS wasn't out.

  • @Seftehandle
    @Seftehandle 8 місяців тому

    I am impressed great job

  • @TheTechPlorer
    @TheTechPlorer 2 роки тому

    Thank you very much, This made my day

  • @spoulis19
    @spoulis19 2 роки тому

    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?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому

      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.

  • @GeorgeAJululian
    @GeorgeAJululian 2 роки тому

    Many thanks helpful information

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому

      My pleasure, George!

    • @GeorgeAJululian
      @GeorgeAJululian Рік тому

      @@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"))

  • @GeertDelmulle
    @GeertDelmulle 2 роки тому

    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
      @MyOnlineTrainingHub  2 роки тому +2

      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})

    • @GeertDelmulle
      @GeertDelmulle 2 роки тому +1

      @@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.

  • @stevennye5075
    @stevennye5075 2 роки тому

    very useful!

  • @RamKumar-vb4et
    @RamKumar-vb4et 8 місяців тому

    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.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  8 місяців тому

      Thank you! You can use VSTACK to append the headings. See this video: ua-cam.com/video/RebdtDzsMj8/v-deo.html

  • @ImranlShaikh
    @ImranlShaikh 2 роки тому

    Well explained

  • @heishoi
    @heishoi 2 роки тому

    wow this is excellent

  • @vebe7109
    @vebe7109 4 місяці тому

    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?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  4 місяці тому

      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

  • @petecardona8203
    @petecardona8203 Рік тому

    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!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Рік тому +1

      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))

  • @davewilliams355
    @davewilliams355 2 роки тому

    Jesus you are clever, love your vids .