+ Reply to Thread
Results 1 to 9 of 9

Count dates greater than today based on other date criteria

  1. #1
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Count dates greater than today based on other date criteria

    Hi, I want to count the number of dates in a column that are greater than TODAY - Simple but I want this based on the date in another column so if the dates in column A fall in Jan then count the dates greater than today in column B and so on for Feb/Mar etc.

    I have attached a sheet with my current thinking on but this does not seem to work

    =COUNTIFS($A$2:$A$85,">="&$F2,$A$2:$A$85,"<"&EDATE($F2,1),$B$2:$B$85,"<=today()")

    any assistance greatly appreciated Dates are not my strong point!

    Thanks
    Attached Files Attached Files

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Count dates greater than today based on other date criteria

    Syntax!

    Try this:

    =COUNTIFS($A$2:$A$85,">="&$F2,$A$2:$A$85,"<"&EDATE($F2,1),$B$2:$B$85,"<="&TODAY())
    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.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Count dates greater than today based on other date criteria

    Perhaps
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Pepe Le Mokko; 04-21-2022 at 09:34 AM.

  4. #4
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Count dates greater than today based on other date criteria

    Hi AliG thanks for the suggestion but I can't get this to work? it counts 31 for Jan and 23 for Feb when it should be counting 1 for Jan and 2 for Feb? I have included updated sheet to demonstrate in column G

    Thanks Pepe Le Mokko - I am not sure if I am doing something wrong but I get the same result for each - I have added this in column H to demonstrate

    thanks
    Attached Files Attached Files

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Count dates greater than today based on other date criteria

    Syntax again!

    If you want GREATER THAN TODAY:

    =COUNTIFS($A$2:$A$85,">="&$F2,$A$2:$A$85,"<"&EDATE($F2,1),$B$2:$B$85,">"&TODAY())

  6. #6
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Count dates greater than today based on other date criteria

    ahhh Thanks AliG I ma always getting those two pesky lil >< the wrong way round! this works perfectly thank you!

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Count dates greater than today based on other date criteria

    Remember it like this:

    E2>6 - E2 is bigger than six because the wide part of the funnel is against E2.

    E2<6 - E2 is smaller than six because the point of the funnel is against E2.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

    By the way, my user name here is AliGW. not AliG.

  8. #8
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Count dates greater than today based on other date criteria

    Thanks AliGW, Apologies on the incorrect name, trying to do to many things at once.

    I have marked as solved and added reputation. thank you for your assistance

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Count dates greater than today based on other date criteria

    You're welcome. You can use Ali, as that is my name, or AliGW, my user name.

+ 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. Replies: 5
    Last Post: 09-16-2020, 05:00 PM
  2. [SOLVED] Formula to calculate progress between two dates with start date greater than today
    By valeriemt2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2020, 11:22 AM
  3. [SOLVED] Finding Dates Within Date Range (Based on Today's Date) Whilst Matching Name?
    By EduardStoo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-08-2019, 10:31 AM
  4. Replies: 12
    Last Post: 08-05-2015, 05:15 PM
  5. Want to count number of dates greater than a stated date
    By bjorng in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2014, 09:12 PM
  6. Replies: 6
    Last Post: 06-27-2013, 08:49 AM
  7. [SOLVED] sort by date, show records with only dates less than 30 days from today, and count....
    By pbucc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2012, 12:11 PM

Tags for this Thread

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