Excel FILTER Function TRICK for Non Adjacent Columns

Sdílet
Vložit
  • čas přidán 4. 07. 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    Are you up for a really cool trick with Excel's new Filter Function? With a simple trick, you can use it to get multiple match results from Non-Adjacent columns in a Simple & Dynamic way. You can also use this trick to get unique values from non-adjacent columns.
    ⬇️ DOWNLOAD the workbook here: pages.xelplus.com/filter-tric...
    🔍 What You'll Learn:
    - Dynamic Data Analysis: Learn to dynamically extract and analyze data from non-adjacent columns using the FILTER function.
    - Sorting and Filtering Tricks: Unveil tricks to sort and filter data based on specific criteria, making your analysis more efficient and accurate.
    - Handling Unique Values: Explore techniques to extract unique values from different columns for a comprehensive data overview.
    - Practical Examples: Implement these skills in real-world scenarios, such as employee salary analysis, to gain actionable insights.
    So, let's say we have a dataset with 6 columns but we're only interested in the information in column 2 and 5, i.e. in non-adjacent columns. Plus, we don't want to get "all" value from these columns but instead only records that match a certain criteria. And we want it to be in a dynamic way so whenever we change the criteria, the result updates automatically.
    I'll show you an Excel trick that get's this done in record time. The secret is to broadcast array constants in our formula. And not only that: You can also use this to get a UNIQUE list of combinations that are in non-adjacent columns.
    As a bonus tip I'll show you how you can SORT the result based on a value that's not in the filtered end result.
    Many thanks to my student Adam Payne for sharing this method with me!
    To learn about new Excel functions enroll in my comprehensive course 👉 www.xelplus.com/course/excel-...
    LINK to FILTER video: • Excel FILTER Function ...
    ★ My Online Excel Courses ► www.xelplus.com/courses/
    00:00 Multiple Match Results from Non-Adjacent Columns
    01:40 Excel FILTER Function
    04:00 Filter Out the Columns You Do NOT need
    06:09 Get UNIQUE list from Non-Adjacent Columns
    09:10 Bonus Trick for Sorting
    ➡️ 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
    Note: 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

