Dynamic Range in SUMIFS & SUMIF functions using XLOOKUP Function. Excel Magic Trick 1836

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

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

  • @GeertDelmulle
    @GeertDelmulle Год назад +9

    OK Mike, this is a game changer for me: I didn’t know that XLOOKUP can break the spell that’s on the “IFS”-functions, you know: the range vs. array conundrum. This has serious implications for writing LAMBDAs.
    Thank you for making this video. We needed this.
    (Others may have known this, but I didn’t)

    • @excelisfun
      @excelisfun  Год назад +3

      Yes, the magic of ranges from INDEX and XLOOKUP : ) There are always hidden secrets that Microsoft and us didn't know would have an application that we didn't know lol

    • @josh_excel
      @josh_excel Год назад +4

      @@excelisfun Wow you know you did good if Geert learned something new :)

    • @excelisfun
      @excelisfun  Год назад +3

      @@josh_excelRight : ) Especially since I have learn so much from Geert already!!!

    • @GeertDelmulle
      @GeertDelmulle Год назад +1

      @@excelisfunMike, bad news.
      I tried both INDEX and XLOOKUP as a wrapper function with the intent to convert a array into a range for SUMIFS to handle properly, but it doesn't work.
      So, no game changer, after testing. I sent you my test file that shows my findings step by step.

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

      @@GeertDelmulle, Thanks for the report, Geert!

  • @realtoast7036
    @realtoast7036 11 месяцев назад +2

    Clipboard trick. Key, especially when building a large LET() formula. Everything right there, like a restaurant menu. Thank you!

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

      Yes!!!!! Restaurant menu simile is perfect : ) : ) : )

  • @mattschoular8844
    @mattschoular8844 Год назад +1

    Thanks Mike, I'll be using a various of sumifs tomorrow to build an inventory scanning solution. Now get out there and ride today. Hopefully your weather is good for BMX Sunday.

    • @excelisfun
      @excelisfun  Год назад +2

      Cool! Have fun creating the inventory scan with all the SUMIFS and SUMIF knowledge : ) Thanks for the BMX Bike well wishes. Yesterday, Saturday, I raced the last Washington state qualifier race and did well. Monday, on my way down to taking care of my elderly Mom, I get to stop at a cool skate park in Oregon : )

  • @makeittrades5750
    @makeittrades5750 Год назад +1

    great video thank you so much. I love this format of people sending requests and you showing how it's done, it is much better than watching random tutorials. Keep them coming!

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

    Thank you, my teacher, and here is a point that I hope everyone knows
    The problem with the SUMIFS, SUMIF, COUNTIFS, COUNTIF, OFFSET, RANK, MAXIFS, MINIFS and some other functions is that they work in some PARAMETER according to the principle
    of Call by Address
    Therefore, they cannot calculate values that come from formulas, and only calculate what comes from a real reference, such as the cell or the defined name, or what happened in the Clip, which is that it is the result of a completely real reference formula.
    If we imagine that the result of XLOOKUP some cells without others,
    SUMIFS will not produce a result,
    On Other hand most Functions in Excel work by Call by Value Principle
    So I hope from all Excel Community demand from MICROSOFT make
    Improved versions of all functions that run on the Call by address principle
    To Call by Value
    And in the future, they don't put functions in Excel that work on this principle

  • @oscarmendez-roca9181
    @oscarmendez-roca9181 Год назад +1

    Great tip Mike, here's another possible solution:
    =SUMIF(TAKE(TAKE(E2:P5,XMATCH(E16,D2:D5)),-1),">"&E17)

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

      Very cool formula : ) : ) Take Take lol

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

      Interesting Solution @oscarmendez-roca9181 . . Thank You for Sharing!
      Best Wishes!

  • @iankr
    @iankr Год назад +1

    Many thanks, Mike. That's a subtle distinction: Range Array 🤔

    • @excelisfun
      @excelisfun  Год назад +1

      Big time subtle : ) : ) You are welcome, Ian!!!

  • @lucaviglio1206
    @lucaviglio1206 Год назад +1

    Nice!!!finally i have understood why sometime i failed using an array formula nested in SUMifs...thanks a lot Mike for this great clarification

    • @excelisfun
      @excelisfun  Год назад +1

      Yes!!! I am so glad this helps!!! I have many other videos on this topic, but this is why I keep sometimes making new videos on old topics : ) : )

  • @rielcuartero3828
    @rielcuartero3828 9 месяцев назад +1

    Easy to follow. And works as advertised. 😂 Awesome!!!

  • @nadermounir8228
    @nadermounir8228 Год назад +1

    Thank u Mike for this awesome video. I encountered the same issue using the filter followed by the SUMIFS function inside of the let function and didn't work since the filter function create an array. I posted the question on Mr Excel message board and I was advised to use the MMult function inside of the let and it worked perfectly

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

      MMULT is the old way we used to do it. INDEX was an old way to avoid MMULT. But XLOOKUP delivers the array we need in SUMIFS and SUMIF : )

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi Год назад +1

    Thanks Mike for this EXCELlent video.

  • @ankursharma6157
    @ankursharma6157 Год назад +1

    Token of Gratitude!
    Best Wishes!

    • @excelisfun
      @excelisfun  Год назад +1

      Thank you very much for your kind donation!!!! : ) : )

  • @ivorilanahorwitz9300
    @ivorilanahorwitz9300 Год назад +3

    What's the difference between a range and array?

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

      In my array formula videos I cover this, The best one, with pdf notes, that explain it all is MECS video #9: ruclips.net/video/6ZnOTGklVsU/видео.html
      Array = 2 or more items
      Array can be:
      range
      array constant
      resultant array
      dynamic spilled array
      Range can be be:
      range of cells.
      This difference matters because internally, Excel treats arrays and ranges differently.

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

      ​@@excelisfun¹1

  • @barttitulaerexcelbart9400
    @barttitulaerexcelbart9400 Год назад +2

    Thanks for this theoretical part ! I see now for the first time that the 3rd argument of SUMIF is optional, never noticed this ! 😉 I still find it difficult to understand what the difference between an array and a range is.....

    • @excelisfun
      @excelisfun  Год назад +1

      Excel interprets an array and range differently:
      Array = 2 or more items
      Array can be:
      range
      array constant
      resultant array
      dynamic spilled array
      Range can be be:
      range of cells.
      This difference matters because internally, Excel treats arrays and ranges differently.

  • @ExcelInstructor
    @ExcelInstructor Год назад +1

    Great video, I learned something today about SUMIF (Honestly i put sumif to the "lost cause" basket of excel functions, cos there are better ways to sum up data.
    also: In Poland we have an Old saying: "Where devil can't, he will send a hen"
    well if you traanslaate it to excel: Where SUMIF Cant he will send SUM"
    Cos with a little effort you can write any SUM function as if it was SUMIFS,
    so anytime I had some problems (which i didnt understand why they wont work) I used SUM Function and it started to work.

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

      Always glad that you can learn some new fun things!

  • @chrism9037
    @chrism9037 Год назад +1

    Thanks Mike, another awesome video!

    • @excelisfun
      @excelisfun  Год назад +1

      You are welcome, Most Consistent and Amazing Teammate Chris M!!!!!

  • @khanabdussabur8604
    @khanabdussabur8604 Год назад +1

    Excellency yours mike. Thanks a lot.

    • @excelisfun
      @excelisfun  Год назад +1

      You are welcome a lot : ) : )

  • @carlo_migliari81
    @carlo_migliari81 Год назад +1

    Thank you so much! I've paused the video for exercise and i've tried to propose my solution. Using FILTER 3 times inside COUNTA you can get the right answer. In my sheet the main table formed by 4 months starts in B2 while the month to choose is in I2 with the hurdle in I4:
    COUNTA(FILTER(FILTER(B3:E21;B2:E2=I2);FILTER(B3:E21;B2:E2=I2)>I4))
    Maybe with LET would be possible to to improve

    • @excelisfun
      @excelisfun  Год назад +1

      Very cool formula!!!

    • @carlo_migliari81
      @carlo_migliari81 Год назад +1

      @@excelisfun Thanks! With LET is easier to read:
      =LET(
      myrange;FILTER($B$3:$E$21;$B$2:$E$2=I2);
      condition;FILTER($B$3:$E$21;$B$2:$E$2=I2)>I4;
      COUNTA(FILTER(myrange;condition)))

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

    Thank you Mike, that was some great information on lookups!

  • @shubhampawar8506
    @shubhampawar8506 Год назад +1

    Amazing Sir ❤

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

      Glad it is amazing for you!!!!

  • @dharmendarrana4191
    @dharmendarrana4191 Год назад +1

    Great Sir.

  • @Bhavik_Khatri
    @Bhavik_Khatri 26 дней назад +1

    Thank you

  • @fernando5166
    @fernando5166 10 месяцев назад +1

    thanks you

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

    Superb sir ❤

  • @sa51421
    @sa51421 Год назад +1

    Amazing

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

      Glad it is amazing for you : )

  • @TheAlwaysGoel
    @TheAlwaysGoel Год назад +1

    Great video Mike can you make video about python in excel

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

      I will not have one out anytime soon. I don't know python, yet ; ) Currently I am writing two books: one about M Code and one about Dynamic Array Formulas. Plus, I am taking care of my elderly Mom. I have no time at all... : ( : ( I can't wait, but it will be a while.

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

    Thanks Mike. That was very interesting!!! :) :)

    • @excelisfun
      @excelisfun  Год назад +1

      The Formula Guy already new this ; )

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

    How would I do it if I need another criteria say in column A that breaks the numbers into different categories? I tried to use the range solution but it didn't like me adding a criteria in a different column.

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

    Could the Microsoft Excel team update the sumifs function to allow arrays? It would be great for example to use choosecols to retrieve columns 1 and 3 and use sumifs to get a sum greater than 45.

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

    Hi Mike, Is there a way I can generate a unique range of 9 digit alpha numeric numbers ?

  • @heshamfouad8886
    @heshamfouad8886 10 месяцев назад

    Hi Mike,
    Thanks for the video,
    Can You help if there is any way I can put this into 2D Spilled Formula,
    For example if I have next to each other Jan, Feb, Mar, Apr, May
    and I want underneath them to be the sumifs for each month in ONE spilled formula,
    So basically I want a magical way to be able to make the sum range to be different in each column of the formula
    (sorry if I am poorly explaining it, if not clear let me know I can share an excel file)

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

    Hello mike, can i ask.. i get problem with calculated field in pivot table why cannot use ?

  • @soumithripavan9260
    @soumithripavan9260 10 месяцев назад

    can we have Alternative Spill array nested formulas for Video Number 735 (Subtotal(9,Offset(,,indirect(row("1:"&colums().........) without using volatile offset function?

    • @soumithripavan9260
      @soumithripavan9260 10 месяцев назад

      * (Subtotal(9,Offset(,,row(indirect("1:"&colums().........)

  • @denisovan
    @denisovan Год назад +1

    Side comment: add picture/cut out of yourself on video your thumbnail. Maybe add some emotions/gestures.
    That might help with youtube algorithm. Mr.Excel, Leila Gharani, Mirinda etc all do that

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

      Thank you for that advice : )

  • @TheAlwaysGoel
    @TheAlwaysGoel Год назад +1

    Great video Mike can you make video about python in excel