Top 6 Excel Counting Formulas: COUNTIFS, FILTER or SUM(IF) functions? Excel Magic Trick 1819

Поділитися
Вставка
  • Опубліковано 13 лип 2024
  • Download Excel File: excelisfun.net/files/EMT1819....
    The best Excel formulas are not always what they seem. In this video: learn the best ways to create counting formulas in Excel using COUNTIFS, FILTER and SUM( IF ). Learn both Microsoft 365 Excel formulas and formulas that will work in any version of Excel.
    Topics:
    1. (00:00) Introduction
    2. (00:14) COUNTIFS for counting customers who paid Cash. (Single Condition)
    3. (01:07) AND Logical Tests. OR Logical Tests. And what is required in counting formulas.
    4. (01:32) COUNTIFS for counting customers who spent less than $50 and paid with PayPal. (AND Test). Learn about two ways to enter comparative operator.
    5. (03:18) OR Logical Tests and the trouble with them. How to not get in trouble.
    6. (04:09) COUNTIFS & SUM functions for counting customers who paid with Visa or Mastercard. (OR Test, No overlap: Mutually Exclusive Categories))
    7. (05:41) FILTER for customers who paid with Visa or spent at least $350. COUNTIFS alternative formula too. (OR Test, overlap in categories: categories are NOT Mutually Exclusive)
    8. (09:45) SUM ( IF ) for customers who paid with Visa or spent at least $350. (NOT Mutually Exclusive)
    9. (11:00) FILTER for customers who paid with PayPal or spent between$50 and $100. FILTER and COUNTIFS alternative formula too. AND Logical Test inside an OR Logical Test.
    10. (12:32) Differentiate between the complex filters: 1) AND Logical Test inside an OR Logical Test, 2) OR Logical Test inside an AND Logical Test.
    11. (12:48) COUNTIFS & SUM functions for customers who paid with PayPal or Apple and spent exactly $100. SUM ( IF ) alternative formula too. OR Logical Test inside an AND Logical Test.
    12. (14:43) Summary of all counting methods
    13. (15:48) Closing & Video Links
    #excel
    #excelisfun
    #excelformulas
    #excelfunctions
    #dynamicarrays
    #array #arrayformula
    #statistics
    #excelsolutions
    #joint
    #probability
    #probabilitytricks
    #mikegirvin
    #analytics
    #analysis
    #dataanalysis
    #dataanalytics
    #excelmvp
    #countifs
    #filterfunction
    #iffunction
    #ifformula
    #logicaltest
    #logicalfunction

