How To Use Excel FILTER Function With Multiple Criteria & Return Only the Columns You Need

Поділитися
Вставка
  • Опубліковано 4 чер 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    Enhance your Excel skills with our in-depth tutorial on using the FILTER function with multiple criteria. This video will guide you through complex data analysis techniques, including sorting data by different parameters and extracting specific columns. Learn how to make your Excel workbooks more dynamic and responsive!
    ⬇️ Download the file I used in the video from here: pages.xelplus.com/filter-file...
    In This Tutorial:
    ▪️ FILTER Function Basics: Understand how to apply the FILTER function with multiple criteria.
    ▪️ AND & OR Conditions: Learn to filter data using both AND and OR logic.
    ▪️ Sorting and Selecting Columns: Discover methods to sort data and choose specific columns for display.
    ▪️ Practical Examples: Apply these techniques to real-world scenarios, enhancing your data analysis skills.
    How can you use the Excel FILTER function with two criteria in different columns? I made a short video about this some time ago: • How to FILTER with Mul... - The video today gives you a more detailed explanation as well as more examples on how to use the FILTER function to tackle different data challenges.
    The FILTER function in Microsoft Excel allows you to filter a range of data based on criteria. This criteria applies to a single column. But what if you need to use the Excel Filter function and apply a condition that applies to multiple columns? You might need to include two or more columns. You might need to account for AND conditions - i.e. the criteria applies to each column, or you might need an OR condition: the criteria applies to either column. There is a trick you can use with the FILTER function that helps you account for multiple columns easily. Once you learn how Excel calculates the FILTER function in the background, you'll learn how to account for any condition, value or criteria you need. Learning this will make you an Advanced Filter functions specialist :).
    I'll also show you the new way of using the FILTER function and returning only the columns you need: Combine FILTER with the CHOOSECOLS function to return only the columns you need.
    00:00 Using Multiple Criteria within the Excel FILTER Function
    00:41 Multiple Criteria With AND
    04:58 Multiple Criteria With OR
    05:51 FILTER function to return specific columns with CHOOSECOLS
    07:09 FILTER Multiple Criteria In The Same Column
    09:19 Wrap Up
    🎬 LINKS to related videos:
    Excel Lookup to Return Multiple Values with FILTER Function: • Excel FILTER Function ...
    ➡️ Join this channel to get access to perks: / @leilagharani
    👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
    🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
    🎥 RESOURCES I recommend: www.xelplus.com/resources/
    🚩Let’s connect on social:
    Instagram: / lgharani
    LinkedIn: / xelplus
    This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    #Excel

