+ Reply to Thread
Results 1 to 4 of 4

How to count dates in a 12 month rolling period

  1. #1
    Registered User
    Join Date
    06-05-2008
    Posts
    8

    How to count dates in a 12 month rolling period

    Hello,

    I have a collum in which i wish to enter dates. I'm looking for sum that will only count the dates that are within the last 12 months from todays date.

    Can anyone help?
    Last edited by butlej6; 06-05-2008 at 05:10 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You could try

    =SUMPRODUCT(--(A1:A26>=DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()))),--(A1:A26<=TODAY()))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    06-05-2008
    Posts
    8
    Thanks that seems to have done the job.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    butlej6,

    I suggest you read the forum rules about cross posting to.
    Please confirm you have read and understand the rules

    VBA Noob

+ 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. Count by month
    By Miguel54 in forum Excel General
    Replies: 2
    Last Post: 05-02-2008, 01:44 PM
  2. Count number of dates in one month
    By korygrandy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-18-2008, 04:20 PM
  3. Counting data based on a date period eg. Month
    By jennyp in forum Excel General
    Replies: 3
    Last Post: 01-17-2008, 09:02 PM
  4. Count the hours of each day for the month
    By kdraper in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2007, 06:42 AM
  5. count between dates
    By Jymoz in forum Excel General
    Replies: 5
    Last Post: 01-05-2007, 05:43 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