Excel FILTER Function TRICK for Non Adjacent Columns

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024

Комментарии • 745

  • @LeilaGharani
    @LeilaGharani  8 месяцев назад

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

    • @bobgreenfield9158
      @bobgreenfield9158 3 месяца назад

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

    • @ChaplainRMCSJ
      @ChaplainRMCSJ 27 дней назад

      I already have the file, thank you.

  • @rogerhendriks999
    @rogerhendriks999 4 года назад +56

    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 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 года назад +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 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!

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

  • @johnborg5419
    @johnborg5419 4 года назад +12

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

  • @a.achirou6547
    @a.achirou6547 10 месяцев назад +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.

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

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

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

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

  • @gunaybabacanova
    @gunaybabacanova 5 месяцев назад

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

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

  • @dennisd5776
    @dennisd5776 4 года назад

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

  • @mdtechpk739
    @mdtechpk739 4 года назад +7

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

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

  • @Fahad-AlGhamdi
    @Fahad-AlGhamdi 4 года назад +1

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

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

  • @krishnamurthy7733
    @krishnamurthy7733 4 месяца назад

    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.

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

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

  • @danielmpinga4102
    @danielmpinga4102 6 месяцев назад

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

    • @LeilaGharani
      @LeilaGharani  5 месяцев назад

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

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

  • @mikedodds1321
    @mikedodds1321 2 года назад

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

  • @mcpett5742
    @mcpett5742 11 месяцев назад +1

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

  • @tammystucki3152
    @tammystucki3152 2 года назад

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

  • @ronaldarvin414
    @ronaldarvin414 3 года назад +3

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

  • @favreje
    @favreje 4 года назад

    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!

  • @mmjjagon5419
    @mmjjagon5419 2 года назад +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 2 года назад

      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

  • @RZA12
    @RZA12 7 месяцев назад

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

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

  • @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 7 месяцев назад

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

  • @SimonLangridge-no5gu
    @SimonLangridge-no5gu 5 месяцев назад

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

  • @GhostVale4698
    @GhostVale4698 Год назад

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

  • @gloystar
    @gloystar 8 месяцев назад

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

  • @Galileo2pi
    @Galileo2pi 11 месяцев назад

    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  11 месяцев назад

      Thank you so much for the kind words!

  • @tontolim1043
    @tontolim1043 2 года назад

    Thanks SOLVED my problem!!!

  • @les5892
    @les5892 Год назад

    Very helpful tricks! Thank you!

  • @srvithal38
    @srvithal38 2 года назад

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

  • @felipelandim4619
    @felipelandim4619 2 года назад

    Awesome! Helped me a lot here at work.

  • @LearnExcelVBA
    @LearnExcelVBA 4 года назад

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

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

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

  • @RenataPortoSampaio
    @RenataPortoSampaio 7 месяцев назад

    AMAZING. THANK YOU!

  • @kulbhushangaur6298
    @kulbhushangaur6298 2 года назад

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

  • @lmajiedmary
    @lmajiedmary 2 года назад

    Just what the doctor ordered. Thank you!

  • @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 Месяц назад

      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.

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

  • @patrickleavydatadrivenfina1491

    this trick is AMAZING!

  • @luisabugaber4959
    @luisabugaber4959 Месяц назад

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

  • @saptharishi1974
    @saptharishi1974 3 года назад

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

  • @m.raedallulu4166
    @m.raedallulu4166 2 года назад

    Curly Bracket gave FILTER function a tremendous power!

  • @rperea73
    @rperea73 Год назад

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

  • @nishasukhla09
    @nishasukhla09 2 года назад

    It's simple & classic , thanks

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

  • @gintomino4136
    @gintomino4136 4 года назад

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

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

  • @sherlinejeanbaptiste9443
    @sherlinejeanbaptiste9443 2 года назад

    You are the best Leila.

  • @ronalddcunha6136
    @ronalddcunha6136 6 месяцев назад

    Thank you Laila... very useful video

  • @hoserbob
    @hoserbob 2 года назад

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

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

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

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

  • @johnvodopija
    @johnvodopija Год назад

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

  • @sharadpunita
    @sharadpunita Год назад

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

  • @keithdutch5295
    @keithdutch5295 2 года назад

    Exactly what I was looking for. Thanks Leila!

  • @ugabrew
    @ugabrew 7 месяцев назад

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

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

  • @ruslansuleymanov2606
    @ruslansuleymanov2606 2 года назад

    Owesome Leila. It just keeps inspiring!😊

  • @HusseinKorish
    @HusseinKorish 4 года назад

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

  • @elchinshabanov7544
    @elchinshabanov7544 Год назад

    Amazing voice and the way of diction

  • @DougHExcel
    @DougHExcel 4 года назад

    Simple and elegant tip!

  • @JithinRTrivandrum
    @JithinRTrivandrum 4 года назад

    Thanks for the information and trick.

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

  • @remars-xcel
    @remars-xcel 4 года назад +1

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

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

  • @niteshmech1
    @niteshmech1 Год назад

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

  • @Sarunsherief
    @Sarunsherief 4 года назад +1

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

  • @izkamarkizka
    @izkamarkizka 2 года назад

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

  • @operamaniak81
    @operamaniak81 2 года назад

    Mind blown! I've immediately used it!

  • @SaravSood
    @SaravSood 3 года назад

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

  • @vishalbhati912
    @vishalbhati912 4 года назад

    U r genius of excel

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

  • @pupycron4302
    @pupycron4302 3 года назад

    Fabulous and very simply explained. This is great.

  • @alexpedrosantos
    @alexpedrosantos 2 года назад

    Absolutely fantastic. Thank you for teaching.

  • @math2693
    @math2693 3 года назад

    This video has made my life easier

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

  • @growwmore1205
    @growwmore1205 3 года назад

    Thanks a lot for the great tip.

  • @yogeish
    @yogeish 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 :)

  • @rambhandari7078
    @rambhandari7078 Год назад

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

  • @nonoobott8602
    @nonoobott8602 4 года назад +1

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

  • @simongray6292
    @simongray6292 2 года назад

    Thanks Leila, I discovered the new array functions in 365 can include formula as a return on the filtered list.
    For example =SORT(FILTER(CHOOSE({1,2,3,4,5,6},Backorder[Item number],XLOOKUP(Backorder[Item number],ReleasedData[Item number],ReleasedData[Item name],0),Backorder[Number],Backorder[Quantity],Backorder[Prod schedule start date],Backorder[Revised Date]),((Backorder[Prod schedule start date]0)),"??"),3,1)
    In this formula I was able to bring in data from a seperate table that matched the filtered results in column 1 in this example. The use of the Choose function for the array allows any order of columns to be chosen as a bonus.
    I have not found an example of formula used in a dynamic array return on the net so thought you might be interested to research it and maybe add into a tutorial along the way.
    I would also be interested in the effects of the new array functions on excel performance and calculation speeds.
    I'm loving your tutorials and I am sure I will sign up for one of your courses soon.

  • @McGoerk
    @McGoerk 3 года назад +6

    Thanks for that great Video!
    Unfortunately it doesn't seem to work on the German version of Excel. We use ; instead, is there a trick here? When I use a , or ; or \ inside the curly brackets I get an error.
    Could someone help me and give me a hint?

    • @denisovan
      @denisovan 3 года назад +4

      I use en excel with de settings. My separator is ; (semi colon).
      In curly braces \ worked for me.
      i.e. {1\0} >> 2 columns. Number of arguments in curly braces must match with number of columns filtered.

  • @TPzita
    @TPzita 2 года назад

    Oh God… I would do this with pivots … always learning ..

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

  • @david.miskick
    @david.miskick 2 года назад +14

    For those who use comma as decimal, you can write 'include part' like this {TRUE\FALSE\TRUE\FALSE etc. }

    • @seanbtw
      @seanbtw 2 года назад +1

      Thank you so much for this, I've been searching for hours why it didn't work for me!

    • @slabitgratuit
      @slabitgratuit Год назад

      Good job, brother! Tks.

  • @Giorgalis
    @Giorgalis Год назад

    unbelievable, well done

  • @amy19355
    @amy19355 3 года назад

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

  • @nonoobott8602
    @nonoobott8602 4 года назад +2

    This is sure an amazing solution. However, another way one could filter 2 or more non-adjacent columns is using a combination of the CHOOSE and SEQUENCE function. For this example, we could've filtered the name and position earning more than 120k thus:
    =FILTER(CHOOSE(SEQUENCE(,2),TSal2[Name],TSal2[Position]),TSal2[Salary]>J2)
    OR
    =FILTER(CHOOSE({1,2},TSal2[Name],TSal2[Position]),TSal2[Salary]>J2)

    • @LeilaGharani
      @LeilaGharani  4 года назад +2

      Thanks Nono Obott. I like the Choose version too. It's the version I cover in the course. An alternative is to also use INDEX with Sequence. So great to have so many versions 😀

    • @nonoobott8602
      @nonoobott8602 4 года назад

      @@LeilaGharani Thank you Leila. I've learned so much from you. You have no idea. I'll l definitely subscribe for your advanced courses. Thanks for sharing from the wealth of knowledge you've got on Excel, you're phenomenal

  • @ashoksahu9546
    @ashoksahu9546 4 года назад

    Excellent video.