+ Reply to Thread
Results 1 to 8 of 8

COUNTIF with Date formula

Hybrid View

  1. #1
    Registered User
    Join Date
    12-20-2006
    Posts
    4

    COUNTIF with Date formula

    I need to put together a countif function that counts all the occurances of a particular date, this date is displayed in a given cell, for the purposes of this example I will say D3. D3 contains its own formula to determine which date is displayed. I currently have:

    =COUNTIF(Active!$B$3:$B$65536,D3)

    but this results in 0 everytime. I have a hunch that its due to the formula within cell D3, I know this because when I replace the formula with the resulting date it changes to the number I'm looking for.

    Any advice?

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    =COUNTIF(Active!$B$3:$B$65536,"="&D3)
    HTH
    Carim

  3. #3
    Registered User
    Join Date
    12-20-2006
    Posts
    4
    Carim,

    Thanks, but I also tried that variation. Still getting zero results when I'm starring at 3 occurances on the sheet.

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    In this case, you have a date format problem somewhere ...or in D3

    Do you mind uploading a zipped copy of your worksheet ...?

    Carim

  5. #5
    Registered User
    Join Date
    12-20-2006
    Posts
    4
    Attached.

    I'm trying to list the number of occurances of D3 in the range & results in D6 & the same for E3&E6 etc....
    Attached Files Attached Files

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    In cell A1, replace now() by today() ...

    as I told you the date formats can be tricky ... now() shows both today() and the exact time ... which prevents any matches ...


    HTH
    Carim

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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