Komentáře • 732

  • @LeilaGharani
    @LeilaGharani  Před 5 měsíci

    Grab the file I used in the video from here 👉 pages.xelplus.com/filter-trick-file

    • @bobgreenfield9158
      @bobgreenfield9158 Před 15 dny

      I tried Ctrl + T and nothing
      happened. You already have
      the table set.

  • @rogerhendriks999
    @rogerhendriks999 Před 3 lety +54

    Thanks, Leila, for yet another very helpful video. Just for those who live in a country like me, where you have to use other separators: to make this trick work, instead of the "," you'll have to use the "\". The first formula then looks like this: =SORT(FILTER(FILTER(TSal[[Name]:[Position]];TSal[Salary]>J2);{1\0\0\1});2)
    And then it works miracles.
    Had been looking for this trick for so long, glad I know it now!

    • @LeilaGharani
      @LeilaGharani  Před 3 lety

      Thanks for sharing, Roger!

    • @meaakv
      @meaakv Před 3 lety +1

      Thanks, Roger! Had the same issue.

    • @PS-gn4xg
      @PS-gn4xg Před 2 lety

      Thanks Roger!

    • @alexpedrosantos
      @alexpedrosantos Před 2 lety

      Thanks a lot Roger. I was trying everything as a separator and none worked until seeing yours! Portuguese excel.

    • @shorthey
      @shorthey Před rokem +2

      Not typically one for commenting youtube videos, but I've been looking for this for a couple of hours now and it worked perfectly. Thank you Roger! And big ups to Leila as always.
      Confirming forward slash separators work instead of comma for Norwegian excel users.

  • @pradhanbalter3796
    @pradhanbalter3796 Před 3 lety +11

    I love Leila and everything she does. Her videos are so clear, step-by-step and covers every different "what if?". When it comes to Excel, her channel is always the first place I look.

  • @johnborg5419
    @johnborg5419 Před 3 lety +12

    Amazing Leila. Never thought of that in a million years.

  • @walkwithmedownunder8089

    I have been working on a solution for this for who knows how long and you solved it in minutes! Thanks you so so so very much Leila!

  • @michaeltedford2177
    @michaeltedford2177 Před 3 lety

    Leila, Once again you display a fantastic option to extend the usefulness of Excel. It makes keeping data updated very easy. Thank you. One curiosity I found is, if you drag the formula, like a normal copy, the formula changes to reflect each column in the table. Example - =FILTER(FILTER(Table2,Table2[Subsegment]=D1),{0,1}) turns to =FILTER(FILTER(Table2,Table2[LEGACY]=E1),{0,1}). It is easily solved with a regular copy and paste. Thank you again.

  • @bday9629
    @bday9629 Před 3 lety +1

    I want to express how much I love you Leila, I started to need to learn excel about 2 years ago, and whenever I am stuck I searched up it is always your videos that knows what I am looking for, thank you!

  • @mdtechpk739
    @mdtechpk739 Před 3 lety +7

    You have made it super easy. Thumps up for teaching us extraordinary tricks. Thank you

  • @thefotoshooter
    @thefotoshooter Před 3 lety

    Watched the video a half hour ago, and already used it to save about 15 minutes of manual effort. Great function and GREAT instruction on using it.

  • @gintomino4136
    @gintomino4136 Před 3 lety

    She always make it easy for us to understand. I wish all teachers are like you.

  • @a.achirou6547
    @a.achirou6547 Před 7 měsíci +1

    Waou ! I love the simplicity of the filter trick. Thank you, Leila, for sharing this. It is a good alternative to CHOOSECOLS function for filtering the output.

  • @sahilsinghal9472
    @sahilsinghal9472 Před 3 lety +6

    I had been breaking my head for the last few days on this exact problem. Your solution is brilliant. Makes the filter function so much more useful. Thank you so much Leila

  • @dokudowiec01
    @dokudowiec01 Před rokem +3

    This is my favourite Excel function so far. I use it every day. The only thing that I hate about it, is that I had to redo all my sheets ;) I love that you can use as many 'include' arguments as you want, like an 'IF' function. Just put all 'include' arguments and '*' between them. Genius! - Leila, great work! Please keep it up.

  • @cgrablew
    @cgrablew Před 3 lety

    Thanks ... I did something like this a month ago but using choose and it was a lot more cumbersome..This is great easy way to do non-adjacent columns. Thanks so much!

  • @ShaikPashaImran
    @ShaikPashaImran Před 3 lety +1

    Really love the way you put up examples and explain them so easily.
    Thank you leila, this is the first time ever i am fan of someone who has been training online

    • @LeilaGharani
      @LeilaGharani  Před 3 lety

      Glad you like them! Thank you so much for your support.

  • @adaliciojunior9792
    @adaliciojunior9792 Před 3 lety

    VOCÊ NÃO EXISTE!!!!! PERFEITAAAAAAA

  • @bfilgate
    @bfilgate Před rokem +1

    I googled and could not find anything on how to do what described in my comment below - but then I was messing with the FILTER function and realized I could put the HSTACK function inside the first parameter of the FILTER function and that gives me exactly what I need. i.e. to select the specific columns by column name in a FILTER function in any order without choosing all of them, etc. and without relying on the column order in the source table. It works great! Thought it might be worth a video....

  • @ronaldarvin414
    @ronaldarvin414 Před 3 lety +3

    This is what I exactly need right now. Thank you! Subscribed.

  • @mikedodds1321
    @mikedodds1321 Před 2 lety

    I really need to just come to your videos before I start any task. You always save me so much time!

  • @dennisd5776
    @dennisd5776 Před 3 lety

    What a simple solution to a complex problem using only a single formula. Thank you for the tip.

  • @SaravSood
    @SaravSood Před 3 lety

    I simply love your teaching method & style, learner lot of things in simplest way.. you rock.. thank you so much

  • @ekhp91
    @ekhp91 Před 3 lety

    I've been combining it with the indirect formula and making separate formulas for each column that I need. This really helps!

  • @applezhe19
    @applezhe19 Před 2 lety

    Thanks for teaching me on filter function as well as for Non Adjacent columns, this is very helpful for me. Keep it up!

  • @mattschoular8844
    @mattschoular8844 Před 3 lety

    Wow! I have been dabbling with the new functions for awhile now. This video is packed with great content. Thanks Leila and Adam for sharing your knowledge.

  • @lmajiedmary
    @lmajiedmary Před 2 lety

    Just what the doctor ordered. Thank you!

  • @barttitulaerexcelbart9400

    Thank you Leila, I think you were the first who makes a video about his. Finally a good alternative to advanced filter...

    • @LeilaGharani
      @LeilaGharani  Před 3 lety

      Without Adam's idea I wouldn't have come up with it either. It's a great alternative!

  • @user-sn8nb7zw8i
    @user-sn8nb7zw8i Před 2 měsíci

    Have a teacher like you,its a big chance.You are amazing .Yours youtube videos give me more than my teachers .THANK YOU ❤

  • @tammystucki3152
    @tammystucki3152 Před 2 lety

    Thank you for sharing and thank your student for thinking outside of the box!

  • @Remars808
    @Remars808 Před 3 lety +1

    You never fail to fascinate us , take care Queen 👸🏼

  • @anthonyverdin6743
    @anthonyverdin6743 Před 3 lety

    OMG.....Thank you so very much. You save my day Leila!!!

  • @marktheirl1842
    @marktheirl1842 Před 3 lety +2

    Leila, I have been a subscriber for a long time now and I am still amazed on how much I can learn from you!!!

    • @LeilaGharani
      @LeilaGharani  Před 3 lety

      I'm so glad! Thank you for your support, Mark.

  • @keithdutch5295
    @keithdutch5295 Před 2 lety

    Exactly what I was looking for. Thanks Leila!

  • @patrickdolisie7037
    @patrickdolisie7037 Před rokem +2

    I really think you are a genius Leila. And the opportunity to download your file is great. It allows to understand bugs between English version of Excel et French one for example. In that case {1,0,0,1} becomes {1.0.0.1} in the French version. Once again, I, like millions of people, really appreciate what you do. Thanks !

    • @bilalyenimol3502
      @bilalyenimol3502 Před rokem

      Really thanks for this comments i was trying to figure out where i am making mistake thanks bro :D

  • @mnsoyan
    @mnsoyan Před 3 lety

    Amazing trick! This will transform the way I do my reports! Thank you!

  • @operamaniak81
    @operamaniak81 Před 2 lety

    Mind blown! I've immediately used it!

  • @math2693
    @math2693 Před 3 lety

    This video has made my life easier

  • @tontolim1043
    @tontolim1043 Před 2 lety

    Thanks SOLVED my problem!!!

  • @lucmorineau6741
    @lucmorineau6741 Před 3 lety +1

    excellent, thank you. Just a note for those who will use "European configuration"The formula is becoming : "=FILTER(SORT(FILTER(TSal[[Name]:[Salary]];TSal[Salary]>J2);5;-1);{1\0\0\1\0})
    "

  • @user-kf7im8me9k
    @user-kf7im8me9k Před 4 měsíci

    AMAZING. THANK YOU!

  • @bravucod
    @bravucod Před 3 lety

    I was looking for this solution the other day. Thanks for the TIP!

  • @patrickleavydatadrivenfina1491

    this trick is AMAZING!

  • @sethrish
    @sethrish Před 3 lety

    Absolutely awesome each time... Everytime..

  • @krishnamurthy7733
    @krishnamurthy7733 Před měsícem

    It's nice and easy step to filter the Non-adjacent columns. Before watching this video, I had been using the HSTACK function to create an array from Non-adjacent columns.

  • @RRexxxxxxx
    @RRexxxxxxx Před 3 lety

    Dear Leila, I'm not sure I'm gonna use this tips (I'm a very basic excel user), but I just can't stop watching your videos. You are great!!! Love how you explain things!

    • @ExcelUnlocked
      @ExcelUnlocked Před 3 lety +1

      Hello, trust me, you keep watching, you won't be a basic user for long 😉

  • @pupycron4302
    @pupycron4302 Před 3 lety

    Fabulous and very simply explained. This is great.

  • @les5892
    @les5892 Před rokem

    Very helpful tricks! Thank you!

  • @sharon4578
    @sharon4578 Před 3 lety

    Till now I use compicated formulas or pivot to do all of it ,
    now the life changed with this amazing function
    Many thanks Lili

  • @davidabuang
    @davidabuang Před rokem +7

    The second FILTER trick is cool, but I think some people are struggling to understand how it actually works, because filtering is typically only applied to rows. However, the FILTER function is capable of filtering data both vertically and horizontally, which is the case in this example.
    To better illustrate how a horizontal filter works on columns, write some OR criteria for the header row like this:
    =FILTER(TSal,(TSal[#Headers]=I4)+(TSal[#Headers]=J4))
    So, to achieve the same results as demonstrated in this video, the final nested formula would be:
    =FILTER(FILTER(TSal ,TSal[Salary]>J2), (TSal[#Headers]=I4)+(TSal[#Headers]=J4))
    Sure, the array constant method is shorter in this example, but the horizontal criteria method has other advantages:
    1) it will work regardless of the column delimiter used in your region
    2) it will continue to work if new columns are added/inserted
    3) it’s easier to manage with larger tables (20+ columns)
    Cheers!

    • @theawebster1505
      @theawebster1505 Před 10 měsíci +1

      That's definitely a more sound solution, @davidabuang
      The video is 100% great anyways!

  • @markpodesta4605
    @markpodesta4605 Před 3 lety

    Thank you Leila. I will try the formulas for myself!

  • @jimfitch
    @jimfitch Před 3 lety

    Fabulous tip! This is a great solution to several situations that I solved with far more complex DA formulas. This is sooo much simpler. Thank you!

    • @LeilaGharani
      @LeilaGharani  Před 3 lety

      My pleasure, Jim! Glad it's helpful for you.

  • @felipelandim4619
    @felipelandim4619 Před 2 lety

    Awesome! Helped me a lot here at work.

  • @charlesnazare7358
    @charlesnazare7358 Před 3 lety

    Awesome info Leila! You rock!

  • @lukmanmaul3439
    @lukmanmaul3439 Před rokem

    Definitely gonna try this. Thanks a lot

  • @rambhandari7078
    @rambhandari7078 Před rokem

    Really love the way you explain... Thak you Leila 🙏

  • @1nannapaneni1
    @1nannapaneni1 Před 3 lety

    Thank you Leila. Wonderful presentation. Very clear understandable easily every having basic knowledge. Keep it up.

  • @silvanodemetrio407
    @silvanodemetrio407 Před 2 lety

    You are the best! Helped me a lot. Thanks.

  • @nishasukhla09
    @nishasukhla09 Před 2 lety

    It's simple & classic , thanks

  • @louwp2
    @louwp2 Před 3 lety

    WOW! Amazing - thank you Leila.

  • @hoserbob
    @hoserbob Před 2 lety

    Wow. Thank you. I was wondering if this could be done. This is an elegant solution.

  • @saptharishi1974
    @saptharishi1974 Před 3 lety

    I have become your ardent fan - absolutely brilliant explanation!!! Most importantly the pace that you eloquently navigate thru, thanks a lot!

  • @alexpedrosantos
    @alexpedrosantos Před 2 lety

    Absolutely fantastic. Thank you for teaching.

  • @tomchrysostomou4895
    @tomchrysostomou4895 Před 3 lety

    Excellent video, explained fantastically!

  • @garys2187
    @garys2187 Před 3 lety

    That is incredible!!Thank you for sharing. I am in the process of taking your dynamic array course, which I am enjoying very much - a very worthwhile investment. I am well past the Filter section of the course, so I am making a note to myself that this trick exists.

  • @DougHExcel
    @DougHExcel Před 3 lety

    Simple and elegant tip!

  • @TimEllisWW
    @TimEllisWW Před 3 lety +1

    Great tip, I had been trying to find a way to do this. Thanks.

  • @ManafKAMIL
    @ManafKAMIL Před 3 lety

    Elegant, simple, and effective... awsome trick :)

  • @rubencorderotorres2915

    Oh! I really needed that trick, thanks a lot Leila

  • @Sarunsherief
    @Sarunsherief Před 3 lety +1

    As usual another cool trick 😎👆
    Thank You Leila
    Looking forward to the next session.

  • @niteshmech1
    @niteshmech1 Před rokem

    Thanks Leila 👍Your trick helped me lots in my desgn calculations.

  • @EricHartwigConsulting
    @EricHartwigConsulting Před 3 lety

    This video is so awesome!
    I have been looking for a way to extract specific columns from within a filtered data set and now thanks to this video I know how to do that!

  • @kevochanner8859
    @kevochanner8859 Před 3 lety

    Fantastic tricks and explained very easily to follow

  • @JaskellK
    @JaskellK Před 3 lety

    Our IT department finally updated our 365 add-ons. Sad to say i work for a Tech company, but been waiting to use FILTER function. This video helped me trickle down to the columns I needed which is about 5 from about 30 columns. Thank you!

  • @sherlinejeanbaptiste9443

    You are the best Leila.

  • @favreje
    @favreje Před 3 lety

    What a great solution! I tweaked the formula to replace the implicit constant array with a simple if() statement so the user can flag with a "y" (yes) above each column that they want to keep: =FILTER(FILTER(Tsal[[Name]:[Position]],Tsal[Salary]>J2),IF(B1:E1="y",1,0)). This way non-power users can dynamically choose the columns in their report. Thanks again for the simple solution to this issue - I looked everywhere for one!

  • @HusseinKorish
    @HusseinKorish Před 3 lety

    That's Amazing Liela ... i used to go around this problem for months ....now you solve it ...Many Thanks

  • @mohammadashiq9996
    @mohammadashiq9996 Před 3 lety

    I love this simpliicity thank leila

  • @robertovelicaz7719
    @robertovelicaz7719 Před 3 lety

    Really helpful! Thanks Leila!

  • @mahesh1983
    @mahesh1983 Před 2 lety

    This is awesome!!

  • @aguerojg
    @aguerojg Před 3 lety +1

    What an amazing tutorial, you explain so well and step by step, thank you very much Leila! The subtitles are so useful to fully understand, as English is not my native language. Thanks a lot for all your effort :)

  • @McKaySavage
    @McKaySavage Před 3 lety

    Really awesome. I’ve needed this trick for a while and thought it not possible. Thanks so much for sharing this! Your videos are always great, but I’m super grateful for this one!

  • @ronalddcunha6136
    @ronalddcunha6136 Před 3 měsíci

    Thank you Laila... very useful video

  • @dennishd848
    @dennishd848 Před 3 lety

    Awesome, my boss was asking me this yesterday, today I got answer. Thank you so much

  • @xyclos
    @xyclos Před 3 lety

    Happy New Year Lelia!!! Your're fantastic!!! Thanks!!!

  • @sendram2005
    @sendram2005 Před 3 lety

    You are a genius 👍🏻

  • @JithinRTrivandrum
    @JithinRTrivandrum Před 3 lety

    Thanks for the information and trick.

  • @Giorgalis
    @Giorgalis Před rokem

    unbelievable, well done

  • @johnvodopija1743
    @johnvodopija1743 Před rokem

    This is so powerful. Thank you for sharing and explaining it so clearly. Cheers

  • @derekpross4914
    @derekpross4914 Před 3 lety

    I'm late to this video. I needed to build unique lists from large data sets for sorting and SUMPRODUCT and SUMIFS analyses. This worked like a charm. Thank you!

  • @amy19355
    @amy19355 Před 3 lety

    That is a fabulous little trick, and I'm already putting it to work. Thank you!

  • @briankkrieger1685
    @briankkrieger1685 Před rokem

    You are my new most favorite person!

  • @garyallan69
    @garyallan69 Před 2 lety

    Love it. I've wanting to know how to use this for a long time. Had to resort to using Xlookup before now for the second column

  • @osamasaid8476
    @osamasaid8476 Před 3 lety

    this is wonderful , god bless you

  • @RZA12
    @RZA12 Před 4 měsíci

    You're a great teacher and I'm glad to find your channel. You teach in a brilliant way and I completely understand. Thank you very much 🙏🏼

  • @arkadiuszstojek9713
    @arkadiuszstojek9713 Před 3 lety +12

    Awesome function, awesome video :) Also it will well pair up with choose function. FILTER(CHOOSE({1,2},TSal[[Name],[Position]]),TSal[Salary]>J2)

    • @levi822
      @levi822 Před 2 lety

      very nice

    • @dirkstaszak4838
      @dirkstaszak4838 Před 2 lety +2

      in my Excel this is not working. The formular should be like this: FILTER(CHOOSE({1,2},TSal[Name];TSal[Position]),TSal[Salary]>J2) In addition I noticed that in build 2108 14326.20784 in the German version WAHL({1.2}...) the choose part must be spearate by "." to achieve the same. In the beta release channel it changed to "\" for the same result. Apparently Choose acts differently in country versions as well as in build version.

  • @TheMrDoch
    @TheMrDoch Před rokem

    AWESOME! as always.
    Thank you for this knowledge.🎓

  • @derrickadang9816
    @derrickadang9816 Před 3 lety +1

    Bless you...this is such a great breakthrough in my line of work.

  • @LearnExcelVBA
    @LearnExcelVBA Před 3 lety

    Thanks Leila for sharing this. This will be surely useful for 365 users.

  • @taizoondean689
    @taizoondean689 Před 3 lety

    Thank you for all your help 😊😊

  • @evilchicken17
    @evilchicken17 Před rokem

    Awesome, thanks!

  • @eljimsafety3652
    @eljimsafety3652 Před 3 lety

    QUEEN OF EXCEL!