КОМЕНТАРІ • 151

  • @HusseinKorish
    @HusseinKorish Рік тому +16

    The most amazing thing in "ExcelIsFun" channel is that Mike never quit explaining the basics ...how to highlight a column in a table... how to evaluate a varaible in a formula .. so no one ever interrupted through the video or ask "how is that happened ?" ... Thanks alot Mike.

    • @excelisfun
      @excelisfun  Рік тому +6

      Thank you for being so perceptive, Hussein and noticing what I do : ) : ) : ) You got it right: that is 100% intentional. From the very beginning 15 years ago. It makes the process of creating videos more difficult, because I always feel that I cannot make assumptions - so I always have to include all the detail. But that way, no one is left out, even us not so smart people (like me)!!!!
      You are welcome a lot, Hussein!!!

    • @Sal_A
      @Sal_A Рік тому +2

      Exactly why I followed you Mike for that long :) Reinforcing the basics is good even for advanced people bc to become an expert you always need to understand basics

    • @excelisfun
      @excelisfun  Рік тому +2

      @@Sal_A Me too. I forget my basics when I do not use them for a while... AND: I have to come back and watch my own videos to re-remember lol

  • @LuisCarlosChavez717
    @LuisCarlosChavez717 Рік тому +14

    Dear Professor Mike, I just wanted to express my gratitude for your excellent tutorial. Your videos, tips, and much more have helped me gain a deeper appreciation and love for Excel. 👍👍👍👍

    • @excelisfun
      @excelisfun  Рік тому +3

      I love to hear that!!! Anytime I can increase the love of Excel, I have accomplished part of my goal : ) : )

  • @soniccheese01
    @soniccheese01 Рік тому +1

    Never cease to be amazed by you Mike. Wonderful stuff. Many thanks.

    • @excelisfun
      @excelisfun  Рік тому

      Many you are welcomes, Sonic Cheese!!!!

  • @darrylmorgan
    @darrylmorgan Рік тому +2

    Boom!Super Fun Class.Really Like The ROWS and FILTER Method...Thank You Mike :)

    • @excelisfun
      @excelisfun  Рік тому

      Cool: Vote for ROWS and FILTER : ) That is the one I use to teach students in my statistics classes because it is an easy visual way to see the records that match the criteria.

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi Рік тому +1

    Thank you Mike for this EXCELlent video.

    • @excelisfun
      @excelisfun  Рік тому

      You are welcome, Fellow Teacher Syed Muzammil Mahasan Shahi!!!

  • @subbu_ca
    @subbu_ca Рік тому +3

    Just last week i was breaking my head on non mutually exclusive counting. Thank you for making this so simple

    • @excelisfun
      @excelisfun  Рік тому +2

      Yes!!!! I love to hear that I can help with that. I absolutely remember in the beginning of my career pulling my hair out with it... You are welcome for the simple!!!

  • @AlainW-xm1rh
    @AlainW-xm1rh Рік тому +3

    Thanks so much for all these videos Mike. I think you've done more for educating people in Excel, than all of Microsoft combined. Thanks again.

    • @excelisfun
      @excelisfun  Рік тому

      I try to provide education to all!!! You are so welcome for the vids!!!!!

  • @elicesroman7500
    @elicesroman7500 Рік тому +1

    Finally, I can see the face behind all your magnificent videos...Thx

  • @markpodesta4605
    @markpodesta4605 Рік тому +1

    Thank you Mr Bam! Very useful. 👍

    • @excelisfun
      @excelisfun  Рік тому +1

      You are welcome!!!! Sincerely, Mr Bam ; )

  • @Vandalfoe
    @Vandalfoe Рік тому +3

    Mike showers us with golden nuggets if wisdom!
    Always good stuff and thanks for all the time you put into editing your videos.
    I don't know how you're able to consistently produce such great content - enjoyable and educational.
    Keep up the great work!!! Thanks Mr. Girvin!

    • @excelisfun
      @excelisfun  Рік тому

      You are welcome for the nuggets!!!!!
      How do I do it? If you look at my production time log: you will see many days between 10 and 13 hours. It is grueling sometimes, but always worth it!!!

  • @nadermounir8228
    @nadermounir8228 Рік тому +1

    Stellar Video Mike 📹 👌 Thank you for your very hard work 👍

    • @excelisfun
      @excelisfun  Рік тому

      You are welcome for the stellar!!!!

  • @lmk001
    @lmk001 Рік тому

    You are a magician. I like the Filter method. That was neat!

    • @excelisfun
      @excelisfun  Рік тому +1

      Yes!!!! Glad you like the magic and FILTER!!!!

  • @sevagjb
    @sevagjb Рік тому +1

    i consider very good in making formulas in excel but always i found new things to learn from your videos so thanks

    • @excelisfun
      @excelisfun  Рік тому +1

      You are absolutely welcome!!!!! It is so true: even one new nugget in the Excel toolbox is awesome!!! : ) You are welcome as always, Sevagjb!!!!

    • @sevagjb
      @sevagjb Рік тому +1

      ​@@excelisfun I'm using the 365 version and i enjoy the new personal toolbar ,
      it's The best addition value to use the 365

    • @excelisfun
      @excelisfun  Рік тому

      @@sevagjb Wow, that's cool! So are you saying that the QAT, where you can add any buttons you want, is what you like?

    • @sevagjb
      @sevagjb Рік тому

      @@excelisfun yes, but now it appears as independent toolbar and hid all the rest,
      I'm on the beta channel, the new name is Personal Toolbar

    • @excelisfun
      @excelisfun  Рік тому +1

      @@sevagjb Hid all the Ribbons? So are you saying you just have a personal toolbar? I have never seen that before.

  • @nsanch0181
    @nsanch0181 Рік тому +1

    Thank you Mike for the great video. I liked the filter function with rows, but dang things can get complicated when you have to avoid double counting. Hey I'm making it through your book THE ONLY APP THAT MATTERS; I'm taking it slow, doing a chapter, setting it aside for awhile, doing another chapter later. I'm really enjoying it Mike; great job!

    • @excelisfun
      @excelisfun  Рік тому

      I am so glad that you like the book. This video comes straight from chapter 13!!! By The Way, OR can be easy if you just use (Column=condition)+(Column=Condition) in FILTER or SUM ( IF ) because that construction works for both mutually exclusive and not mutually exclusive : ) : )
      Did you buy book at Amazon?

  • @zt.5677
    @zt.5677 Рік тому +1

    A great demo. Thanks!

  • @wayneedmondson1065
    @wayneedmondson1065 Рік тому +1

    Awesome Mike! Always something new to learn from your EMTs. Thumbs up!!

    • @excelisfun
      @excelisfun  Рік тому +1

      Whatdaya learn this time, Wayne ?

    • @wayneedmondson1065
      @wayneedmondson1065 Рік тому +1

      @@excelisfun Reminder of ME/NOT ME and OR(AND) and AND(OR). Also, to use good old IF function. Good stuff!!

    • @excelisfun
      @excelisfun  Рік тому +1

      @@wayneedmondson1065 What is ME/NOT ME??? I even forget to use SUM ( IF ) often too. I always use it for averaging (because you can not use AVERAGEIFS for OR), but I often forget that it is actually a shorter formulas that any other! Good Old IF is good stuff!!!

    • @wayneedmondson1065
      @wayneedmondson1065 Рік тому

      @@excelisfun ME = mutually exclusive from your video. Agreed on IF!!

    • @excelisfun
      @excelisfun  Рік тому

      @@wayneedmondson1065 Yes!!!!!!!!

  • @kiwikiow
    @kiwikiow Рік тому

    Thank you Mike for teaching these valuable tricks 🙂

    • @excelisfun
      @excelisfun  Рік тому

      You are welcome, Excel Ghost Teammate !!!!!

  • @viktorasgolubevas2386
    @viktorasgolubevas2386 Рік тому

    Versatile and an excellent refresher with a "filter" :)
    Thanks!

  • @qasimawan3569
    @qasimawan3569 Рік тому +3

    Thank you for explaining what 'Function argument array operation' is. I've been wondering what that means!

  • @wizardofaus8473
    @wizardofaus8473 Рік тому +1

    Thank you Mike. Outstanding as always. Regardless of simple or complex content, you make it understandable and FUN!

    • @excelisfun
      @excelisfun  Рік тому +1

      I am glad that my stories are fun and informative : ) You are welcome!!

  • @chrism9037
    @chrism9037 Рік тому +2

    Thanks Mike! I use SUMIFS but I have been using FILTER so much more now!!

    • @excelisfun
      @excelisfun  Рік тому

      FILTER definitely opens things up and can make some things much less complicated. You are welcome, Chris M!!!!

  • @sasavienne
    @sasavienne Рік тому

    Your tutorials are *great*
    I really appreciate all your highly recommended videos.
    Salim

  • @TheExceleer
    @TheExceleer Рік тому +4

    That SUM+IF combo is really great!
    Yet, "lifting" SUMIFS (or 'vectorizing' as I like to call it) is very good technique, as well.
    Cool video, thanks Mike! 🙂

    • @excelisfun
      @excelisfun  Рік тому +1

      Right: Use SUM ( IF ) when you can't use the mouth-full: "function argument array operation" (more descriptive for us non-engineers than the succinct "vectoring") SUMIFS/COUNTIFS and the like : ) : )
      You are welcome, Teammate The Exceleer!!!

    • @richardhay645
      @richardhay645 Рік тому +1

      @ExcelIsFun "Vectorizing". Yes, engineering, but also shades of SUMPRODUCT!!

    • @excelisfun
      @excelisfun  Рік тому

      @@richardhay645 Isn't SUMPRODUCT an engineer? lol

    • @richardhay645
      @richardhay645 Рік тому +2

      @ExcelIsFun Apparently so and VVERY LOL that you would say that! In about 2000 when Excel was far more limited and my knowledge of Excel even more so, I complained to a business aquaintance who was a far more advanced user than I AND WHO WAS A STRUCTURAL ENGINEER that I wished that Excel could do operations that were more than cell by cell computations. So he mentioned SUMPRODUCT and spent about 10 minutes showing me a couple of things it could do. I thought that it was a game changer! I began to view my data sets as Vector Spaces from that moment on. Until about 2010 when I began to take Excel much more seriously SUMPRODUCT was my favorite and most overused Excel function.

    • @excelisfun
      @excelisfun  Рік тому

      @@richardhay645 LOVE it!!!!!!

  • @nialltuohy8923
    @nialltuohy8923 Рік тому +2

    Mike, you are an outstanding teacher

    • @excelisfun
      @excelisfun  Рік тому +2

      Thank you for your kind words : ) : ) : )

  • @SantiagoMolero
    @SantiagoMolero Рік тому +2

    Amazing, Mike. Thank you!!!

  • @davorercegovac3674
    @davorercegovac3674 Рік тому +1

    Great video, Thanks 😊

  • @fernando5166
    @fernando5166 10 місяців тому

    thanks you

  • @carlosmantilla7997
    @carlosmantilla7997 Рік тому +1

    Thanks You mr Mike 👍🏻

  • @markjarvis72
    @markjarvis72 Рік тому +2

    Amazing content and explanations Mike.

  • @TheAlwaysGoel
    @TheAlwaysGoel Рік тому

    Very informative video Mike👍

  • @ashutoshdwivedi9600
    @ashutoshdwivedi9600 Рік тому +1

    You are Amazing sir 😘
    Always entertaining with new new new....... Always new.
    Dubble click and send it down 😅😂

    • @excelisfun
      @excelisfun  Рік тому

      If only the rest of our working tasks were as easy as Double Click And Send It Down lol

  • @VinayYadav-gu4xb
    @VinayYadav-gu4xb Рік тому +1

    Thank you sir🙏🏻🙏🏻

  • @josecarlosconejo5724
    @josecarlosconejo5724 Рік тому

    Hi Professor, just one remark to your awesome video. I think you have left out the dearest SUMPRODUCT function which can also do the same with a very straight forward logic behind.

  • @FaysalEasyExcel
    @FaysalEasyExcel Рік тому +1

    just awesome sir

    • @excelisfun
      @excelisfun  Рік тому

      Yes!!! Glad you like it : ) : )

  • @KevinPGA
    @KevinPGA Рік тому +2

    GREAT tutorial. Thank you Professor!!! 👍👍👍

    • @excelisfun
      @excelisfun  Рік тому +1

      You are welcome, Kevin!!! But from the many, many videos that you have watched over the years, this is probably a review for you, right?

    • @KevinPGA
      @KevinPGA Рік тому

      @@excelisfun I don’t follow the question, but I do know that lately I’ve been struggling with these formulas and this is a great reminder to me that I can use FILTER with ROWS. For some reason I have an easier time understanding the FILTER function and how it operates. I don’t think it’s a matter of the best solution, but rather the solution we can wrap our heads around, if that makes any sense… 😂 You always give us options, and we can choose the one we can make work. 👍

  • @richardhay645
    @richardhay645 Рік тому +1

    Great summary! Never use COUNTIF nor SUMIF.

    • @excelisfun
      @excelisfun  Рік тому +1

      I 100% agree: Never use COUNTIF nor SUMIF... But wait... There is a killer use for SUMIF when you use just the first two arguments (a bit of Microsoft coding from WAY back in the day):
      1) If you enter criteria range as a range, then criteria, you only have to list the first cell in the sum range because it can infer the size from the criteria range, like: =SUMIF(C5:C13,F8,B5)
      2) If the criteria range and sum range are the same (like for numbers and a hurdle, then you do not have to put sum range in formula, like: =SUMIF(B5:B13,">="&F11)
      I teach just like you do: Always use S versions of SUMIFS and COUNTIFS because 1) they are more flexible in that they allow one or more conditions AND 2) the function arguments in the screen tips are much easier to interpret.
      Thanks for the idea for the next EMT, Richard Hay!!!

    • @richardhay645
      @richardhay645 Рік тому +1

      @ExcelIsFun Yes that is true and I have been aware of that "trick" for years (without knowing how I learned it). BUT i virtually always have my data sets in Tables so the range is just a click away (that "black arrow," thing LOL) and the structured refs make the fomulas very easy read. I do realize that most users do not routinely maintain their Data Sets as Excel Tables and would find that trick useful!! Great idea for an EMT!

    • @excelisfun
      @excelisfun  Рік тому +2

      @@richardhay645 Not my idea: You get all the credit : ) : ) : ) : ) We still should only use SUMIFS and COUNTIFS, but maybe we should have those two party tricks up our sleeve?

    • @richardhay645
      @richardhay645 Рік тому

      @ExcelIsFun ìt is valuable for many users. Many stll use the IF forms for single criteria. For those many users who do not maintains their fact tables as Excel Tables a common source of error is mis-highlighting that creates ranges of different dimensions. This trick helps avoid that error. Users who tend to make that error are often those who will not quickly realize the source of that error. So this trick can actually be useful. But for me, I'll stick with IFS!!

    • @excelisfun
      @excelisfun  Рік тому +1

      @@richardhay645 Me too IFS Rule!!!!!!

  • @vijayraghavanr1
    @vijayraghavanr1 Рік тому +1

    Thanks a lot for a high level summary 🙏

    • @excelisfun
      @excelisfun  Рік тому +1

      You are welcome, Vijay!!!!! I did not view this as a high level summary (if high level summary means overview with less detail), but more as a deep dive about details, right?

    • @vijayraghavanr1
      @vijayraghavanr1 Рік тому +1

      @@excelisfun Thank you for correcting me 🙏

    • @excelisfun
      @excelisfun  Рік тому +1

      @@vijayraghavanr1 lol, did you mean: Low Level Summary ; )

    • @vijayraghavanr1
      @vijayraghavanr1 Рік тому +1

      @@excelisfun No. I meant deep dive

    • @excelisfun
      @excelisfun  Рік тому

      @@vijayraghavanr1 Oooo, I understand now. Semantics lol Dep Dives are fun!!!!

  • @drsteele4749
    @drsteele4749 Рік тому

    Super vid, Mike! I always wondered why MS programmed the criteria arguments to require the quotes and the ampersand. I really wish they'd get rid of it.

    • @excelisfun
      @excelisfun  Рік тому

      I think it has to do with the comparative operator in a cell with a number is text.

  • @HogstadRaadgivning
    @HogstadRaadgivning Рік тому

    Thank you. I got a new favorite now. =Sum(if(conditions,,, I have used rows(filter(conditions). The problem with Filter here is that i returns 1 even if no conditions is met. Since it either return an error, or the value in If "If empty" option.

  • @thesinzer
    @thesinzer Рік тому

    For the OR logical test, you can use an ifs function and count. This is faster since you only check rows that haven't already had a True condition.
    =COUNT(IFS(S[PayMethod]="visa",1,S[Amount]>=350,1))

    • @excelisfun
      @excelisfun  Рік тому

      Thanks for the cool formula! The COUNT and IFS is comparable to other SUM and IF constructions, but it does appear to be a few milliseconds faster when you measure it on big data. However, COUNTIFS is significantly faster. I wrote about this phenomenon back in 2012 in my Ctrl + Shit + Enter book.
      However, this is not correct: "It is also faster since you only check rows that don't have a true condition yet."
      Direct array operations, like = and >= always check all rows. This is a hallmark of array calculations and it is is one of the reason that direct array operations are often slow as compared to worksheet functions like COUNTIFS and SUMIFS, or DAX Functions. Using Excel MVP Charles Williams's Fast Excel Timing Tools, when I time formulas I get this speed ranking:
      These are times on a large data set with over 500,000 rows:
      Average of 3 times in milliseconds = 76.92 for this formula: =COUNTIFS(S_2[PayMethod],F5)+COUNTIFS(S_2[Amount],">="&G5)-COUNTIFS(S_2[PayMethod],F5,S_2[Amount],">="&G5)
      Average of 3 times in milliseconds = 139.23 for this formula: =COUNT(IFS(S_2[PayMethod]="visa",1,S_2[Amount]>=350,1))
      Average of 3 times in milliseconds = 143.2 for this formula: =SUM(IF((S_2[PayMethod]=F5)+(S_2[Amount]>=G5),1))
      Average of 3 times in milliseconds = 145.6 for this formula: =SUM(IF(S_2[PayMethod]=F5,1,IF(S_2[Amount]>=G5,1,0)))
      Average of 3 times in milliseconds = 152.87 for this formula: =ROWS(FILTER(S_2,(S_2[PayMethod]=F5)+(S_2[Amount]>=G5)))

  • @niteeshmishra2790
    @niteeshmishra2790 Рік тому +1

    Hello sir, please show us your complete setup, I am your youtube member since 2019, please show your complete setup Thankyou .

  • @TSSC
    @TSSC Рік тому +2

    Well explained, as always. I’m now a FILTER guy, but still use SUM(IF(…)) now and then.

    • @excelisfun
      @excelisfun  Рік тому

      That is a good assessment. FILTER is so nice becasue you want "see" the matching records. But SUM ( IF ) is the shortest formula - so compact and nice.

    • @TSSC
      @TSSC Рік тому +1

      @@excelisfun I often use FILTER in a LET function when the formula is long or needs explanations: the possibility to define variables for ranges, conditions, etc was a game changer. Formula auditing can be done by temporarily changing what the LET function returns (e.g. the list of True/False).

    • @excelisfun
      @excelisfun  Рік тому

      @@TSSC TRUTH: FILTER in a LET function when the formula is long or needs explanations = Awesome!!!!

    • @TSSC
      @TSSC Рік тому

      @@excelisfun And the possibility to insert “comments”. Example:
      =LET(
      __Block_1, “Define variables”,

      __Block_2, “Filter and calculate”,

      __Block_3, “Stack columns to create a table”,
      …)

    • @excelisfun
      @excelisfun  Рік тому

      @@TSSC Way cool!!!!

  • @nikakalichava8012
    @nikakalichava8012 Рік тому +1

    Gotta adapt to arrays 😲

  • @Prosperity-hk8ub
    @Prosperity-hk8ub Рік тому +1

    Magic functions ! Can this practice be used on version 2019. Thanks

    • @excelisfun
      @excelisfun  Рік тому

      COUNTIFS and SUM (IF ) can be used in Excel 2019.

  • @saintbikerart8987
    @saintbikerart8987 2 місяці тому

    Do you have video that has , multiple sender and multiple Receiver ? What is tha fornula

  • @nishantkumar9570
    @nishantkumar9570 Рік тому +1

    Beautifully and Plain explanation of each of the thought process and steps. Thank you so much.
    I've a question, how you put the images in comment or Notes?

    • @excelisfun
      @excelisfun  Рік тому +1

      I should make a video about that... However, I have a crazy video about how to do it from back in the beginning of UA-cam when most videos were crazy, and I tried to fit in with crazy vids: ua-cam.com/video/hdTnZwgB_Q0/v-deo.html Mt Irian was a famous UA-camr back in 2008.

    • @excelisfun
      @excelisfun  Рік тому +1

      I should make a video about it, because almost no one uses comments any more and virtually no one knows the trick of pictures in comments. Maybe a few EMT ahead : )

    • @nishantkumar9570
      @nishantkumar9570 Рік тому +1

      @@excelisfun Yeah, that would be very helpful.
      I find it very useful, It can be used as tooltip.

    • @excelisfun
      @excelisfun  Рік тому +1

      @@nishantkumar9570, The steps are: 1) Shift + F2 to Insert a Comment, 2) then carefully click outside edge of comment, 3) Colors and Lines tab, 4) Fill Color dropdown, 5) Fill Effects, 6) Picture tab, 7) Select Picture. This is just about the most difficult trick in Excel.

    • @nishantkumar9570
      @nishantkumar9570 Рік тому +1

      @@excelisfun Please do the honor of simplifying and demystifying this trick as well, like you always do.

  • @dziadeck47
    @dziadeck47 Рік тому +1

    Hi Mike, I'm curious, why rows (filter) and not count(filter)? Is it faster or handles errors better? Or just personal preference (I don't think I ever used rows till now 😜 )

    • @excelisfun
      @excelisfun  Рік тому +2

      COUNT counts numbers, so that would not work here. COUNTA counts not empty cells, and that is what most people use. If you actually have records, like I have, then COUNTA would double count. To fix that you could just use a single column to filter. But I like ROWS because it is exactly specific in that it counts rows. It is just preference, although I did hear Mr Excel (Bill Jelen) once say that it is faster becsue it just looks at last and firts and subtracts, rather than count all elements.

    • @richardhay645
      @richardhay645 Рік тому +1

      @ExcelIsFun To quote Dr Phil "Ok, I'm confused"!! I didn't download the worksheet but the output of FILTER appears to be a matrix 82x2 (rxc). One col is Text and one col contains Numbers.
      Then COUNT(FILTER)=82. COUNTA(FILTER)=164. COUNTA(FILTER)÷COLUMNS(FILTER)=82. ROWS(FILTER)=ROW86-ROW5+1=82.
      BUT this case is unique since only one column contains numbers. In the general case multiple colums could contain numbers. In such situations, it's COUNTA(FILTER)÷COLUMNS(FILTER) or ROWS(FILTER). ROWS is obviously easier but so long as you know without guessin or counting the number of colums the COLUMNS(FILTER) would be a hard coded scalar (like 12) so either formula works.
      I think the general reluctance/resistance to ROWS. is its bad name. I have always belived that the MS executive who makes the six (or seven!) figure salary to name functiond and features in Excel was probably the inspiration for the old county hit song "A Boy Named Sue". Badly named functions have to fight for love and respect. ROWS should be CCOUNTROWS; ROW: ROWNUM: COUNTA:COUNT; COUNT:NUMCOUNT!! OFFSET and INDIRECT (seriously) ?????. The really crazy thing is that COUNT on the worksheet Status Bar is actually COUNTA and on an Excel Table the function dropdown on the Total Row which is actually the SUBTOTAL FUNCTION (someone at MS thought that to be a good idea!) contains COUNT NUMERS for COUNT and COUNT for COUNTA (yet ANOTHER "Boy Named Sue" moment!!).Maby that has added to the caution regarding the Reluctance (or maybe Rowluctance?) for ROWS!

    • @excelisfun
      @excelisfun  Рік тому +1

      @@richardhay645 Great commentary, Richard!!!! Jonny Cash: "A Boy Named Sue" is just great : ) : ) : )

  • @amanrawat7098
    @amanrawat7098 7 місяців тому

    can you please tell how to update my excel version 2019 to 2021?

  • @quadriatharutech
    @quadriatharutech Рік тому +1

    Why do COUNTIF function gives #VALUE when used in a let function especially in cases where the criteria is a list of values.

    • @quadriatharutech
      @quadriatharutech Рік тому +1

      I do resort to use map function to do that with SUM.

    • @excelisfun
      @excelisfun  Рік тому +2

      Probably from the horribly famous fact that Microsoft programmed the range arguments in COUNTIFS/SUMIFS/COUNTIF and others to not accept array operations. I have written about this in all my books and have many videos about this unfortunate fact. However, I am not sure what you mean when you write: "especially in cases where the criteria is a list of values", because the criteria argument can do function argument array operations, but the range argument can not. I cannot fully understand your question because you said COUNTIFS in LET, and that is almost certainly not what is causing the error. More than likely the cause of the problem is this historical fact about COUNTIFS and the like...

  • @williamarthur4801
    @williamarthur4801 Рік тому +1

    No Idea you could just put an array into countifs, I've always used the curly brackets and then type in the criteria;
    Countifs( range, { "A,", "B" } ), also how about using ;
    COUNTIFS(S_3[Amount],"="&G18,S_3[PayMethod],""&F18)+COUNTIF(S_3[PayMethod],F18)

    • @excelisfun
      @excelisfun  Рік тому

      NOT!!!!! : ) lol Thanks for the not tip, William : )

  • @ashulalgarhia
    @ashulalgarhia Рік тому

    Is it possible to learn excel and Word on office version 2007 or new version is required?

    • @excelisfun
      @excelisfun  Рік тому

      That is a REALLY old version. But Here is a class I made back in 2013 that will work for Office 2007: ua-cam.com/video/OABx4yQZiP4/v-deo.html

    • @ashulalgarhia
      @ashulalgarhia Рік тому

      @@excelisfun thanku sir

    • @excelisfun
      @excelisfun  Рік тому

      @@ashulalgarhia You are welcome! Just keep clicking that thumbs up - that is the fee I charge for the class lol