Excel FILTER Function TRICK for Non Adjacent Columns

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 758

  • @LeilaGharani
    @LeilaGharani  11 หลายเดือนก่อน +1

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

    • @bobgreenfield9158
      @bobgreenfield9158 6 หลายเดือนก่อน

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

    • @ChaplainRMCSJ
      @ChaplainRMCSJ 3 หลายเดือนก่อน

      I already have the file, thank you.

  • @rogerhendriks999
    @rogerhendriks999 4 ปีที่แล้ว +61

    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  4 ปีที่แล้ว

      Thanks for sharing, Roger!

    • @meaakv
      @meaakv 3 ปีที่แล้ว +1

      Thanks, Roger! Had the same issue.

    • @PS-gn4xg
      @PS-gn4xg 3 ปีที่แล้ว

      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 ปีที่แล้ว +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.

  • @bfilgate
    @bfilgate ปีที่แล้ว +2

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

  • @bday9629
    @bday9629 4 ปีที่แล้ว +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!

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

  • @patrickdolisie7037
    @patrickdolisie7037 2 ปีที่แล้ว +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 2 ปีที่แล้ว

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

  • @a.achirou6547
    @a.achirou6547 ปีที่แล้ว +2

    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.

    • @TheZofriax
      @TheZofriax 4 หลายเดือนก่อน

      You the real MVP!

  • @favreje
    @favreje 4 ปีที่แล้ว +1

    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  4 ปีที่แล้ว

      Thanks for sharing your version, Jeff!

    • @MDNaHas_Mahmoud
      @MDNaHas_Mahmoud หลายเดือนก่อน

      thank you very much

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

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

  • @lucmorineau6741
    @lucmorineau6741 4 ปีที่แล้ว +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})
    "

  • @dennisd5776
    @dennisd5776 4 ปีที่แล้ว

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

  • @samruben5750
    @samruben5750 2 ปีที่แล้ว

    That was awesome! For anyone getting a #VALUE! error - 1. Check that you're using Excel 2021 or 365 2. Make sure that the array constant of boolean values you use for the include argument has as many values as columns present in the array argument! So if I'm filtering an array from Department to Salary, the curly bracket array constant must have five values (Department, Name, Start Date, Birth Date, Position).

    • @SteveSwanson999
      @SteveSwanson999 2 ปีที่แล้ว +1

      THANKS SAM! The second part of your comments (having as many values as in the array) saved me TONS of debugging...GOOD YOU

    • @samruben5750
      @samruben5750 2 ปีที่แล้ว

      @@SteveSwanson999 Glad I could help! I wasted a good chunk of time trying to figure it out myself 😂

  • @thefotoshooter
    @thefotoshooter 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      Great to hear it was helpful, Andy!

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

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว

      Great! Glad it was helpful.

  • @sahilsinghal9472
    @sahilsinghal9472 4 ปีที่แล้ว +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 2 ปีที่แล้ว +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.

  • @johnborg5419
    @johnborg5419 4 ปีที่แล้ว +12

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

  • @arkadiuszstojek9713
    @arkadiuszstojek9713 4 ปีที่แล้ว +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 3 ปีที่แล้ว

      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.

  • @Galileo2pi
    @Galileo2pi ปีที่แล้ว

    Leila, she's the better in this land, this is my opinion. She opened my brain, and my life changed; she's a good professional. Do not forget her team, excellent as well.

    • @LeilaGharani
      @LeilaGharani  ปีที่แล้ว

      Thank you so much for the kind words!

  • @danielmpinga4102
    @danielmpinga4102 9 หลายเดือนก่อน

    3 years later and here I am using this solution. Thanks for all these helpful videos over the years.

    • @LeilaGharani
      @LeilaGharani  8 หลายเดือนก่อน

      It's our pleasure. Thanks for your ongoing support!

  • @mikedodds1321
    @mikedodds1321 2 ปีที่แล้ว

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

  • @davidabuang
    @davidabuang ปีที่แล้ว +8

    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 ปีที่แล้ว +1

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

  • @mcpett5742
    @mcpett5742 ปีที่แล้ว +1

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

  • @barttitulaerexcelbart9400
    @barttitulaerexcelbart9400 4 ปีที่แล้ว

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

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว

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

  • @RRexxxxxxx
    @RRexxxxxxx 4 ปีที่แล้ว

    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 4 ปีที่แล้ว +1

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

  • @mdtechpk739
    @mdtechpk739 4 ปีที่แล้ว +7

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

  • @RZA12
    @RZA12 10 หลายเดือนก่อน

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

    • @LeilaGharani
      @LeilaGharani  10 หลายเดือนก่อน

      Thank you very much!

  • @Fahad-AlGhamdi
    @Fahad-AlGhamdi 4 ปีที่แล้ว +1

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

  • @lmajiedmary
    @lmajiedmary 2 ปีที่แล้ว

    Just what the doctor ordered. Thank you!

  • @tammystucki3152
    @tammystucki3152 2 ปีที่แล้ว

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

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

  • @krishnamurthy7733
    @krishnamurthy7733 7 หลายเดือนก่อน

    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.

  • @gunaybabacanova
    @gunaybabacanova 8 หลายเดือนก่อน

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

  • @saptharishi1974
    @saptharishi1974 4 ปีที่แล้ว

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

  • @JosephMcDaid
    @JosephMcDaid 4 ปีที่แล้ว +1

    Great video. Very clever use of the double FILTER!

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว

      Thanks Joe for bringing these functions to us :)

    • @JOSE-du7mu
      @JOSE-du7mu 4 หลายเดือนก่อน

      Different ways of doing the same thing; for example, she also showed us howt to do the CHOOSECOLS, to select only the column you want; I think CHOOSECOLS is better.

  • @sbfredster
    @sbfredster 2 ปีที่แล้ว

    Boom, solved the annoying problem of having to hide columns! Thanks Leila! I ran into another annoying result where the filter function returns zeros for blank cells in the source data. I found an elegant solution on Mr. Excel that may help others...made sense to me as I just watched Leila's video on the LET function ;) ... to remove zeros in the array returned by filter try a version of the following example: =LET(f,FILTER($A$1:$D$21,$B$1:$B$21="your_filter_criteria"),IF(f=0,"",f))

    • @LeilaGharani
      @LeilaGharani  2 ปีที่แล้ว

      Thanks for sharing your solution!

    • @xjustinx1993
      @xjustinx1993 10 หลายเดือนก่อน

      Or just go into file-options-advanced and deselect the option that says “show 0 for blank cells. “

  • @operamaniak81
    @operamaniak81 2 ปีที่แล้ว

    Mind blown! I've immediately used it!

  • @kevinwashington179
    @kevinwashington179 3 ปีที่แล้ว

    Thanks!

  • @mmjjagon5419
    @mmjjagon5419 3 ปีที่แล้ว +5

    Really excellent. Again a more than useful video. Thank you
    Just to help : for French version of Excel, we have to write {1.0.0.1} instead of {1;0;0;1}

    • @erwanlecocq381
      @erwanlecocq381 3 ปีที่แล้ว

      MERCI!!!!! Une heure que je me debat avec excel sans rien n'y comprendre! Merci!

    • @jamalkarimi8860
      @jamalkarimi8860 ปีที่แล้ว

      For German version dots are also the delimeter

  • @SimonLangridge-no5gu
    @SimonLangridge-no5gu 8 หลายเดือนก่อน

    Found this tutorial, was exactly what i was looking for. Was lost now found. Thank you so much.

    • @LeilaGharani
      @LeilaGharani  8 หลายเดือนก่อน

      Glad it helped!

  • @Alex43355
    @Alex43355 2 ปีที่แล้ว

    Thanks

  • @HusseinKorish
    @HusseinKorish 4 ปีที่แล้ว

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

  • @sharadpunita
    @sharadpunita ปีที่แล้ว

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

  • @hoserbob
    @hoserbob 2 ปีที่แล้ว

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

  • @srvithal38
    @srvithal38 2 ปีที่แล้ว

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

  • @johnvodopija
    @johnvodopija 2 ปีที่แล้ว

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

  • @asam
    @asam 4 ปีที่แล้ว +2

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

    • @mdtechpk739
      @mdtechpk739 4 ปีที่แล้ว

      Agreed

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว

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

    • @muhammedmm1407
      @muhammedmm1407 4 ปีที่แล้ว

      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

  • @ronaldarvin414
    @ronaldarvin414 3 ปีที่แล้ว +3

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

  • @alexpedrosantos
    @alexpedrosantos 2 ปีที่แล้ว

    Absolutely fantastic. Thank you for teaching.

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

  • @keithdutch5295
    @keithdutch5295 2 ปีที่แล้ว

    Exactly what I was looking for. Thanks Leila!

  • @rambhandari7078
    @rambhandari7078 2 ปีที่แล้ว

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

  • @felipelandim4619
    @felipelandim4619 2 ปีที่แล้ว

    Awesome! Helped me a lot here at work.

  • @izkamarkizka
    @izkamarkizka 2 ปีที่แล้ว

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

  • @LearnExcelVBA
    @LearnExcelVBA 4 ปีที่แล้ว

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

  • @rperea73
    @rperea73 ปีที่แล้ว

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

  • @tharindukanchana4516
    @tharindukanchana4516 13 วันที่ผ่านมา

    Wow, superb. Thank you

  • @pupycron4302
    @pupycron4302 3 ปีที่แล้ว

    Fabulous and very simply explained. This is great.

  • @ekhp91
    @ekhp91 4 ปีที่แล้ว

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

  • @ShaikPashaImran
    @ShaikPashaImran 4 ปีที่แล้ว +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  4 ปีที่แล้ว

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

  • @gloystar
    @gloystar 11 หลายเดือนก่อน

    Nowadays I just use the CHOOSECOLS function instead, but both solutions are fine. Great video!

  • @briankkrieger1685
    @briankkrieger1685 ปีที่แล้ว

    You are my new most favorite person!

  • @lukmanmaul3439
    @lukmanmaul3439 ปีที่แล้ว

    Definitely gonna try this. Thanks a lot

  • @niteshmech1
    @niteshmech1 ปีที่แล้ว

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

  • @GhostVale4698
    @GhostVale4698 ปีที่แล้ว

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

  • @gintomino4136
    @gintomino4136 4 ปีที่แล้ว

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

  • @preeteshdoshi4035
    @preeteshdoshi4035 2 ปีที่แล้ว

    Great laila ,love u , u give me more then i imagine.
    i identified my problem with my excel data and solution is just from you.

  • @anthonyverdin6743
    @anthonyverdin6743 3 ปีที่แล้ว

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

  • @MrYogiAsliwale
    @MrYogiAsliwale 4 ปีที่แล้ว

    i was using the filter function... but didn't realize it was array formula and hence could filter multiple columns and in this way!! Thank You Leila. and as usual... i love the way you say "Eeks" for X :D

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว

      FILTER really is an amazing function :)

  • @EricHartwigExcelConsulting
    @EricHartwigExcelConsulting 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!

  • @amy19355
    @amy19355 4 ปีที่แล้ว

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

  • @les5892
    @les5892 2 ปีที่แล้ว

    Very helpful tricks! Thank you!

  • @kulbhushangaur6298
    @kulbhushangaur6298 2 ปีที่แล้ว

    You are awesome, I got stuck to add two columns in filter function…thank you very much

  • @ronalddcunha6136
    @ronalddcunha6136 9 หลายเดือนก่อน

    Thank you Laila... very useful video

  • @cgrablew
    @cgrablew 4 ปีที่แล้ว

    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!

  • @silvanodemetrio407
    @silvanodemetrio407 2 ปีที่แล้ว

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

  • @kevochanner8859
    @kevochanner8859 4 ปีที่แล้ว

    Fantastic tricks and explained very easily to follow

  • @tontolim1043
    @tontolim1043 2 ปีที่แล้ว

    Thanks SOLVED my problem!!!

  • @applezhe19
    @applezhe19 3 ปีที่แล้ว

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

  • @michaeltedford2177
    @michaeltedford2177 4 ปีที่แล้ว

    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.

  • @math2693
    @math2693 4 ปีที่แล้ว

    This video has made my life easier

  • @ugabrew
    @ugabrew 10 หลายเดือนก่อน

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

  • @mattschoular8844
    @mattschoular8844 4 ปีที่แล้ว

    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.

  • @sherlinejeanbaptiste9443
    @sherlinejeanbaptiste9443 3 ปีที่แล้ว

    You are the best Leila.

  • @patrickleavydatadrivenfina1491
    @patrickleavydatadrivenfina1491 2 ปีที่แล้ว

    this trick is AMAZING!

  • @dashrathpanchal8393
    @dashrathpanchal8393 4 ปีที่แล้ว

    Great Leila .. Literally you are dynamic like the formulas ..Super fast solution for dashboard ..A Big Thumps Up ..Thanks for sharing

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว

      You are very welcome 😊

  • @67duiker
    @67duiker 4 ปีที่แล้ว

    I would use =SORT(FILTER(CHOOSE({1\2};TSal[Name];TSal[Position]);TSal[Salary]>J2)) as this gives more visibility in the formula which columns are chosen. But Your trick has the advantage that it is easier to change between columns when you need to. I changed the {1,0,0,1} to a range and could then choose which columns i wanted to see. Very useful trick

    • @67duiker
      @67duiker 4 ปีที่แล้ว

      I just tried the following formula CHOOSE(+TRANSPOSE(SORTBY(FILTER(T6:T10;S6:S10>0);FILTER(S6:S10;S6:S10>0)));TSal[Name];TSal[Start Date];TSal[Birth Date];TSal[Position];TSal[Salary]) where I put in r6 to r10 the names of the columns and in 26 to s10 the columns i wanted with 0 to 5 to indicate where i wanted them(0 not shown). as help-column in t6 to t10 (1,2,3,4,5) and now I can choose which columns i want in which order. Adding a filter is easy at that point.. and with a formula for the headers +TRANSPOSE(SORTBY(FILTER(R6:R10;S6:S10>0);FILTER(S6:S10;S6:S10>0))) it's a complete table. I like playing with your examples :-)

  • @remars-xcel
    @remars-xcel 4 ปีที่แล้ว +1

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

  • @a101525
    @a101525 4 ปีที่แล้ว

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

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว

      Glad it was helpful, Angelo!

  • @luisabugaber4959
    @luisabugaber4959 4 หลายเดือนก่อน

    Thaaaaaaaaaaaaaaaaaaaaanks! I've been looking for this for a loooong time :)))

  • @wayneedmondson1065
    @wayneedmondson1065 4 ปีที่แล้ว

    Hi Leila.. great trick.. FILTER FILTER with a list of array constants to extract the desired columns.. nice! This solution works great if your data table is static in term of columns. But, if you insert columns in the data table in the future, the array constants within the curly brackets cannot be made to be dynamic and so the formulas would then break until or unless modified. To avoid this problem and maintain maximum flexibility for future design changes, I like to use CHOOSE to assemble the desired non-contiguous columns, as follows:
    Your example cell I5: =SORT(FILTER(CHOOSE({1,2},TSal2[Name],TSal2[Position]),TSal2[Salary]>J2),2)
    Your example cell O5: =SORT(UNIQUE(CHOOSE({1,2},TSal2[Department],TSal2[Position])))
    Your example cell I13: =CHOOSE({1,2},INDEX(SORT(FILTER(CHOOSE({1,2,3},TSal2[Name],TSal2[Position],TSal2[Salary]),TSal2[Salary]>J2),3,-1),,1),INDEX(SORT(FILTER(CHOOSE({1,2,3},TSal2[Name],TSal2[Position],TSal2[Salary]),TSal2[Salary]>J2),3,-1),,2))
    Granted, the formula in cell I13 may be a bit more complex than FILTER FILTER, instead using CHOOSE to assemble the 3 columns to sort and then INDEX to extract the 2 columns to present, but I always thank myself for building in the added flexibility for future design changes. My formulas above will all withstand column insertions in the data table without the need of modification. The FILTER FILTER with {} list formulas would require rebuilding. Again.. not better or worse.. just different potential, depending on whether or not there is a chance the underlying data table might change in the future. A good parallel is VLOOKUP vs. either XLOOKUP or INDEX/MATCH. VLOOKUP is less flexible to future changes, but perfectly functional if you know the data table design will remain static. As always, thanks for the video and the inspiration to create and share. Always good learning and fun at your channel :)) Thumbs up!!

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว +2

      Thanks Wayne for sharing. Yes that’s correct. Choose function is great - it’s the one I teach in the DA course for these cases. The good thing about choose aside from being flexible with new columns is that you can get columns in the opposite order as well. Another alternative is to use Index and sequence. Many thanks for your feedback 😊

    • @wayneedmondson1065
      @wayneedmondson1065 4 ปีที่แล้ว

      @@LeilaGharani Thanks Leila.. I intended to mention that CHOOSE also gives flexibility of column order.. glad we are on the same page. I really appreciate all your videos and courses. Though my work and schedule get in the way of bearing down like a full time student, I consume new content every day and it adds up over time. Keep up the great work :)) Cheers!!

    • @PabitraJanajana
      @PabitraJanajana 4 ปีที่แล้ว

      Hi! Leila, you doing very great and I am very thankful for what you are doing. I am very helpful with your videos. Now I am requesting you to help me on that my data has multiple line of a product with different quantity for a day. How I use filter function with some other formula to get filter data with sum of data. It's very challenging to me. Please help.

  • @sendram2005
    @sendram2005 4 ปีที่แล้ว

    You are a genius 👍🏻

  • @ruslansuleymanov2606
    @ruslansuleymanov2606 2 ปีที่แล้ว

    Owesome Leila. It just keeps inspiring!😊

  • @AP2922
    @AP2922 4 ปีที่แล้ว +1

    @leila I'm happy you liked that trick!
    But you took it and taught me new things you could do with it that I hadn't considered. When I saw the choose function method you teach for this type of problem I was sure that was the better way but your Bonus Tip example shows why we can't rely on just one formula. Both formulas have their place.

    • @LeilaGharani
      @LeilaGharani  4 ปีที่แล้ว

      Thanks Adam for sharing this great idea! I'm sure it will be helpful for many of us.

  • @SaravSood
    @SaravSood 3 ปีที่แล้ว

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

  • @TheMrDoch
    @TheMrDoch ปีที่แล้ว

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

  • @eljimsafety3652
    @eljimsafety3652 3 ปีที่แล้ว

    QUEEN OF EXCEL!

  • @AdamKaraszewski-b4x
    @AdamKaraszewski-b4x 2 หลายเดือนก่อน

    Thanks a lot for the mask {1;0;1;1;...} tip! Adapted it to "Chose arbitrary columns with arbitrary order, by their names". More readable.
    I avoid 'abstract' numerical masks with tables, so there is an example with named column mask, and you set cols order, too :)
    Example - I needed to select ordered unique records with my own column order and selection, after filtering them :
    =SORT(UNIQUE(""&CHOOSECOLS(
    FILTER( myTab; (myTab[myColX]=myTab[myColY]+myTab[myColZ])*(myColA=0) );
    MATCH({"myColX"; "myColZ"; "myColY"; "myColA"}; myTab[#Headers]; 0));FALSE;FALSE)
    ;4)

  • @adaliciojunior9792
    @adaliciojunior9792 4 ปีที่แล้ว

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