КОМЕНТАРІ • 591

  • @LeilaGharani
    @LeilaGharani  Рік тому +38

    Hope you found this useful. Why don't AND, OR functions work? I cover more details on pairwise lifting, broadcasting and functions that return scalar values in my course here: www.xelplus.com/course/new-excel-functions-course/ - this will explain why this method works and others may not.
    Grab the file I used in the video from here: pages.xelplus.com/filter-file-download

    • @nirmalyaprasadapatraaasia3754
      @nirmalyaprasadapatraaasia3754 11 місяців тому +1

      Hi,
      It's really a good learning!
      Just need one query resolution, Can we use both include & exclude(Not(is number(value))) criteria.
      Eagerly Waiting for your response on my query.

    • @jeffrowlanduk
      @jeffrowlanduk 11 місяців тому +1

      THANK YOU! After spending AGES trying to use the built in filters to do what I wanted, my brain finally kicked into gear and thought "didn't Leila do a video on this?". If I had only thought of you first, I would have saved loads of time. Boomer alert -getting old sucks.

    • @G-Man01
      @G-Man01 9 місяців тому

      Hi Leila,
      I need some help! I have searched through your videos but cannot find the solution for where there are unique values in each column. ie. Each column contains data for a specific month vertically. The vertical data local to that month contains business names and customer names. I want a function to only limit the results displayed to the chosen month. ie. return specific columns (not rows). Every video I've seen on the filter function as well as index/match functions thus far have only been solutions where each column is a singular type of identifier and the results work for rows. Does a solution exist that can produce columns as a result?

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

      As I understand what you're writing, Row 1 is a Header. Column A is January, Column B is February. etc. ect. Rows 2:nn is data. You want to only display a particular month's data (presumably on another worksheet. Won't choosecols work?.@@G-Man01

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

      ​​@@G-Man01You could combine the Transpose function perhaps in your formula. So before applying the filter, transpose the data, so that the column entries become row entries, and then the Filter function should work as per your requirement.

  • @iREZARECTEM
    @iREZARECTEM Рік тому +18

    Your videos have freed upto six hours of work time for me on a daily basis. So now I pretend to be working on those completed tasks during my new found down time. Many thanks for adding hours to my day!

  • @gynoval
    @gynoval 11 місяців тому +2

    I love how detailed you always are showing different scenarios of data extraction on 1 function. Thank you Leila!

  • @Donkeys_Dad_Adam
    @Donkeys_Dad_Adam Рік тому +2

    I built a dashboard using all of this in the past week. Choose columns is a nice add! Thanks for all you do.

  • @wannabedal-adx458
    @wannabedal-adx458 Рік тому +1

    This is a better way to handle AND or OR functions. I had so many problems in the past with those 2 commands that this seems much easier. Thanks for pointing this out Leila!

  • @unknowngamer5743
    @unknowngamer5743 5 днів тому

    Loads of thanks for this very very valuable insight on the filter function, I was struggling so hard to get the multiple selections work and you just made me understand how filter works. Thanks thanks thanks.......

  • @GaragePrimo
    @GaragePrimo Рік тому +2

    I'm doing some other tutorials where they don't teach by making mistakes. I love how you're teaching by making mistakes! It helps align our thinking and understanding with yours.

  • @samanthadaroga4811
    @samanthadaroga4811 Рік тому +25

    Quite a helpful video. The way you construct your videos with explanatory graphics, clear slow audio, overall managed pace & a moderate video length makes for swift learning of MS Excel. Thank you kindly.

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

    Love this tutorial. FILTER is an amazing function to use. Thank you Leila 🙏🏾

  • @MrMorichalion
    @MrMorichalion Рік тому +16

    This was a neat, clean, and entirely useful tutorial on a common thing one does in SQL.
    You've saved me time with this. Thank you.

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

    I have watched so many videos on building filters, but this is crystal clear, thank you. I finally get it!

  • @djwebmasster
    @djwebmasster 10 місяців тому

    This is sooo helpful... I use the formulas to NO END!! you explain each step so well. TY TY!! I love these instructional videos!

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

    Thanks a ton.
    I never used Filter and Index formula before, but thanks to your tutorial, I am now able to use both to create a Income Statement where for any drop down product, the whole statement changes.

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

    I found it really informative and it's great to know there's a more efficient way to filter data. I especially appreciated the clear examples you provided. Keep up the good work!

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

    Hello Leila!
    I've tested with three AND criteria and worked!
    Same syntax shown. Just added a third.
    Thanks again!

  • @pc-doctor1416
    @pc-doctor1416 Рік тому

    Wow, your logical reasoning is amazing. How you retain all this in your head astounds me.

  • @user-cz8yx7lq1e
    @user-cz8yx7lq1e 2 місяці тому +2

    Your teaching is incomparable. Thank you very much!

    • @user-cz8yx7lq1e
      @user-cz8yx7lq1e 2 місяці тому +1

      You blow my mind and make smile along the video. 😆

  • @vishal_shanbhag
    @vishal_shanbhag 10 місяців тому +1

    I don't think I've ever seen anyone teach this good.

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

    This is by far the best excel video ever. Brilliant fucntion and super explained. You can also reorder your coloms in a different order when you as you do as in the example 2;4, you can also 2;4;3 the the coloms will be displayed in that order in the filter function.

  • @BigSunshine55
    @BigSunshine55 10 місяців тому +2

    Wonderful, concise, and detailed. Exactly what I needed. Thank you! God bless!

  • @saibharadwajbadda4539
    @saibharadwajbadda4539 Рік тому +8

    I used your Excel videos to give training in my office and it was grand success. Thanks a ton!!❤
    Except this particular use case covered in this video...! I also covered a similar case.

    • @LeilaGharani
      @LeilaGharani  Рік тому +2

      Happy to hear the content is helpful at your work!

  • @michaelgilbert7235
    @michaelgilbert7235 10 місяців тому

    This is a very clear guidance on very useful Excel functionality. Explaining logical operators is not easy but Leila presents it very well. Thanks.

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

    Thank you so much for that Leila. I have been using a double filter function for ages to get only the columns that I want. Very tedious when there are a lot of columns to put all those 0's and 1's. I will be using Choosecolumns from now on

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

    Wonderfull! I used the Index funcition to select the collumns I wnanted exclude for the result. This command "choose" is much more easier to use. Really excell is turning easy.

  • @mostafaiffakh9358
    @mostafaiffakh9358 10 місяців тому +1

    Thank you a lot Mrs.Leila.

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

    Really enjoyed this, I like the fact you stress bracketing, it's so easy to slip up using say sumproduct with multiple and / or criteria, re bring back certain columns, you can also use another filter;
    filter ( filter range, { 1,0,1,1} ) , where 1 = column to return 0 = ignore. but you can't reorder with this, but

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

    Thank You Leila, Your videos has been helping me a lot. God bless you and Thank You for your efforts taken to prepare these videos

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

    This tutorial is fantastic for understanding the FILTER function! I've covered similar Excel functions on my channel, and I love seeing how different approaches can solve similar problems. Keep up the great work!

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

    I’m always learning in this channel!! Thank you, Leila 🥰

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

    I'm improving indeed! I got it right thru your tutorials. Thanks, thanks!

  • @Galileo2pi
    @Galileo2pi 10 місяців тому

    You changed my life; you're the best.

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

    Wow. Many thanks Leila. You are a life saver .

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

    Very clear "to the point" explanation, thank you!

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

    Excellent details and explanations. Had an issue trying to filter some data and never got the exact result needed but this just made my day. Thank you!

  • @user-vi7eo1di5c
    @user-vi7eo1di5c 8 місяців тому +1

    Oh Leila, you don't know how this formula has saved my life. Thanks so much!!!

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

    Thank you 🙏. This is pure GOLD.

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

    It was very useful and you explain perfectly! Thank you Leila, you're a great teacher 🙏

  • @philipperiondel3093
    @philipperiondel3093 3 місяці тому

    Thanks a lot Leila, I spent my afternoon trying to figure out how to return non adjacent columns with Filter(), and choosecols() was the answer. Many thanks

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

    Your videos are so well done and you're an Excel Queen!!

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

    Huge thanks from France❤❤

  • @a.achirou6547
    @a.achirou6547 Рік тому

    Excellent explanation!! Thank you Leila.

  • @user-ku5dm9uo8z
    @user-ku5dm9uo8z 10 місяців тому

    Truly amazing Leila, thank you for making dummies smart 🙂

  • @paulmartineau3850
    @paulmartineau3850 10 місяців тому +1

    Thank You for this video. You have been very helpful. I have been looking for a filter function for Excel. I'm looking forward to trying this out for myself.

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

    Its amazing, thank you very much. 👍👍👍

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

    I have recently started your excel course on udemy. Must say it’s pretty detailed. I am loving it. It’s very resourceful

  • @mazimov
    @mazimov 10 місяців тому

    Sooo cooool. I tried to apply *, + and - operators also in IF function and it works wonders. I hate AND/OR function, visually it confuses a lots especially in nested IF functions. Thankkks

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

    Super clear explanation. Love this.

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

    Thank you ma'am. It was really helpful.

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

    Thank you! I needed this exact formula! 🎉

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

    As always, @leilagharani pulls through. I restructured a table I use pulling it apart to simplify data entry. I didn't know how I'd tie them together, but I knew I could count on Ms Gharani on showing me how.

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

    Great, correctly what i'm looking for. Many thanks Leila

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

    Very well explained 👍. Thank you leila ...Love u ..from India ...🇮🇳🇮🇳

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

    Your explanation is very clear... love it! and thanks for sharing 😊

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

    Thank You, Ma'am!

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

    To the point very clear and excellent. Thank you very much.

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

    Excellent video Leila! Thank you

  • @felixdelarosa9266
    @felixdelarosa9266 10 місяців тому

    Great video. You are number 1 teacher in Excel. I am very happy with your videos.

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

    Very useful, especially the last part. Bracket is super important

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

    Nicely done. Thanks!

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

    Perfect!! i will apply those tricks to my worksheets!1Thanks!!

  • @morislubin4502
    @morislubin4502 6 місяців тому

    Very clear and explanatory. Thank you

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

    This video is spot on in what i really needed now! Huge thank you!

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

    Brilliant! Thank you.

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

    Truly excellent lesson, thank you!

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

    Helpful, thank you so much!!!

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

    Great presentation on Filters.
    You learn so much more than just the Formula with Leila....,

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

    Very nice use of ChooseCols function.

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

    Wonderful and useful tip
    Thanks👍👍👍👍

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

    This is awesome Leila, Thanks!

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

    Very helpful - thank you!

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

    Holy Sheet! - Super video just like the rest of yours. Have been using "AND" criteria logic frequently since seeing this video and understood "OR" as well. Had a bit of an epiphany today. "AND" and "OR"s can be nested as needed. Today I needed =IF((A1="X")+((A1="Y")*(B1="Z")),TRUE,FALSE). Worked like a charm! I'm sure there is a limit to the amount of nesting you can do, but this is a game changer. Thaks so much for these videos!

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

      Yay, that's great to hear! Glad it was helpful.

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

    Thanks, you save my day

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

    Thank you Leila!
    Loud and clear tutorial!

  • @HalpPlsxx01
    @HalpPlsxx01 Місяць тому +1

    This is a freaking game changer. 100000/10. You are amazing! Subscribed!

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

    Super helpful @leila! Not the most intuitive, but makes sense now.

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

    Wow, that is a beautiful thing. Thank you Leila!

  • @zakir960
    @zakir960 4 місяці тому +1

    Excellent Presentation

  • @user-tc5pl3zw3h
    @user-tc5pl3zw3h 10 днів тому

    Once again, you came through with exactly the answer I needed. It's like you're reading my mind.
    Be afraid. Be very afraid...

    • @LeilaGharani
      @LeilaGharani  9 днів тому +1

      😁

    • @user-tc5pl3zw3h
      @user-tc5pl3zw3h 9 днів тому

      @@LeilaGharani For context, I design funny T shirts. I keep a spreadsheet inventory of 1500 designs. One of my columns in the table is "Status". I create a batch script to copy all designs with a Status of "U" (Upload) from the main designs images folder to an upload folder to make the uploading process simpler. Because of your videos, I generate that script of nearly 70 designs at a time with two formulas.

  • @m-aliasgharizadeh7054
    @m-aliasgharizadeh7054 Рік тому

    tnx, Leila as always you're the best!

  • @broderp
    @broderp 6 місяців тому +1

    Mind blown. Awesome information. Another great video. Thanks!

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

    wow the multiplication and addition explanation was spot on!

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

    Top notch techniques for, essentially, doing multi-criteria lookups with just one formula. I have a table of data where Col A and B define a unique row and I need to find Col C. This becomes: Choosecols(Filter((theTable, theTable[Col A]= X) * (theTable[Col B]= Y), "NF"),3). Maybe this needs to be added to an IFError Function in case there are no matches. In any case, great stuff. Many thanks. I have been a subscriber for quite awhile and really appreciate all the great videos you produce.

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

    You are a life saver.

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

    Simple and sweet. Thank you Leila

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

    As always, PERFECTION

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

    As always, a great tutorial! Very clear and educational. I have learned so much from your videos! Thank you so much!

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

      Thank you for the kind feedback, Benoit!

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

    Always thumbs up for your tutorials Leila, thank you!

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

    Thanks, Leila. Great informative video one more time!

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

    Wow! Thanks and amazing as always

  • @bhaktilife.108
    @bhaktilife.108 6 місяців тому

    You are an amazing trainer. Thanks a lot Leila.

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

    This has been doing my head in for ages! But this makes perfect sense 👌

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

    U can use xmatch to create the trues/falses when searching for multiple values in the first column and feed xmatch result to filter.

  • @johnlei9821
    @johnlei9821 11 місяців тому

    This is exactly what I was trying to do. Thanks!

  • @byron8519
    @byron8519 3 місяці тому

    Awesome !!! Thank you very much.

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

    Great tips. Thanks

  • @MrAbrandao
    @MrAbrandao 6 місяців тому

    THIS VIDEO IS GOLD

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

    Learnt so much in just 1 video, cant believe 🙏

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

    Very informative video Mam. Thank you so much.

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

    Damn! As always, so much info. Thank you.

  • @Alazen.
    @Alazen. Рік тому +2

    You're so amazing it's unbelievable