+ Reply to Thread
Results 1 to 7 of 7

COUNT IF function when dates are in column

  1. #1
    Registered User
    Join Date
    02-11-2017
    Location
    Singapore
    MS-Off Ver
    10
    Posts
    98

    COUNT IF function when dates are in column

    Hi
    I am trying to create an excel with various rows and column.
    The dates will be in column.
    I want to count all the "Y" fall between two date range.
    I have attached simple data table
    A1 to T2 data table.
    C7 and E7 date range
    I want the total no of Y to be generated in B9

    Thank you for your kind assistance
    Attached Files Attached Files

  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
    53,048

    Re: COUNT IF function when dates are in column

    Try this...
    =COUNTIFS($A2:$T2,"y",$A$1:$T$1,">="&$C$7,$A$1:$T$1,"<="&E7)
    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
    09-29-2007
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    55

    Re: COUNT IF function when dates are in column

    Found one I could help with but I was too slow!

  4. #4
    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
    53,048

    Re: COUNT IF function when dates are in column

    cricket, dont let that stop you just because someone has posted a suggestion, doesnt mean that is whatthe OP wanted, or that even if it is, it's always possible there could be a better way to do it

  5. #5
    Registered User
    Join Date
    02-11-2017
    Location
    Singapore
    MS-Off Ver
    10
    Posts
    98

    Re: COUNT IF function when dates are in column

    Quote Originally Posted by FDibbins View Post
    Try this...
    =COUNTIFS($A2:$T2,"y",$A$1:$T$1,">="&$C$7,$A$1:$T$1,"<="&E7)
    Many thanks FDibbins!

  6. #6
    Registered User
    Join Date
    09-29-2007
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    55

    Re: COUNT IF function when dates are in column

    Quote Originally Posted by FDibbins View Post
    cricket, dont let that stop you just because someone has posted a suggestion, doesnt mean that is whatthe OP wanted, or that even if it is, it's always possible there could be a better way to do it
    Thanks FDibbins. In this case the solution I came to was effectively identical to yours so I didn't bother but I take your point!

  7. #7
    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
    53,048

    Re: COUNT IF function when dates are in column

    ash, happy to help and thanks to both for the feedback

+ 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. Column chart, one data column of dates: count of month & year
    By brucemc777 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-11-2016, 12:49 PM
  2. [SOLVED] Count cells = 0 in column B between dates in column A
    By wannabeexcelguy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2015, 12:06 AM
  3. [SOLVED] Count unique values in Column A, only if value in Column F falls between two dates
    By Sritcho in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2014, 08:30 AM
  4. Replies: 1
    Last Post: 12-18-2012, 03:09 PM
  5. If count function with dates
    By van_vugt in forum Excel General
    Replies: 4
    Last Post: 06-29-2012, 10:02 AM
  6. A function to count the number of weeks between dates?
    By DorothyFan1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2011, 09:25 AM
  7. Count how many dates are in a column
    By famico78 in forum Excel General
    Replies: 2
    Last Post: 11-18-2008, 08:18 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