Append “ALL” to Top of Sorted Unique List for Data Validation List for SUMIFS Function. EMT 1740

Поделиться
HTML-код
  • Опубликовано: 6 июл 2024
  • Download Excel File: excelisfun.net/files/EMT1740....
    Learn how to use “ALL” as a condition in SUMIFS function to add whole column of numbers, but when a specific product is selected, the SUMIFS adds for just that product. Learn the 4 different types of situations. Then learn how to use Microsoft 365 functions, including the LET function to append the condition “ALL” to the top of a sorted unique list of products.
    1. (00:00) Introduction
    2. (00:29) Intro song
    3. (00:37) Manual method to create unique list with ALL as a condition added.
    4. (01:17) Data Validation list using manual method.
    5. (01:39) SUMIFS Formula #1. Create formula to add whole column when “ALL” is selected. Use IF to use one of two functions: SUM or SUMIFS.
    6. (02:43) SUMIFS Formula #2. Create formula to add only numbers where a product name has 1 or more characters using “?*” criteria. See IF function inside the criteria1 argument of SUMIFS. “ALL” is selected.
    7. (03:53) SUMIFS Formula #3. Add when product has zero or more characters using “*”.
    8. (04:14) SUMIFS Formula #4. Add with Not Empty Criteria using Not Critreria.
    9. (04:28) Append “ALL” to top of sorted unique list. See the functions: LET, INDEX, SORT, UNIQUE, SEQUENCE, ROWS and IF.
    10. (08:03) Ctrl + C, C keyboard.
    11. (08:30) LET Function final formula.
    12. (09:59) Data Validation list using LET function output and the Spilled Range Operator.
    13. (10:11) Add New Data.
    14. (10:31) Summary, Closing and Video Links

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

  • @mattschoular8844
    @mattschoular8844 3 года назад +2

    =LET"Excel Trickery" = "ExcelIsFun". Thanks for the video Mike. That was great.

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

      You are welcome for the Excel Trickery, Matt!!!!!!

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

    Brilliant, thanks for this. I'd spent a good hour or so trying to figure out how to add All to the top of my dynamic dropdown list. I'm so pleased I found your video Mike. Please keep these great videos coming.

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

      Glad it helps, Stephan!!!

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

    I like the way you appended the "ALL" to the dynamic array. Very explicit. Thanks for sharing

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

      You are welcome, Nono!!!

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

    Really awesome Alt D L, spill operator in that, sequence in index for rows(;) perfect combination of logic and formula.

  • @wayneedmondson1065
    @wayneedmondson1065 3 года назад +1

    Hi Mike. Awesome Monday madness with SUMIFS and Data Validation! Building on one of your past lessons, here is another way to create the sorted list of Products with ALL always appearing at the top: =SORTBY(IF(SEQUENCE(COUNTA(UNIQUE(fSales[Product]))+1)>COUNTA(UNIQUE(fSales[Product])),"ALL",SORT(UNIQUE(fSales[Product]),,-1)),SEQUENCE(COUNTA(UNIQUE(fSales[Product]))+1),-1). The fun never ends at ExcelIsFun :)) Thumbs up!!
    PS - A shorter method is to change "ALL" to "" which would naturally sort to the top of the list (using "

    • @excelisfun
      @excelisfun  3 года назад +1

      Thanks, Wayne!! I'll add it to the download workbook so the Team is better : ) : ) : ) : )

    • @excelisfun
      @excelisfun  3 года назад +1

      Go Team!!!!!

    • @wayneedmondson1065
      @wayneedmondson1065 3 года назад +1

      @@excelisfun Awesome! Thanks Mike :))

    • @wayneedmondson1065
      @wayneedmondson1065 3 года назад +1

      @@excelisfun Go Team Go!!!

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

    Masterpiece !!! Thanks Mike:-)).
    I thought that we can use grand total row in Table to get " ALL" and then sort. I mean, type " ALL" in grand total row of the Product column. ( note that, there is one space before "ALL")
    After sorting (inside formula) ," ALL" always will be the first item on our list .
    =TRIM((SORT(UNIQUE(AnswerfSales[[#Data],[#Totals],[Product]])))

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

      Bill Szysz, that is exceedingly clever : ) I LOVE IT!!!! I have added it to the download workbook : ) : ) : ) : ) Go Team!!!!!

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

      This is a good trick. To add this, you go to Table Design then check the box that says "Total Row"

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

    Brilliant stuff as always...

    • @excelisfun
      @excelisfun  3 года назад +1

      Glad you like it, SIMFINSO!!!!

  • @markpodesta4605
    @markpodesta4605 3 года назад +2

    You are the Excel expert! Thank you.

    • @excelisfun
      @excelisfun  3 года назад +1

      Just a guy having fun with Excel ; ) You are welcome, Mark!!!

  • @OzduSoleilDATA
    @OzduSoleilDATA 3 года назад +9

    This is some serious Beast Mode stuff! 😲
    I like that method for getting ALL in the dropdown list.

    • @excelisfun
      @excelisfun  3 года назад +2

      Marshawn Lynch is from Oakland, you know ; )

    • @spilledgraphics
      @spilledgraphics 3 года назад +2

      I agree Oz! Mike goes Above & Beyond 🚀🚀🚀
      Tthis ALL option is ideal for data validations #GoTeam !!!

    • @excelisfun
      @excelisfun  3 года назад +1

      @@spilledgraphics I LOVE the rockets : )

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

      Marshawn Lynch, Beast Mode!!!!!!!!

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

    Splendid!
    Thanks for the great demo of both schools, Mike!

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

      Yes!!! Splendid Both Schools : )

  • @mahipaljain3208
    @mahipaljain3208 3 года назад +1

    I always used asterisk instead of word ALL in drop-down list as I dint want to write a long formula. Learnt a lot from this video

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

      I also have used asterisk most of the time : )

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

    As always all ur excel videos are just awesome..I have personally learnt a lot watching at ur videos..looking forward to more such videos..keep up the good work sir..you are the real excel superstar

    • @excelisfun
      @excelisfun  3 года назад +1

      I am glad to help the Team learn lots of cool things about Excel and have fun doing it : )

  • @darrylmorgan
    @darrylmorgan 3 года назад +2

    Boom!All Super Cool Formulas Especially The LET Function Formula...Thank You Mike :)

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

      You are welcome, darryl. Boom!!! : )

  • @HusseinKorish
    @HusseinKorish 3 года назад +1

    That's Amazing ... it's fun when i use some techniques in a report in my work .... then found Mike explains it in his channel ... but in a better advanced way ( i didn't use LET or "All")... thanks alot Mike ...you still the master

    • @excelisfun
      @excelisfun  3 года назад +1

      Just try to lead the Team to more fun : )

  • @sideshowbobby71
    @sideshowbobby71 3 года назад +1

    I did not know you can use the alt enter in formulas!!! That rocked my world.

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

      Yes, it is a nice and clean trick : ) : )

  • @traceylu5283
    @traceylu5283 3 года назад +2

    I want to watch many times. I like the video.

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

      Glad you like it, TRACEY!!!!

  • @krn14242
    @krn14242 3 года назад +1

    Thanks Mike. Happy Fathers Day.

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

      Thanks original WRH!!!!! Happy Father's day to you too, kevin!!!!!

  • @KevinPGA
    @KevinPGA 3 года назад +2

    Incredibly clever. Thank you Professor!!!

    • @excelisfun
      @excelisfun  3 года назад +1

      You are welcome, Kevin!!!!

  • @kiwikiow
    @kiwikiow 3 года назад +1

    Dynamic data validation list is so amazing. Love it. Thank you Mike 👻👍👍

    • @excelisfun
      @excelisfun  3 года назад +1

      You are welcome!!!! I think I saw some ghost zero in this video. INDEX loves ghost zeroes : )

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

      @@excelisfun I made my drop down list to be dynamic after watching your video. It's awesome. No more updating the list manually.

    • @excelisfun
      @excelisfun  3 года назад +1

      @@kiwikiow Awesome!!!!!!!

  • @wonjinlee93
    @wonjinlee93 3 года назад +2

    sir, your work is a masterpiece

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

      Thanks, Wonjin!! Glad you like it : )

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

    That's incredible :)

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

      Glad you like it, Lucky!!!!

  • @rrrraaaacccc80
    @rrrraaaacccc80 3 года назад +1

    Always excel lent 👍 greetings from Bolivia.

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

      Glad it was EXCELlent for you ; )

  • @lucaviglio1206
    @lucaviglio1206 3 года назад +1

    Another super video Mike💪💪.. Let function is amazing but i really love the old school tricks...

    • @excelisfun
      @excelisfun  3 года назад +1

      Yes, those are important old school tricks that are so useful we should also call them new school ; )

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

      @@excelisfun True :)

  • @johnborg5419
    @johnborg5419 3 года назад +2

    Thanks Mike. Amazing!!! An interesting scenario and a wonderful way of how you got around it. Always learning. : ) : )

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

      We are always learning. Lucky for us!!!!

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

      Formulas are the most fun too : ) : )

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

    So much fantastic and we'll explained information in here, but 9:50 alt+enter just made my life so much easier. Thank you for your content!

    • @excelisfun
      @excelisfun  3 года назад +1

      You are welcome for the content!!!

  • @chrism9037
    @chrism9037 3 года назад +2

    Mike, another great video, go Team!

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

    Thanks a lot for Great Session !

  • @vipinsingh075
    @vipinsingh075 3 года назад +1

    Awesome as always.. learnt so much from you Mike.. thanks for these videos.

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

      You are welcome for the videos, Vipin!!!

  • @deepk82
    @deepk82 3 года назад +1

    Something different and unique!!! 🤩🤩🤩
    This is the USP of your videos. Love this trick! ❤️❤️

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

      What does USO mean ?
      Glad you loved the trick : )

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

      @@excelisfun unique selling proposition

    • @excelisfun
      @excelisfun  3 года назад +1

      @@deepk82 Was I supposed to know that? lol

    • @excelisfun
      @excelisfun  3 года назад +1

      @@deepk82 Thanks for the clarification!!!!

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

    My head hurts; so much to process... Awesome as always!

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi 3 года назад +1

    EXCELlent video as always. Thanks Mike

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

      You are welcome, Fellow Teacher Syed MM : ) : ) : ) : )

  • @vishalchandila
    @vishalchandila 3 года назад +5

    awesome, i don't know where to use it but👍

    • @zeroskiing
      @zeroskiing 3 года назад +1

      🤣

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

      @@zeroskiing It is funny : ) : )

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

      Glad it was awesome-but-no-use yet : )

  • @thomroethke522
    @thomroethke522 3 года назад +1

    Felt old when you referred to SUMIFS as "old school". I still think of it as new.

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

      Me too. I still remember when it was brand new in 2007!!!! Do you remember when it came out then?

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

      @@excelisfun Sure do. It made my life significantly easier. No more concatenation columns.

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

      @@thomroethke522 Fewer SUMPRODUCT, D functions, and that old and crazy SUM IF add-in wizard to build your array formula for you : )

  • @kirtithorat4621
    @kirtithorat4621 3 года назад +2

    Superb!!

  • @knikl
    @knikl 3 года назад +1

    Another awesome video Mike, Thank you = i LET you amaze me ;)

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

      Yes!!!!!! Glad that the LET is awesome : ) : )

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

    THANK YOU THANK YOU THANK YOU!!!!!

  • @tamazightatlas8784
    @tamazightatlas8784 3 года назад +1

    Thanks for your explication

  • @amit12000
    @amit12000 3 года назад +1

    Mike u always great 👍

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

      Glad that I can help you : )

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

    Thank you 😊

  • @GeertDelmulle
    @GeertDelmulle 3 года назад +1

    Nice trick, Mike, good stuff!

    • @excelisfun
      @excelisfun  3 года назад +1

      I like the intros the best : ) : ) : ) : ) Funny, I feel like a latte right now lol

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

      At 1:00 - the quickest way to Paste Values is: right-click, V, or: Menu+V, or Menu,V.
      You know: that Menu key on the keyboard that produces the context menu (just like right-click does).
      Do you see the beauty of this? CTRL+V vs. Menu+V? Just beautiful! :-)

    • @excelisfun
      @excelisfun  3 года назад +1

      @@GeertDelmulle I definitely like that right-click key : )

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

      @@excelisfun LOL! Yeah, I could use one myself, right now. :-)

    • @excelisfun
      @excelisfun  3 года назад +1

      @@GeertDelmulle Only we are in the know lol

  • @vida1719
    @vida1719 3 года назад +1

    It's a great idea of having ALL in drop down list. It would be even greater if Excel allowed to enter formula directly to Data validation window or access unique list from Power Query and return it in drop down list

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

      I agree. It would be MUCH better !!

  • @kishorpanara4191
    @kishorpanara4191 3 года назад +1

    Excellent

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

      Glad it is EXCELlent for you, kishor : )

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

    Old school is love

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

    Wow. Didn’t know that you could get all rows in the INDEX function if you type a zero in the row argument. I learn something new everyday. Many thanks 🙏 for the beautiful LET trick. By the way, do you have any course on Statistics from basic to advanced? I am looking for such a thing and since I really like your didactic abilities, I was wondering if you had something…

    • @spilledgraphics
      @spilledgraphics 3 года назад +2

      ME TOO ! wow!. To your question, he does! check out the playlists section José! Saludos!

    • @josecarlosconejo5724
      @josecarlosconejo5724 3 года назад +2

      @@spilledgraphics many thanks 🙏. Btw I like your name… Recalc or Die!! 😂😂 let’s recalc just in case 🤣

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

      @@josecarlosconejo5724 🤣😂🤣😂🤣😂🤣 🙌

    • @excelisfun
      @excelisfun  3 года назад +2

      INDEX with a zero or omitted: I have that trick in at least 100 other videos. It is a very common trick. Useful too.
      Yes, I have a statistics class and an analytics class. You should watch my 2 minute intro to the excelisfun channel which shows how to find all my classes: ruclips.net/video/l1-1aVgFth4/видео.html

    • @excelisfun
      @excelisfun  3 года назад +2

      Statistics class: ruclips.net/p/PLrRPvpgDmw0ngx_uPhvasTbOWLOztsaBj

  • @ogwalfrancis
    @ogwalfrancis 3 года назад +1

    Wildcards, very amazing, is it possible to sort the drop-down data validation list using the old school method, thanks for the amazing video🙏🙏🙏

    • @excelisfun
      @excelisfun  3 года назад +1

      Yes, but is THE most complicated formula in the old school. I wrote a whole book about array formulas and it took 5 chapters to explain the sort formula. Here is a video about it: Ctrl + Shift + Enter: Excel Array Formulas 20: Extract Unique Lists & Sorting Formulas, ruclips.net/video/J6yeTUFkLzQ/видео.html

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

    Now that VSTACK is available, wouldn't the solution be =VSTACK("all",SORT(UNIQUE(fsales[Product]))) ?

  • @faridPQ
    @faridPQ 3 года назад +1

    Great

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

      Glad it is great for you!!!

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

    Thanku sir for this
    But I tried this on google sheets the spill operator show errors. Will you plz type formulla how to get row no increased in google sheets.

  • @enrikekasijas705
    @enrikekasijas705 3 года назад +1

    Cool video as always but that LET function....you got to be a programmer to use it ;P variable in function... that's sick

    • @excelisfun
      @excelisfun  3 года назад +1

      Yes, it is sort of like programming : ) LET Excel be even more fun with programming : )

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

      I can tell you: once you get used to using LET, you won’t want to do it any other way: just too beautiful!… :-)

    • @enrikekasijas705
      @enrikekasijas705 3 года назад +1

      @@GeertDelmulle I hope so;P I have no Access to Excel 365 yet and I only slighlty licked VBA . I have to get used to it. More videos with LET function are welcome xD even if I don't have those new features I still love watching those mastermind tricks xD

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

    Nice append trick, but overkill in this case. There is a little known trick for extending the dimensions of a dynamic array, simply by using the range operator (colon). In this example, with the unique list located in cell L9#, all you need to do is type “ALL” in cell L8, then append the two simply by referencing the range =L9#:L8

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

      That would be a mind blowing trick if I could get it to work. When I have a dynamic array in a formula I can't type a colon directly after it. When I try to type colon to complete formula, the colon does not appear. How do you do this?

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

      Since this video we have been given new function by Microsoft. So now we can: =VSTACK("ALL",SORT(UNIQUE(AnswerfSales[Product])))

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

      Yes VSTACK is great, but I’ve never had a problem with the range reference myself. Just sat down to test again, and it works fine. To use this type of reference with Data Validation, you would need to define a name in Name Manager, and it would refer to =Sheet1!$L$9#:Sheet1!$L$8. You can then use the defined name as the list source.

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

      You could also try a LAMBDA function… =LAMBDA(range1, range2, range1:range2)(L9#,L8). Name it MAKERANGE or EXTEND if you want to add the function to Name Manager.

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

      @@davidabuang I finally got it to work!!! Now I see that it works when the ALL and data are directly next to each other. Very cool trick. Thanks for the hot tip : )

  • @CeliaAlvesSolveExcel
    @CeliaAlvesSolveExcel 3 года назад +1

    😳🤯😱 (me, speechless)

    • @excelisfun
      @excelisfun  3 года назад +1

      Speechless maybe, but having fun yes!!!!!! : ) : ) : ) : )

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

      @@excelisfun oh, yeah! In your channel, always lots of fun!

  • @spilledgraphics
    @spilledgraphics 3 года назад +2

    old School vs. New School ????? no way ! 😵🤯😵🤯😵

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

      Really "" ??? I struggled with this many years ago! 😝😝 thanks Mike !!! #GOTEAM !!!

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

      Last two things Mike: the use of 0 on a INDEX? what!? and loving those 💥"BAM"💥 moments on the video 🤘😅

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

      The two schools together to make Excel MUCH more fun!!!

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

      @@spilledgraphics Yes, NOT empty is a good criteria trick to have up our sleeves : )

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

      @@spilledgraphics Bam!!!!!! Yes, the INDEX with a zero or omitted: I have that trick in at least 100 other videos. It is how we lookup a field or column.

  • @Softwaretrain
    @Softwaretrain 3 года назад +1

    Amazing and informative. Thanks But Mike, I felt you are not energetic as always.
    Am I right? Also I miss your bonus in tutorials.

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

      I am getting old and tired, but I keep on going lol
      P.S. There were lots of bonuses, like the "", but I guess I was too tired to add the extra animation LOL

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

      BTW, you did pick up my lack of energy. You are right. And in fact I was in very bad back pain all day, but still kept going and filmed the video. I ended up in the emergency room this night due to the pain.

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

      @@excelisfun I'm really sorry to hear that, hope you get well soon and back with full of energy as always.
      We all need you in health.
      I will pray to have you healthy very soon.

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

      @@Softwaretrain Thanks for the positive vibes and for noticing in the first place : ) It is great to be on the Team with you : ) : )

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

      @@excelisfun Dear Mike,
      hope you have recovered from back pain. You are an icon of knowledge sharing for me.

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

    hi can you help me, it doesnt work for me

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

    Q: UNIQUE() is not case sensitive; UNIQUE({"A", "a"}) returns "A" (or is it "a" - can't remember). How to get a formula that returns {"A", "a"}?

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

    Wouldn't a pivot table be a much more elegant solution?

    • @excelisfun
      @excelisfun  3 года назад +1

      Yes. But for people who are doing what if analysis and want an all option, this is perfect!

  • @richardhay645
    @richardhay645 3 года назад +1

    Interesting, but too much work for me just to hide the Grand Total when the criteria is a single product! I like 3 colums in the results area: Product; Product Total; Grand Total. (The drop-down list is below product; SUMIFS below Product Total; SUM below Grand Total.) Only difference that I see is that the value for Grand Total is constantly visible rather than just when you select ALL. It's easy to HIDE the GT column if seeing it annoys the user!!

    • @excelisfun
      @excelisfun  3 года назад +1

      I like that. That is a hot tip: just add a grand total cell. But, I am surprised how this question about adding "ALL" as a condition has come up numerous times in the last 20 years. So I guess people like to do too much work lol

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

      @@excelisfun I haven't tried, but can you do something with a dependent drop-down list that will select SUM when the product is ALL and SUMIFS otherwise?

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

      @@richardhay645 That was the first formula that I did in this video: IF(F4="ALL",SUM,SUMIFS), But I had a dropdown list, not a dependent dropdown list.