Excel FILTER Function TRICK for Non Adjacent Columns

Поділитися
Вставка
  • Опубліковано 4 лип 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

КОМЕНТАРІ • 732

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

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

    • @bobgreenfield9158
      @bobgreenfield9158 15 днів тому

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

  • @rogerhendriks999
    @rogerhendriks999 3 роки тому +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  3 роки тому

      Thanks for sharing, Roger!

    • @meaakv
      @meaakv 3 роки тому +1

      Thanks, Roger! Had the same issue.

    • @PS-gn4xg
      @PS-gn4xg 2 роки тому

      Thanks Roger!

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

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

    • @shorthey
      @shorthey Рік тому +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 3 роки тому +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.

  • @bday9629
    @bday9629 3 роки тому +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!

  • @johnborg5419
    @johnborg5419 3 роки тому +12

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

  • @dokudowiec01
    @dokudowiec01 Рік тому +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.

  • @mdtechpk739
    @mdtechpk739 3 роки тому +7

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

  • @walkwithmedownunder8089
    @walkwithmedownunder8089 3 роки тому

    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!

  • @sahilsinghal9472
    @sahilsinghal9472 3 роки тому +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

  • @ronaldarvin414
    @ronaldarvin414 3 роки тому +3

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

  • @michaeltedford2177
    @michaeltedford2177 3 роки тому

    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.

  • @a.achirou6547
    @a.achirou6547 7 місяців тому +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.

  • @ShaikPashaImran
    @ShaikPashaImran 3 роки тому +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  3 роки тому

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

  • @bfilgate
    @bfilgate Рік тому +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....

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

    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.

  • @marktheirl1842
    @marktheirl1842 3 роки тому +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  3 роки тому

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

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

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

  • @davidabuang
    @davidabuang Рік тому +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 10 місяців тому +1

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

  • @patrickdolisie7037
    @patrickdolisie7037 Рік тому +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 Рік тому

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

  • @gintomino4136
    @gintomino4136 3 роки тому

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

  • @thefotoshooter
    @thefotoshooter 3 роки тому

    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.

    • @LeilaGharani
      @LeilaGharani  3 роки тому

      Great to hear it was helpful, Andy!

  • @Sarunsherief
    @Sarunsherief 3 роки тому +1

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

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

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

  • @barttitulaerexcelbart9400
    @barttitulaerexcelbart9400 3 роки тому

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

    • @LeilaGharani
      @LeilaGharani  3 роки тому

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

  • @dennisd5776
    @dennisd5776 3 роки тому

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

  • @cgrablew
    @cgrablew 3 роки тому

    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!

  • @SaravSood
    @SaravSood 3 роки тому

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

  • @saptharishi1974
    @saptharishi1974 3 роки тому

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

  • @McKaySavage
    @McKaySavage 3 роки тому

    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!

  • @mnsoyan
    @mnsoyan 3 роки тому

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

  • @RRexxxxxxx
    @RRexxxxxxx 3 роки тому

    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 3 роки тому +1

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

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

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

  • @bravucod
    @bravucod 3 роки тому

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

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

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

  • @ekhp91
    @ekhp91 3 роки тому

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

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

    Exactly what I was looking for. Thanks Leila!

  • @1nannapaneni1
    @1nannapaneni1 3 роки тому

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

  • @Remars808
    @Remars808 3 роки тому +1

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

  • @TimEllisWW
    @TimEllisWW 3 роки тому +1

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

  • @jimfitch
    @jimfitch 3 роки тому

    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  3 роки тому

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

  • @EricHartwigConsulting
    @EricHartwigConsulting 3 роки тому

    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!

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

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

  • @JosephMcDaid
    @JosephMcDaid 3 роки тому +1

    Great video. Very clever use of the double FILTER!

    • @LeilaGharani
      @LeilaGharani  3 роки тому

      Thanks Joe for bringing these functions to us :)

  • @aguerojg
    @aguerojg 3 роки тому +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 :)

  • @garys2187
    @garys2187 3 роки тому

    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.

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

    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 🙏🏼

  • @xyclos
    @xyclos 3 роки тому

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

  • @amy19355
    @amy19355 3 роки тому

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

  • @mcpett5742
    @mcpett5742 8 місяців тому +1

    Can't believe there was this solution, I remember brain storming for half hour and I finally went with the choose function

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

    This is a great video - love the tip and the way you've broken down the elements! I've been having a play around with the new functions myself and love the useful functionality they bring! :)

  • @paser2
    @paser2 3 роки тому

    Very impressive! Thanks for sharing these awesome new functions!

  • @mcd22630
    @mcd22630 3 роки тому

    What a great approach on such a common task.
    Also congratulations on breaking through the 500k subscriber milestone.

  • @markpodesta4605
    @markpodesta4605 3 роки тому

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

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

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

  • @tomchrysostomou4895
    @tomchrysostomou4895 3 роки тому

    Excellent video, explained fantastically!

  • @JustAbackYardCook
    @JustAbackYardCook 3 роки тому

    All of your videos are excellent! My favorite for learning excel!

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

    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.

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

    Very helpful tricks! Thank you!

  • @a101525
    @a101525 3 роки тому

    Wow! Great tip Leila! Another day I had really bad times trying something that would give me this same result. Thank you.

  • @rubencorderotorres2915
    @rubencorderotorres2915 3 роки тому

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

  • @derekpross4914
    @derekpross4914 3 роки тому

    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!

  • @charlesnazare7358
    @charlesnazare7358 3 роки тому

    Awesome info Leila! You rock!

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

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

  • @anthonyverdin6743
    @anthonyverdin6743 3 роки тому

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

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

    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

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

    This was awesome, and such a simple and elegant solution. Thank you for another great lesson.

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

    Fabulous and very simply explained. This is great.

  • @ManafKAMIL
    @ManafKAMIL 3 роки тому

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

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

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

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

    Mind blown! I've immediately used it!

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

    Absolutely fantastic. Thank you for teaching.

  • @monte4955
    @monte4955 3 роки тому

    Great as always Leila. Will definately be using this. Good to see your channel growing, over 500k subscribers 👌

  • @favreje
    @favreje 3 роки тому

    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!

    • @LeilaGharani
      @LeilaGharani  3 роки тому

      Thanks for sharing your version, Jeff!

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

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

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

    Thank you, Leila! Was racking my brain on how to solve this till I luckily found your video. :D Greetings from Panamá.

  • @calilthomas
    @calilthomas 3 роки тому

    Awesome! Have been trying for a while! Thank you!

  • @DougHExcel
    @DougHExcel 3 роки тому

    Simple and elegant tip!

  • @Fahad-AlGhamdi
    @Fahad-AlGhamdi 3 роки тому +1

    Greetings from🇸🇦 Saudi Arabia 🇸🇦
    . Your channel is wonderful in explaining Excel. I wish you more excellence

  • @JaskellK
    @JaskellK 3 роки тому

    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!

  • @sharon4578
    @sharon4578 3 роки тому

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

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

    I can't thank you enough for this video. Thank you so much and keep up the good work

  • @nonoobott8602
    @nonoobott8602 3 роки тому +1

    This is so amazing and very useful. You explanation makes it so easy to grasp. Thanks for sharing

  • @derrickadang9816
    @derrickadang9816 3 роки тому +1

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

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

    Definitely gonna try this. Thanks a lot

  • @HusseinKorish
    @HusseinKorish 3 роки тому

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

  • @adaliciojunior9792
    @adaliciojunior9792 3 роки тому

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

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

      very nice

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

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

    So nice of you to teach such a great IDEA. Thanks

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

    You are just fabulous. Thanks for sharing such valuable knowledge in such a simple way. Amazing

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

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

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

    Awesome! Helped me a lot here at work.

  • @kevochanner8859
    @kevochanner8859 3 роки тому

    Fantastic tricks and explained very easily to follow

  • @mgnielsen707
    @mgnielsen707 3 роки тому

    Thank you for this tutorial! I was trying to sort this out today. Many thanks

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

    Thanks Leila, I love your videos. They are easy to follow and this one was very useful on a recent task. Pardon me if this was already covered, but I had an issue when using the double filter technique for non-adjacent columns. I was getting the #VALUE! error when there were no matching rows. I found a solution by replacing the inner “Not Found” parameter with an array of equal size to the original array that I though you could share with others that might be facing the same issue.
    =FILTER(FILTER(Table2,Table2[Compare]=$K$7,{"Not Found","",""}),{1,0,1},"")

  • @lucmorineau6741
    @lucmorineau6741 3 роки тому +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})
    "

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

    You have really upped the quality of the videoes! Love the editing, the small details, music, transition etc.
    Awesome! :-)

    • @mdtechpk739
      @mdtechpk739 3 роки тому

      Agreed

    • @LeilaGharani
      @LeilaGharani  3 роки тому

      Thanks a ton! I'm glad to hear that 😊

    • @muhammedmm1407
      @muhammedmm1407 3 роки тому

      Leila Gharani thank you,
      I have one more query about =Filter formula is possible to do Based on Mutiple conditions I mean by list of drop down shouldn't in information.
      I hope you are going to do one video about this

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

    Thank you, Leila. It is always such a clear explanation.

  • @louwp2
    @louwp2 3 роки тому

    WOW! Amazing - thank you Leila.

  • @mohitjagad
    @mohitjagad 3 роки тому +1

    Hi Leila, Thanks for sharing this amazing trick . 😊👍
    I believe this will ease the work on large tables / data sets.
    Thanks 😊⭐

  • @sethrish
    @sethrish 3 роки тому

    Absolutely awesome each time... Everytime..