+ Reply to Thread
Results 1 to 10 of 10

COUNTIFS between 2 dates

  1. #1
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    COUNTIFS between 2 dates

    this formula works fine for me...

    =COUNTIFS(Data!$M$980:$M$2000,"C*",Data!$I$980:$I$2000,">=01/01/2017",Data!$I$980:$I$2000,"<=31/01/2017",Data!$J$980:$J$2000,"1")

    I wish to insert date from cell B1 (which is 01/01/2017)

    I don't know to write formula..please help.

    something like ....
    =COUNTIFS(Data!$M$980:$M$2000,"C*",Data!$I$980:$I$2000,">=B1(YEAR),B1(MONTH),B1(DAY)",Data!$I$980:$I$2000,"<=B1(YEAR),B1(MONTH),B1(END OF MONTH)",Data!$J$980:$J$2000,"1")


    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,956

    Re: COUNTIFS between 2 dates

    Why cant you just reference B1 directly?

    Something like...
    =COUNTIFS(Data!$M$980:$M$2000,"C*",Data!$I$980:$I$2000,">="&B1,Data!$I$980:$I$2000,"<="&EOMONTH(b1,0),Data!$J$980:$J$2000,"1")
    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
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: COUNTIFS between 2 dates

    Try this:

    =COUNTIFS(Data!$M$980:$M$2000,"C*",Data!$I$980:$I$2000,">="&B1,Data!$I$980:$I$2000,"<="&EOMONTH(B1,0),Data!$J$980:$J$2000,"1")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  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
    52,956

    Re: COUNTIFS between 2 dates

    ...echooooooo...chooooo...hoooooo...ooooooo...
    lol

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: COUNTIFS between 2 dates

    Snap!

  6. #6
    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,956

    Re: COUNTIFS between 2 dates

    that HAS to be GMTA, rather than FSD

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: COUNTIFS between 2 dates

    BST - it's just before six o'clock. I'm an early riser!

  8. #8
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: COUNTIFS between 2 dates

    hehe! thanks guys...highly appreciate

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: COUNTIFS between 2 dates

    You're welcome!

  10. #10
    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,956

    Re: COUNTIFS between 2 dates

    happy to help

    (GMTA = great minds think alike)

+ 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. Countifs counting dates with concurrents dates as one
    By tom8635 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2015, 12:38 PM
  2. [SOLVED] COUNTIFS between 2 dates - how to calculate for blank dates
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-13-2014, 12:03 AM
  3. Help with CountIfs looking between dates
    By Whittle82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2013, 02:21 PM
  4. #VALUE! When using countifs with dates
    By jsgately in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2012, 01:09 PM
  5. Countifs with Dates
    By shuddle in forum Excel General
    Replies: 2
    Last Post: 01-10-2012, 12:12 PM
  6. Countifs with dates
    By Terkel333 in forum Excel General
    Replies: 2
    Last Post: 02-21-2011, 07:10 AM
  7. Replies: 3
    Last Post: 07-19-2010, 01:02 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