The Excel Formula I Can’t Live Without

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

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

  • @PRHC38
    @PRHC38 2 месяца назад +8

    Dude! All do respect...lol. You saved my hide. Been trying to figure out how to do this with multiple criteria into one cell for about two weeks now. I was not able to accomplish this through any other video. My friend this is amazing. Can't thank you enough. Pass the collection plate around for this one...lol.

    • @ExcelCampus
      @ExcelCampus  2 месяца назад +2

      Glad it helped. 😀

    • @PRHC38
      @PRHC38 2 месяца назад

      @@ExcelCampus absolutely! One thing however. If possible please add how to format using the “unique” function. I was able to create the formula based on what you have here but then I saw that I had duplicates. Then I remembered to use “unique” in order to correct that. Other than that this tutorial is perfect! Thanks again.

    • @ExcelCampus
      @ExcelCampus  2 месяца назад +1

      Great suggestion, Toure! For anyone else reading this, you can wrap FILTER in UNIQUE to remove duplicates on the results of FILTER.
      =UNIQUE(FILTER())
      I'm planning to do a follow-up video on FILTER based on all the great questions and suggestions in the comments here. I'll include this example.
      Thanks again and have a nice day! 🙂

  • @TheBtrivedi
    @TheBtrivedi 2 месяца назад

    Found your Channel Today. This video looks like herbs and therapy to me. Great upload. Thank you so much. ❤ Looking forward for more.

  • @PaulEBrownbill
    @PaulEBrownbill 2 месяца назад

    Excellent filter function, liking the and or logic tips, and hard coding as much of the formula as possible. Paul

  • @mikolajs6067
    @mikolajs6067 12 дней назад

    great! thank you

  • @chazhinkeldey2362
    @chazhinkeldey2362 2 месяца назад +1

    Wow! Thanks for this! I literally needed it last night and walked in this morning and had this video in my inbox!!

    • @ExcelCampus
      @ExcelCampus  2 месяца назад

      Amazing! Thanks for sharing Chaz. I'm happy to hear it helped. 🙏

  • @deepakmirchandani1348
    @deepakmirchandani1348 2 месяца назад

    great video sir. thanks.
    further how to use filter function for approximate match ?. please help

  • @rrki
    @rrki 2 месяца назад +2

    Great material. Thanks John

  • @potatocraftd6629
    @potatocraftd6629 2 месяца назад

    I use this filter function for dynamic live reports

  • @IvanCortinas_ES
    @IvanCortinas_ES 2 месяца назад

    Excellent tutorial, as always, Jon. Very interesting example using ARRAYTOTEXT combined with FILTER. Thanks for sharing.

  • @bbotzong
    @bbotzong 2 месяца назад +2

    Nice tutorial, Jon. Thanks for sharing!!!!!

  • @heatherr5191
    @heatherr5191 2 месяца назад

    GREAT examples, and very clear explanation - thanks as always Jon. This is going into my current set of review files to help me remember this new way to do things.

    • @ExcelCampus
      @ExcelCampus  2 месяца назад

      Thanks Heather! I'm happy to hear you'll be adopting these techniques. 😊

  • @OneToothedWonder
    @OneToothedWonder 2 месяца назад

    Great tutorial. TYSM.

  • @michael6malone
    @michael6malone 2 месяца назад

    Thank you Jon. That was very well explained. I feel like an expert :)

  • @chrism9037
    @chrism9037 2 месяца назад +2

    Nice video and very well-explained, thanks Jon!

  • @virginia555
    @virginia555 2 месяца назад +1

    Super useful, thank you

  • @bennyjulong2033
    @bennyjulong2033 2 месяца назад +1

    Awesome ! It's very useful tip to me for my daily routine work Thanks a lot ❤

    • @ExcelCampus
      @ExcelCampus  2 месяца назад

      I'm happy to hear it. Thanks Benny! 🙌

  • @warrenanderson412
    @warrenanderson412 2 месяца назад

    As always...great content!

  • @yyusof78
    @yyusof78 2 месяца назад

    Marvelous mr Jon

  • @angelaisland4036
    @angelaisland4036 2 месяца назад

    Great information as always! Thanks Jon!

  • @tomjun8945
    @tomjun8945 2 месяца назад

    Very helpful video! Thank you for your content.

  • @KrisArmstrong-n9o
    @KrisArmstrong-n9o 2 месяца назад

    Love! Love! Love! ❤❤ Thanks!

  • @nicolebrocke8989
    @nicolebrocke8989 2 месяца назад +1

    Thank you for this video! I was just trying to use this function for the first time today! Perfect timing! Is there a way to use the filter function with the sort function AND sort the data in a custom order (not ascending or descending)?

    • @ExcelCampus
      @ExcelCampus  2 месяца назад

      Great question, Nicole! Yes, it's definitely possible. When you say custom order, do you want to sort ascending/descending based on another existing column in the source table?

    • @nicolebrocke8989
      @nicolebrocke8989 2 месяца назад

      Another column in the source table, yes. However, not ascending or descending but rather a specific custom order.

    • @ExcelCampus
      @ExcelCampus  2 месяца назад

      Thanks for clarifying. So, yes, this is possible using the SORTBY function. We need to sort both the array and include arguments withing FILTER first. Basically, we sort then filter. This means SORTBY must be used twice.
      So the formula looks something like the following.
      =FILTER(SORTBY(),SORTBY()=B4)
      This will return the sorted arrays to filter, and filter criteria "=B4" can be applied to the sorted array.
      To do a custom sort we can use the XMATCH function to look up and return the row number on the custom sorted list.
      Here's an example formula from the Tables example in the video at 3:54.
      =FILTER(SORTBY(tblContacts3[[Contact Name]:[State]],XMATCH(tblContacts3[State],P7:P14)),SORTBY(tblContacts3[Customer Name],XMATCH(tblContacts3[State],P7:P14))=B4)
      I have a unique list of the States in a custom order in P7:P14.
      XMATCH is looking up each value in the state column in that list and returning the row number to SORTBY.
      I'm planning a follow-up video on advanced techniques for FILTER and I'll include this example.
      I hope that helps. Thanks again and have a nice day! 🙂

    • @nicolebrocke8989
      @nicolebrocke8989 2 месяца назад

      This is very helpful! Thank you for taking the time to respond! I look forward to watching your follow up video.

  • @35jays
    @35jays 2 месяца назад +1

    Thanks!!

  • @WaqasAhmed-gj3sq
    @WaqasAhmed-gj3sq 2 месяца назад

    Which software you use for video effects, editing and transitions?

  • @H4XOR23
    @H4XOR23 2 месяца назад

    Is there any way I can schedule teams meeting from excel from tables in spreadsheet?

  • @SandeepTiwari-dp2wx
    @SandeepTiwari-dp2wx 2 месяца назад +1

    Hello Jon, thanks this is really very helpful.
    But how to get details if my required column are not in a sequence. eg. Contact Name is column c and phone number is column h...so on.
    Please help.. thank you 🙏

    • @ExcelCampus
      @ExcelCampus  2 месяца назад

      Hi Sandeep, Great question! You can still use CHOOSECOLS and specify the column numbers out of order. For example, you could use 1,4,2 for the column numbers to return the State column before the Phone Number column. I talk about CHOOSECOLS at 5:31 in the video.
      I hope that helps. Thanks again and have a nice day! 🙂

  • @kellershouse
    @kellershouse 2 месяца назад +2

    When you are using the ArrayToText could you use an ALT ENTER to delimit the results to the same cell but with a formatted wrap text. So the cells would expand with multiple values?

    • @ExcelCampus
      @ExcelCampus  2 месяца назад +1

      Great question, Kent! Yes, there are few ways to go about this.
      You can use the CHAR(10) function as a delimiter for TEXTJOIN. Use TEXTJOIN instead of ARRAYTOTEXT so we can specify the delimiter.
      The 10 in CHAR(10) returns a line break as the delimiter between each value.
      The formula looks like the following.
      =TEXTJOIN(CHAR(10),TRUE,FILTER(tblContacts6[[Contact Name]:[Phone Number]],tblContacts6[Customer Name]=B4))
      You must apply Wrap Text formatting to the cell and increase the row height to see the results on multiple lines within the cell.
      Since the array for FILTER contains two columns, the results will look like the following.
      Ketty
      5552264675
      Justine
      5552879911
      Inger
      5553794109
      Jimmy
      5554385379
      If you want to get both name and phone number on the same line, then you can use BYROW with LAMBDA to first join each row with a delimiter, then join the rows with a line break. Here is what that formula looks like.
      =TEXTJOIN(CHAR(10),TRUE,BYROW(FILTER(tblContacts6[[Contact Name]:[Phone Number]],tblContacts6[Customer Name]=B4),LAMBDA(row,TEXTJOIN(", ",TRUE,row))))
      And the results will look like the following.
      Ketty, 5552264675
      Justine, 5552879911
      Inger, 5553794109
      Jimmy, 5554385379
      I hope that helps. I'll do a follow up video on these techniques. I think they are great ones to know for certain scenarios.

  • @oluwapelumiaroboto5382
    @oluwapelumiaroboto5382 2 месяца назад

    Please share the link to the file.

  • @you_are_kidding_me_right
    @you_are_kidding_me_right 2 месяца назад +1

    Can a drop down box be done for filtering contacts where you can choose from the drop down?

    • @ExcelCampus
      @ExcelCampus  2 месяца назад +1

      Great question! Yes, I talk about adding a drop-down list at 3:03 in the video. You can use the same technique for filtering contacts instead of customer/company names.
      If you want to only display contacts in the drop-down for the selected customer, this can also be done. It's typically referred to as dependent drop-down lists.
      I'm planning a follow-up video on advanced techniques for FILTER and I'll include this one as an example.
      I hope that helps. Thanks again and have a nice day! 🙂

    • @you_are_kidding_me_right
      @you_are_kidding_me_right 2 месяца назад

      @@ExcelCampus Thanks!!!💯

  • @vinc.7765
    @vinc.7765 2 месяца назад +1

    Very useful! Is it possible to have the timestamps?

    • @ExcelCampus
      @ExcelCampus  2 месяца назад +1

      Thanks for the reminder, Vin! We just added the timestamps for chapters. 👍

  • @richardhay645
    @richardhay645 2 месяца назад +6

    One problem with CHOOSECOLS/ROWS is that they don't accept cell references. If you add or delete rcolums/rows the formulas break. Also clicking on a column name is more convenient than counting columns in a many-column data set

    • @ExcelCampus
      @ExcelCampus  2 месяца назад +8

      Great point, Richard! We can use the XMATCH function within CHOOSECOLS to help prevent this issue. The formula would look like the following.
      =FILTER(CHOOSECOLS(tblContacts3[[Contact Name]:[State]],XMATCH(C3:E3,tblContacts3[[#Headers],[Contact Name]:[State]])),tblContacts3[Customer Name]=B4)
      XMATCH will look up all three header values in C3:H3 in the table that contains the source data, and return an array of column numbers {1,2,4} to CHOOSECOLS.
      This allows for columns to be inserted/deleted and also more flexibility with what is displayed in the results.
      I'll do a follow up video on more advanced techniques and include this one.
      Thanks again and have a nice day! 🙂

    • @richardhay645
      @richardhay645 2 месяца назад +4

      @ExcelCampus yes!! I'm down for a video on as many advanced topics with FILTER as you can come up with. I'm also down with Microsoft modifying FILTER to accept cell references. Finally I'm down with trying CoPilot to see if it can duplicate your EXMATCH construction to save me a bunch of keystroks!! Thanks for your help.

    • @viktorasgolubevas2386
      @viktorasgolubevas2386 2 месяца назад

      @@ExcelCampus
      Great, Jon!
      Actually, in most cases of "CHOOSECOLS/XMATCH" we could reference just a table instead of a structured diapason
      =FILTER(CHOOSECOLS(tblContacts3, XMATCH(C3:E3, tblContacts3[#Headers])), tblContacts3[Customer Name]=B4)

    • @viktorasgolubevas2386
      @viktorasgolubevas2386 2 месяца назад +1

      @@ExcelCampus
      Also, in case your target non-adjacent header is an ordered (important) subset of the source header, I'm using COUNTIF technique - demo of 2-dimensional slice and dice with FILTER :))
      =FILTER(FILTER(tblContacts3, COUNTIF(C3:E3, tblContacts3[#Headers])), tblContacts3[Customer Name]=B4)

    • @rihanfz9900
      @rihanfz9900 6 дней назад

      👍

  • @alcol72-0
    @alcol72-0 2 месяца назад +1

    Is it just me or 0+1 should equal 1 at 12:18? Anyways, thanks Jon for another great video!

    • @ExcelCampus
      @ExcelCampus  2 месяца назад

      You are correct. Typo during the editing process. Sorry about that! Thanks for letting us know. 🙌

  • @ashokgaddam8996
    @ashokgaddam8996 2 месяца назад

    Nice

  • @sanketv1
    @sanketv1 2 месяца назад +1

    Filter is an array function , means it will display #SPILL error if list goes beyond available space below it. Is there a way to restrict the list of rows it displays so we will not get #SPILL error

    • @ExcelCampus
      @ExcelCampus  2 месяца назад +1

      Great question, Zohar! Yes, we can use the TAKE function to limit the number of rows.
      =TAKE(FILTER(), 2)
      That formula will return the first 2 rows from the results of FILTER.
      You can specify a negative number if you want to return the last rows from the bottom instead.
      I'm planning a followup video on advanced uses for FILTER and I'll include this example.
      I hope that helps. Thanks again and have a nice day! 🙂

  • @redhaakhund1271
    @redhaakhund1271 2 месяца назад

    👍👍👍👍👍🙏