+ Reply to Thread
Results 1 to 4 of 4

Using the Count functin to calculate dates between a specific time period

Hybrid View

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    St. Louis MO
    MS-Off Ver
    Excel 2007
    Posts
    5

    Using the Count functin to calculate dates between a specific time period

    I am struggling with creating a formula that references a date column on another sheet to provide the total of dates that are between a specific time period. ie. during the last week.

    This is what I have come up with thus far:

    =COUNTA('Data Entry'!P2:P58999,">=TODAY()-7,<=Today()")

    Not sure if a countif or a countifs statement should be used.

    I want to total entries for dates that have been entered during the time period of 'last week'

    Also, will be needing a formula to calculate entries the same entries that have dates during the last month.

    Thanks.

  2. #2
    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
    30,736

    Re: Using the Count functin to calculate dates between a specific time period

    Try

    =COUNTIFS('Data entry'!P:P,">=" &TODAY()-7,'Data entry'!P:P,"<=" &TODAY())

    This is last 8 days so change ">=" or "<=" as required

    For previous month

    =COUNTIFS('Data entry'!P:P,">=" & A1,'Data entry'!P:P,"<=" &EOMONTH(A1,0))

    where A1=Start of month date e.g. 01/02/2017 (1st Feb)

  3. #3
    Registered User
    Join Date
    11-08-2013
    Location
    St. Louis MO
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Using the Count functin to calculate dates between a specific time period

    Thanks. I really appreciate the response. I got the weekly formula working as needed, however, I did not try the monthly formula. Made the executive decision since we are not going to track the data by months at this time. It may come in handy in the future. I had been battling with this formula off and on for two days.

  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
    30,736

    Re: Using the Count functin to calculate dates between a specific time period

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

+ 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. Calculate the monthly payment for a specific time period
    By Barni01 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-17-2014, 09:24 AM
  2. Display dates of a specific day in a given period of time
    By krz1407 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2013, 09:42 AM
  3. [SOLVED] count number of dates within given time period
    By j.farr3ll in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-16-2013, 11:14 AM
  4. [SOLVED] How to calculate the average for specific Time period
    By bssol in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-15-2013, 02:21 AM
  5. Formula to not count hours before and after a specific set time period
    By Chrislawsin in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-16-2012, 06:29 PM
  6. Replies: 2
    Last Post: 04-27-2011, 08:21 AM
  7. Formula count occurences in a specific time period
    By sarahmad in forum Excel General
    Replies: 7
    Last Post: 10-26-2009, 01:33 PM

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