Excel Magic Trick 545: Count Between Dates with 3 Criteria COUNTIFS & DCOUNTA & SUMPRODUCT

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • Download Files:
    people.highlin...
    See how to count records that have a date between the begin and end date and a second column contains the criterion value using these functions:
    COUNTIFS
    DCOUNTA
    SUMPRODUCT
    Function formula

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

  • @fernando5166
    @fernando5166 11 หลายเดือนก่อน

    Beyond my expectations, I thank you for your teachings

  • @MariaM-gf7jz
    @MariaM-gf7jz 5 ปีที่แล้ว

    I have been looking EVERYWHERE for a formula to do this!! Thank you

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome, Maria!!!! Thanks for your support of the excelifun channel at TH-cam : ) P.S. how did you eventually find this video?

    • @MariaM-gf7jz
      @MariaM-gf7jz 5 ปีที่แล้ว

      @@excelisfun Your video comes up on this website ms-office.wonderhowto.com/how-to/count-number-values-between-two-givens-excel-332937/

  • @airahshobbievillojan9573
    @airahshobbievillojan9573 5 หลายเดือนก่อน +1

    Thanks for being alive. You saved may sanity 🫂

    • @excelisfun
      @excelisfun  5 หลายเดือนก่อน

      You are welcome!!!

  • @excelisfun
    @excelisfun  14 ปีที่แล้ว

    It is OK to include blanks below your data set and then add data later. For the formulas, you would just expand the ranges. For example, if you wanted to include two rows below row 26 and then add data later, the formulas would look like this:
    one as seen in video:
    =DCOUNTA(A9:B26,B9,D9:F10)
    Formula that includes two blank rows below row 26:
    =DCOUNTA(A9:B28,B9,D9:F10)
    The other two formulas would similarly get expanded ranges.

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    Yes, the criteria of "*" should work just fine. You might try "?*" also. "?*" means one or more characters and is technically safer than "*" because "*" will count a null text string, which you probably do not have. "*" works fine if you have no null text strings like a formula blank from an IF-type formula.

  • @excelisfun
    @excelisfun  14 ปีที่แล้ว

    Yes. Use sheet references or workbook references. See this video:
    Highline Excel Class 06: Worksheet & Workbook References
    But use the SUMPRODUCTS method becasue COUNTIFS SUMIFS etc don't do workbook references very well.

  • @excelisfun
    @excelisfun  13 ปีที่แล้ว

    @greeshmallya , u r welcome!

  • @jimfrost1307
    @jimfrost1307 6 ปีที่แล้ว

    For All Your Great Work Let Me Thank You ,Your Way Of Explaining And Teaching Is Really Inspiring and Very Good And Helpful ,You Have Been A Great Help With Many Lessons ... Thank You Again And Keep Up The Good Work

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    If cells contains A or B but never both, then you can use two COUNTIF or two COUNTIFS functions and put a plus between the two countif functions. If you are using DFunctions, OR Criteria goes on two different lines below the filed name. I have a few videos on OR Criteria. Here is one:
    Excel Magic Trick #180: COUNTIF function formula 21 Examples
    at the 1:34 minute mark

  • @excelisfun
    @excelisfun  14 ปีที่แล้ว

    You could also use the Table Feature to get expandable ranges. See this video:
    Excel Dynamic Chart #3: Table Feature (Excel 2010 / 2007) List Feature (Excel 2003)

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    Sure, just put the text where the A is. Actually, the letter A is a text string with a single character, you can have any text string you want as criteria.

  • @hrishikeshchaudhari2456
    @hrishikeshchaudhari2456 4 ปีที่แล้ว

    THANK YOU! THANK YOU! THANK YOU! After much frustration attempting to calculate 3 fields, my brain says, "Thank you"!

    • @excelisfun
      @excelisfun  4 ปีที่แล้ว

      You are welcome, Hrishikesh!!!

  • @paulamorrison5293
    @paulamorrison5293 8 ปีที่แล้ว

    This was INCREDIBLY helpful!!! Thank you so much for this post :-)

  • @TippiGordon
    @TippiGordon 12 ปีที่แล้ว

    Perfect - just what I needed! Thank you for posting this!

  • @LessonsfromLife0
    @LessonsfromLife0 ปีที่แล้ว

    Really helpful video. Thank you very much

  • @dulcevalerialammunoz8883
    @dulcevalerialammunoz8883 2 ปีที่แล้ว

    thank you you helped me today!!

  • @excelisfun
    @excelisfun  14 ปีที่แล้ว

    You are welcome!
    &!

  • @a.h.m.bodruddoza4170
    @a.h.m.bodruddoza4170 6 ปีที่แล้ว

    Thanks a lot. I know countif, countifs function but I did not know how to conbine them. I am looking for a solution as like that. Thanks a lot. Its help me a lot.

  • @yardbird46
    @yardbird46 14 ปีที่แล้ว

    Mr. EIF,
    Love your show. First time - long time (sports call-in reference just in case .... not as funny when explained).
    Could the above "Count between dates" be created on a worksheet pulling from a second worksheet in the same workbook or even different workbooks? I envision a dashboard grabbing from the latest and earlier files.
    I regularly import information downloaded database into Excel 2003. I format to create the columns and add a header. There are about 25,000 rows and 35 cols..

  • @kiranjitbharaj1854
    @kiranjitbharaj1854 7 ปีที่แล้ว

    Hi your videos are very useful, how do you count data on a another sheet in the work book in a specific date range and a set criteria?

  • @vijayakumarkuppula4128
    @vijayakumarkuppula4128 ปีที่แล้ว

    Hi sir,
    Your videos are very helpful, i have a problem that i got a data base with name start date and end date and status (p-Present, a-Absent, sl-Sick leave etc, I have amain sheet with dates and employee names, how can I get filled with cell with ststus of a employee in main sheet matching his criteria between dates and status

  • @itsmenm8399
    @itsmenm8399 3 ปีที่แล้ว

    Awesome 👍

  • @sudhijithin6879
    @sudhijithin6879 5 ปีที่แล้ว

    Thanks for this video. This is great! How do we use countif and frequency formula to select unique values if the duplicate rows are more than one? The columns are dates and time values. Please help

  • @ArmanKhan-iq3ji
    @ArmanKhan-iq3ji 5 ปีที่แล้ว

    Thanks U brother it's very helpful for me 😊

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome, Arman!!! I am glad that it is helpful for you!

  • @ciprithebest
    @ciprithebest 5 ปีที่แล้ว

    Thank you, very helpful

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome, Ciprian!!!

  • @krn14242
    @krn14242 14 ปีที่แล้ว

    Thanks Mike, I always forget the & when using comparative operators... :)

  • @RS7447-iou
    @RS7447-iou 12 ปีที่แล้ว

    Thank you for your reply. the text varies on each cell. I am trying to count the number of tasks per week and the text is the description of the task. I am using "*" instead of the A criteria at the end of the formula

  • @nrambabu341
    @nrambabu341 2 หลายเดือนก่อน

    Thankyou sir🙏🙏

  • @chandalou
    @chandalou 5 ปีที่แล้ว

    What if you don't have a separate table establishing the date range and criteria? For example, I have a column containing specific dates that fall into years ranging from 2011 to 2019. The scenario, I need to count how many certificates were issued for a particular year and is either a basic certificate or advanced certificate (separate column). Your example is quite similar to mine, however, I do not have a separate table for the date range begin, end and criteria. I've tried the COUNTIFS and SUMPRODUCT functions but had no luck. Any suggestions or clarifications? Thank you so much. The video has helped a great deal in understanding the functions and how they work.
    =SUMPRODUCT(--($D$2:$D$78>=1/1/2015),--($D$2:$D$78

  • @Gerardocasas_
    @Gerardocasas_ 5 หลายเดือนก่อน

    HEY BRO!!! ONCE I GET THIS JOB I APPLY AND NEED TO SUBMIT A EXCEL FILE - I PROMISE I'LL SEND MONEY TO BUY A COFFEE!!
    LOVE x 1000

  • @unicornchowder
    @unicornchowder 12 ปีที่แล้ว

    I understand how to do this, great video, but how would I alter the function to count the range contains "A" or "B"?
    If there is a video on this I'd happily take a link to that over a comment response if you like.

  • @yardbird46
    @yardbird46 14 ปีที่แล้ว

    Will do. Thank you.

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    Yes, TH-cam is no good for having dialog to get Excel solutions. Any way, try:
    "*?", not "?"
    Try question mark and asterisk, not just question mark.

  • @rpsingh4553
    @rpsingh4553 7 ปีที่แล้ว

    Good morning sir,
    Sir, your videos are useful for the learners.
    There is one issue with countifs. when I try to get the count for more than 3 criteria and with large amount of data(more than 10000 rows) I am getting an error or zero and sometimes wrong figure in answer.
    Please assist

  • @osupdunaway
    @osupdunaway 14 ปีที่แล้ว

    Can you expand the search criteria so that it includes cells that are currently blank but will be filled later? I'm using a table and tabs like video 538 and some of the rows will be blank but I still need it to look at these cells because they will be filled with data later. or is there a better way I should do this? thanks

  • @adnan.bashir
    @adnan.bashir ปีที่แล้ว

    Hello sir, i have implemented "Countif" formula to extract values from different sheets within defined date range but it didn't work. Can i share sample file with you through which you can guide me?

  • @Ravikumar-tv4kr
    @Ravikumar-tv4kr 10 ปีที่แล้ว

    Hi i am facing the problem with countif function with combination of the date function..i tried to figure out the satuday and sundays in a month with the help of countif but im not getting the result..will u please help me out is there any other formula for that ..

  • @anxiousDenis
    @anxiousDenis 7 ปีที่แล้ว

    Hi I don't know if this is the right video or not but I'm going to submit my question here
    I have 300 data in dates ranging from 2016 do 2004, and I want co count how many of this dates is from 1.1.2016 to 31.12. 2016 (one year), and ten for each year I want t the count how can I do this .

  • @viettiennhua4585
    @viettiennhua4585 3 ปีที่แล้ว

    Thanks

    • @excelisfun
      @excelisfun  3 ปีที่แล้ว

      You are welcome!

  • @EangKear
    @EangKear 5 ปีที่แล้ว

    Hello bother, i would like you show me how to count multiple product between dates, it mean we just put the date 01/05/2019-30/06/2019 in excel it show each product are count correctly. Thank you in advance

  • @mohankumar-qy8uc
    @mohankumar-qy8uc 10 หลายเดือนก่อน

    Dear sir,
    What if I have single date criteria of counting of attendance .
    One more thing sir is countifs is applicable for data in horizontal and attendance in vertical .
    Kindly help.

  • @ThinkFutureAcademy
    @ThinkFutureAcademy 2 ปีที่แล้ว

    how to Calculate the PR to PO duration based on the followings:
    If LOA date is available ignore the PO date and calculate the Cycle time from LOA date less RFQ Date (if RFQ date is missing consider the PR Approval Date)
    Waiting your reply.

  • @edprofilevideos
    @edprofilevideos 2 ปีที่แล้ว

    Can this be done the same way with time instead of Date?

    • @excelisfun
      @excelisfun  2 ปีที่แล้ว

      Yes, but time is always a number between 0 and 1, where 8 hours = 8/24 = 1/3 or 0.333333333333333

  • @RS7447-iou
    @RS7447-iou 12 ปีที่แล้ว

    what if instead of having the letter A, B or C on the third criteria I just have text. I am trying to count the number of instances where we have text on rows between two specific dates.

  • @humpreytorrevillas637
    @humpreytorrevillas637 8 ปีที่แล้ว

    HI. im facing a problem when using more than 3 criteria. lets say, using your example, your 3rd criteria is A. but I want to add the 4th criteria which is 'B'. But it is giving me zero answer. please help

  • @RS7447-iou
    @RS7447-iou 12 ปีที่แล้ว

    i did -- I wast just describing that I have also used COUNTIF on another instance only to count the number of cells that have text, and it works ok --- I am using COUNTIFS to count the cells that have text between two date periods --- just tried again to post the formula, but got an error from youtube

  • @RS7447-iou
    @RS7447-iou 12 ปีที่แล้ว

    tried it, still having the same problem. when I use the countif function isolated, just to count the number of instances where there is text in that same column, countif(E9:E54,"*") it works fine, but when I try with the date range it gives me the #VALUE! error

  • @wtbhelbreath5098
    @wtbhelbreath5098 4 ปีที่แล้ว

    I have a list of thousands of dates in MM/DD/YYYY format. I want to count how many unique values in a specific month. For example: In this list of thousands of dates, how many unique dates were there is the month of September 2019? I can't figure out for the life of me how to make this happen.

    • @excelisfun
      @excelisfun  4 ปีที่แล้ว

      In Excel 2010 or later, use formula: =SUMPRODUCT(--(FREQUENCY(IF(Date>=First_Of_Month,IF(Date0))
      2013 or later you can use a Dat Model PivotTable and use the Distinct Count Formula
      Office 365 use formula: =ROWS(UNIQUE(FILTER(Date,((Date>=First_Of_Month)*(Date

    • @excelisfun
      @excelisfun  4 ปีที่แล้ว

      WTB Helbreath, please help support my efforts to provide free education and coaching by commenting and thumbs up on each video that you watch and your Sub : ) I depend of it!!!

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    You have to use COUNTIFS, not COUNTIF.

  • @gugulothsikinder4821
    @gugulothsikinder4821 2 ปีที่แล้ว

    Hi dear...thank you for your support....I need more support from you

  • @vjharry1
    @vjharry1 7 ปีที่แล้ว

    how can count data with multiple criteria in one range

  • @RS7447-iou
    @RS7447-iou 12 ปีที่แล้ว

    I tried "?" but I am still getting a #VALUE!
    I wish I could send you the formula but when I paste into this message I get an error and cannot post the message

  • @customjunctionboxes289
    @customjunctionboxes289 7 ปีที่แล้ว

    Question: I cannot figure out how to use this with multiple sheets. Example in my workbook, I have 4 sheets. (Invoices) (Customers) (Violation Information) & (Statistics). I am trying to copy this concept to the statistics page, which is blank. All it would show is statistical data. However all of the information is between (Invoices) & (Violation Information) Sheet. How can I adapt this [End Date] / [Begin Date] / [Criteria] with the [Total Number] that would be between The (Violation Information) sheet columns and the (Invoices) sheet columns. I cannot get this to work. How can I reference the other sheets data to provide results? This is something that I have been working on for hours, and I cannot figure it out. Please help!

  • @RS7447-iou
    @RS7447-iou 12 ปีที่แล้ว

    youtube will does not allow me to paste the formula for some reason

  • @househead7181
    @househead7181 11 ปีที่แล้ว +1

    THANK YOU! THANK YOU! THANK YOU! After much frustration attempting to calculate 3 fields, my brain says, "Thank you"!