+ Reply to Thread
Results 1 to 5 of 5

Counting a date range

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    Leeds
    Posts
    12

    Counting a date range

    Hi,

    Can anyone tell me what the formula would be to do a count of all the dates in a certain column that is less than or equal to todays date?

    I have got the following so far but it doesn't work, it just gives me back 0 even though it should be an amount:

    =COUNTIF('Master data'!AW6:AW1000,"<=today_date")

    I would really appreciate any help

    Thanks

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Counting a date range

    Hi

    If you have the date you wish to use in a cell, e.g. A1 then the following formula will work
    Please Login or Register  to view this content.
    Regards

    Jeff

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Counting a date range

    Your criterion is:
    "<="&TODAY()


    HTH

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Counting a date range

    Also - Jeff's solution is better if you're using this a lot (long column for example) as today() is volatile (google it) so it's better to use it as little as possible. You would probably need to make the reference absolute though ($A$1).

    CC

  5. #5
    Registered User
    Join Date
    09-25-2008
    Location
    Leeds
    Posts
    12

    Re: Counting a date range

    Thanks! that worked great!

    Appreciate the help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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