+ Reply to Thread
Results 1 to 6 of 6

Count cells with specific date

Hybrid View

  1. #1
    Registered User
    Join Date
    08-05-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    Windows 7
    Posts
    16

    Count cells with specific date

    I am trying to count how many times an account has been worked on each day and have not been able to find a formula.

    Ive tried
    =countif(B:B,"*11/3/2015*")
    but get no results.

    sample.JPG

    I need to count how many cells contain
    11/1/2015
    11/2/2015
    11/3/2015
    11/4/2015
    until current.

    Thanks in advance for all the help
    Last edited by Cookiemonstuh; 11-09-2015 at 02:57 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,507

    Re: Count cells with specific date

    The only way I could get it to work was with a helper column. If you are open to that, then put this in cell D2 and drag down.
    =ROUNDDOWN(B2,0)
    Then do put this countif elsewhere...
    =COUNTIF(D:D,42311) Where you use the numerical value of the date instead of the date.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count cells with specific date

    You could also use a pivot table grouped on the date to give a count for each date.
    E
    F
    23
    Row Labels Count of Date
    24
    11/03/2015 12:22
    13
    25
    12/03/2015 12:22
    1
    26
    13/03/2015 12:22
    3
    27
    Grand Total
    17


    If you want to see your data calculated, please upload a workbook with the data.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Count cells with specific date

    Hello
    If you don't wish to use an helper column try either of the following:

    Formula: copy to clipboard
    =SUMPRODUCT(--(INT($B$2:$B$1000)=$D2))


    Formula: copy to clipboard
    =COUNTIFS($B$2:$B$1000,">="&$D2,$B$2:$B$1000,"<"&$D2+1)


    Here D2 contains the date, drag down for following dates.

    Also I've tried to avoid referencing the whole of column B, not very efficient.

    Hope this helps.
    DBY

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count cells with specific date

    With the dates in D2 and down and the original data in columns A:C and the account in E2 the dates in column F enter this is G2 and fill down to give the count each day for the account named.
    Formula: copy to clipboard
    =SUMPRODUCT( ($A$2:$A$100=$E$2)*(LEFT($B$2:$B$100,5)=LEFT(F2,5)))

    This treats each date and time as a serial number and uses only the left 5 digits.
    If you want to use the Date function:
    Formula: copy to clipboard
    =SUMPRODUCT( ($A$2:$A$100=$E$2)*(DATE(YEAR($B$2:$B$100),MONTH($B$2:$B$100),DAY($B$2:$B$100))=DATE(YEAR(F2),MONTH(F2),DAY(F2))))


    To just get the transactions for each day modify the formula to
    Formula: copy to clipboard
    =SUMPRODUCT( ($A$2:$A$100>0)*(DATE(YEAR($B$2:$B$100),MONTH($B$2:$B$100),DAY($B$2:$B$100))=DATE(YEAR(F4),MONTH(F4),DAY(F4))))

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count cells with specific date

    Here is a setup similar to yours giving totals per day, totals per Admin, etc using Pivot Tables, Countifs, Sumproduct, and Sumproduct with Account #. (Formulae have been provided previously in other messages.)
    Attached Files Attached Files

+ 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. Replies: 4
    Last Post: 02-11-2015, 09:02 AM
  2. [SOLVED] Count cells within a specific date range that contain a specific word
    By oneillp1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-23-2014, 08:34 AM
  3. [SOLVED] Count number of cells with a date format that have a specific age range
    By te31 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-11-2013, 04:30 PM
  4. Count number of cells with specific date and time range
    By cle12000 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-25-2013, 01:42 PM
  5. Replies: 1
    Last Post: 02-05-2013, 09:14 AM
  6. Replies: 8
    Last Post: 07-13-2012, 09:02 AM
  7. Formula to count down to a specific date
    By Clamjowster in forum Excel General
    Replies: 2
    Last Post: 10-10-2007, 05:07 PM

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