+ Reply to Thread
Results 1 to 6 of 6

Countifs Issue while Using Dates

  1. #1
    Registered User
    Join Date
    07-17-2018
    Location
    New York, New York
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Countifs Issue while Using Dates

    I have an issue with my Countifs function. I am looking to calculate the number of entries between certain dates using the function below:

    =COUNTIFS($G$80:$G$329,">="&AE103,$G$80:$G$329,"<="&AF103)+COUNTIFS($J$18:$J$51,">="&AE103,$J$18:$J$51,"<="&AF103)+COUNTIFS($J$54:$J$77,">="&AE103,$J$54:$J$77,"<="&AF103)+COUNTIFS(Table_owssvr6[Posting Date],">="&AE103,Table_owssvr6[Posting Date],"<="&AF103)

    It seems to be working well except for the fact that it does not count any dates that are the same as the "less than or equal to" parameter. Is there something wrong in the function or am I missing something?

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Countifs Issue while Using Dates

    Hi bigred8051. Welcome to the forum.

    We are going to need some context with this one.

    Please upload an Excel workbook that is representative of what you are working with.

    If you are not familiar with how to do this:


    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Dave

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Countifs Issue while Using Dates

    Best guess would be that your dates are date and time, not just date.

    See if this works

    =COUNTIFS($G$80:$G$329,">="&INT(AE103),$G$80:$G$329,"<"&INT(AF103)+1)+COUNTIFS($J$18:$J$51,">="&INT(AE103),$J$18:$J$51,"<"&INT(AF103)+1)+COUNTIFS($J$54:$J$77,">="&INT(AE103),$J$54:$J$77,"<"&INT(AF103)+1)+COUNTIFS(Table_owssvr6[Posting Date],">="&int(AE103),Table_owssvr6[Posting Date],"<"&int(AF103)+1)

  4. #4
    Registered User
    Join Date
    07-17-2018
    Location
    New York, New York
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Re: Countifs Issue while Using Dates

    Attached sample issue
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Countifs Issue while Using Dates

    Dates in column G contain times as well. See post #3.

  6. #6
    Registered User
    Join Date
    07-17-2018
    Location
    New York, New York
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Re: Countifs Issue while Using Dates

    Thanks for the help

+ 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. [SOLVED] Countifs() Issue
    By Prof Sick in forum Excel General
    Replies: 2
    Last Post: 06-23-2018, 08:09 AM
  2. [SOLVED] countifs issue
    By willm in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 03-24-2017, 07:00 AM
  3. COUNTIFS Issue?
    By Silez in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2016, 03:31 PM
  4. COUNTIFS issue
    By Fletch161 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-29-2015, 10:51 AM
  5. [SOLVED] Issue with countifs
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2015, 01:13 AM
  6. COUNTIFS issue
    By Glen- in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2014, 08:29 PM
  7. Issue with COUNTIFS formula and dates
    By cstockus in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 7
    Last Post: 11-27-2013, 08:05 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