+ Reply to Thread
Results 1 to 5 of 5

COUNTIF using dates

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    51

    COUNTIF using dates

    I need to do a count on a column that should contain dates. Can I write the criteria to be a nonspecific date, kind of like ",", but in date format? I obviously want to return a count of dates entered. But if a figure that is not a date gets entered into the column incorrectly, I don't want to show a count for that cell.

    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: COUNTIF using dates

    2 ways to try...
    A
    B
    1
    4/8/2015
    4/10/2015
    2
    4/9/2015
    4/12/2015
    3
    4/10/2015
    Qty
    4
    4/11/2015
    3
    5
    4/12/2015
    3
    6
    4/13/2015
    7
    4/14/2015
    8
    4/15/2015

    B5=COUNTIFS($A$1:$A$8,">="&B1,$A$1:$A$8,"<="&B2)
    B6=COUNTIFS($A$1:$A$8,">="&DATE(2015,4,10),$A$1:$A$8,"<="&DATE(2015,4,12))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-22-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    51

    Re: COUNTIF using numbers and text

    I have a column that will have numbers and potentially a word in it. I want to perform two COUNTIF functions (in two separate cells). The first, which I wrote properly already, counts the number of times that word is in the column. The second function, which I'm having trouble with for some reason, needs to count the number of numeric values in the column while leaving the text-filled cells uncounted.

  4. #4
    Registered User
    Join Date
    03-22-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    51

    Re: COUNTIF using dates

    Quote Originally Posted by FDibbins View Post
    2 ways to try...
    A
    B
    1
    4/8/2015
    4/10/2015
    2
    4/9/2015
    4/12/2015
    3
    4/10/2015
    Qty
    4
    4/11/2015
    3
    5
    4/12/2015
    3
    6
    4/13/2015
    7
    4/14/2015
    8
    4/15/2015

    B5=COUNTIFS($A$1:$A$8,">="&B1,$A$1:$A$8,"<="&B2)
    B6=COUNTIFS($A$1:$A$8,">="&DATE(2015,4,10),$A$1:$A$8,"<="&DATE(2015,4,12))
    Thanks,

    In the meantime, I made that problem work and realized I had a problem I was having more trouble with.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: COUNTIF using dates

    =COUNTIF($N$2:$R$4,"aa")
    and
    =COUNTIF($N$2:$R$4,">0")

+ 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. COUNTIF function with Dates & due dates.
    By kcowper in forum Excel General
    Replies: 3
    Last Post: 03-10-2011, 12:51 AM
  2. CountIF Between 2 Dates
    By cakonopka in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-14-2007, 01:14 PM
  3. Countif using dates
    By Bugaglugs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  4. Countif using dates
    By Bugaglugs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM

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