Write your own Excel functions

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

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

  • @marvinkoller5273
    @marvinkoller5273 3 หลายเดือนก่อน +1

    I am so glad that a caliber like you shares his knowledge. A big thank you to you!

  • @elbadlis
    @elbadlis 4 หลายเดือนก่อน +3

    Wow, this is a university-level lecture. Thank you for sharing your knowledge, Diarmuid. I'm looking forward to the next video in the series.

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

    I'm looking forward to this series too. I've already created my functions workbook with my most used functions. Looking forward to adding to it with new ideas. Thx Diarmuid.

  • @Nicolas-gt9qf
    @Nicolas-gt9qf 3 หลายเดือนก่อน

    Also with VBA you can only see the names of the arguments you can pass to the function with the use of Ctrl + Shift + A which is not very ergonomic for the end user, well you can technicaly also use the Fx API but it's not great either. Or you have to open the VBA editor to see what the function wants. Great video.

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

    thank you mr. Diarmuid for the effort you put in your videos

  • @SN-us5se
    @SN-us5se 4 หลายเดือนก่อน

    Looking forward for more videos in this series.

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

    Thanks for the video. It made me take a look at a complex custom function written in VBA and consider converting it to a LAMBDA function. Long story short, on 10,000 rows the LAMBA version takes 10% as much time to calculate as the VBA version. That's huge.

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

      That's great - congrats!

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

    I'm looking forward to the series, thank you for posting

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

    Excited for next videos, thanks for the efforts!

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

    Can't wait to learn from your series✨
    Thanks for sharing a valuable content , I always learn something new on each videos on your playlist 🚀

    • @DimEarly
      @DimEarly  4 หลายเดือนก่อน +1

      Thanks Christian, that's always so good to hear!

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

    Thanks for sharing :)
    14:10 interesting point there, I think to make that a reality people will need to document their lambdas (to counter the benefit of transparency when you can see exactly how things work), which isn't a hard thing to do but requires discipline

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

      Totally agree! I'll be talking more about documentation later in the series... I've seen some pretty interesting approaches people have taken to it.

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

    Looking forward to this series!

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

    Diarmuid.. great introduction on Lambda functions. Look forward to your next video on how to create and save those custom functions. I have noticed lately that i have found myself writing the same Lambda functions over and over again to extract or clean data but now i have the need to save them and re-use them instead of writing them from scratch over and over . A few months ago, i had to create a Cartesian joint stitching 3 tables together using lambda helper functions and that was a drudgery. That will be my first custom function to save. Thanks

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

      It’s definitely worth having some good ways to reuse them, and I will talk about that down the line (but I’m planning to start very basic!). For me, I keep a file with LAMBDAs I regularly use in my pinned file list so I have it whenever I need it - but I’m starting to be won over by Team GitHub / Gist as a better way of sharing with others.

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

      HI Diarmuid! Thanks for your reply. Are you going to walk us through on how to save the Lambdas in Github? I guess you need to create an account for that. Anyway, I am anxiously waiting for your next video. Regards

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

    This is awesome! I always like to see how functions like LET and LAMBDA can be put to better use for practical applications. My field is Mechanical Engineering, and I have learned so much from your content that I apply in my work every day. The most used LAMBDA I have written so far is a simple crossproduct calculation. I know stuff like Octave and Python can do it natively, but my colleagues dont know how to program, so my work can't be documented for everyone to use, but Excel can.

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

      Thanks Josh - it's always good to hear that someone has found my stuff helpful!

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

    Very much looking forward to this series! I think I know the answer from reading a couple of comments, but I'd love to know if there is a way to have these added to all workbooks by default.

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

      It might be possible to have them appear in any new file you create (you can change the template that new files open from, so maybe you could add that), but I doubt you’d want to have them injected into every existing file you open even if they’re not being used.
      There are some pretty zippy ways to import them though…

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

    LAMBDA is very useful and together with dynamic arrays completely changes making of models. Only one thing is missing for me - there is no possibility to put comments in the code to improve readability. Yes, you can use some hack, but native support would be much better.

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

      I’m always glad to meet a fellow LAMBDA fan! : )
      It’s not *exactly* native, but take a look at the Advanced Formula Environment (I’ll also talk about it later in the series). It’s helpful for development, and allows for in-line comments (although I think they don’t get saved in the name manager, so they’re only visible in the AFE).
      If you use LET (another topic I’ll come to later in the series!), you can also use comment variables, as in
      LET(calc, a+b/c, calc_note, “b/c is the performance adjustment”, …

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

    wonderful ❤

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

    Often, in the context of a large volume of data, we need functions that are optimal in terms of execution and runtime. Of course, the time depends on the amount of data as well as the method of solving. In this context, we need a time counter. In Excel, there are add-ons for this or VBA. Considering that I am not a fan of VBA, I looked for a solution within a LET(). Please let me know if this approach seems okay to determine / approximate execution time.
    =LET(ts, NOW(),
    matrix, MAKEARRAY(300000, 10, LAMBDA(r,c, SUM(r,c))), summ, SUM(matrix),
    tf, NOW(),
    HSTACK(ts, summ, tf))

    • @DimEarly
      @DimEarly  4 หลายเดือนก่อน +1

      Yes! I think I learned this technique from Bo Rydobon or Bhavya Gupta originally.
      Since the running times are usually pretty fast, I think the way Bo usually does it now is something like this:
      LET(st, NOW(),
      mainCalc, ,
      HSTACK(mainCalc, TEXT(NOW()-st, “s.00”))
      That way it gives you the result and the run time in seconds to 2 decimal places (I think that’s the limit of the accuracy).

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

      @@DimEarly thank you for detailed message. Yeah, accuracy seems to be a issue...

    • @andrew_ngai
      @andrew_ngai 3 หลายเดือนก่อน +2

      @@DimEarly I used this the other day. For the accuracy issue, I suggest just asking Excel to calculate it many times, e.g. instead of do "BYROW(SEQUENCE(10000), LAMBDA(x, ))"

    • @DimEarly
      @DimEarly  3 หลายเดือนก่อน +1

      Haha - my solution to the accuracy issue is not to worry about

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

    Great!!

  • @sledgehammer-productions
    @sledgehammer-productions 4 หลายเดือนก่อน

    the lambda to make a lambda..... 😀

    • @DimEarly
      @DimEarly  4 หลายเดือนก่อน +1

      Haha - have you seen it? It’s coming… but I thought I would make for an intimidating start to the series! 😂

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

    😃