+ Reply to Thread
Results 1 to 6 of 6

Help with date range within COUNTIFS formula

  1. #1
    Registered User
    Join Date
    04-27-2021
    Location
    London
    MS-Off Ver
    v16.48
    Posts
    10

    Help with date range within COUNTIFS formula

    Hi,

    I'm having some trouble with a COUNTIFS formula. I'm basically trying to do a count of the number of "Bugs" that were "Done" within a date range (1 week period), across a year period. I'm using the following formula which is referencing data in another tab called RAW DATA:

    =COUNTIFS('RAW DATA'!A$2:A$999,"Bug", 'RAW DATA'!H$2:H$999, "Done", 'RAW DATA'!L$2:L$999, ">=19/10/2020", 'RAW DATA'!L$2:L$999, "<=25/10/2020")

    This formula seems to work and correctly counts the number of bugs for this particular week. However, I now want to drag that formula down for 1 years worth of data (for example). Is there a way I can do this so that I don't have to manually fill out the dates for every single week? I can't seem to find a way to make it work.

    Thanks for the help

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Help with date range within COUNTIFS formula

    See if this works copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit: Corrected some formula errors
    Last edited by ChemistB; 04-27-2021 at 02:17 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-27-2021
    Location
    London
    MS-Off Ver
    v16.48
    Posts
    10

    Re: Help with date range within COUNTIFS formula

    Thank you for the help - that didn't work for me but perhaps it's due to how I have the other columns set up. I have attached the Excel and only included the relevant data - you will see it contains the formula on a few of the cells in column D (Sheet1 Tab), where I have had to manually enter the date ranges.

    Thanks again
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,005

    Re: Help with date range within COUNTIFS formula

    =COUNTIFS('RAW DATA'!A$2:A$999,"Bug", 'RAW DATA'!$H$2:H$999, "Done", 'RAW DATA'!$L$2:L$999, ">=" &A2, 'RAW DATA'!L$2:L$999,"<=" &B2)

  5. #5
    Registered User
    Join Date
    04-27-2021
    Location
    London
    MS-Off Ver
    v16.48
    Posts
    10

    Re: Help with date range within COUNTIFS formula

    Thank you very much - this works perfectly!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,005

    Re: Help with date range within COUNTIFS formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Countifs with date range formula Broke
    By rogrand in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2020, 02:56 PM
  2. Countifs match criteria and date is equals to or within date range
    By tiggi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2016, 11:00 AM
  3. COUNTIFS Between Date Range
    By SalientAnimal in forum Excel General
    Replies: 9
    Last Post: 11-05-2014, 10:39 AM
  4. Replies: 2
    Last Post: 05-28-2014, 06:52 AM
  5. [SOLVED] COUNTIFS With Date Range
    By OlYeller21 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2013, 08:32 AM
  6. Using countifs with date range, and summing values in that range
    By bmcoonan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2013, 11:28 AM
  7. Using Date Range in Countifs formula
    By Kenny_D in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-09-2010, 10:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1