+ Reply to Thread
Results 1 to 7 of 7

count number of dates within given time period

Hybrid View

  1. #1
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,509

    Re: count number of dates within given time period

    it doesn't seem to limit to counting 4 or more follow ups within a year though?
    Well, you didn't say "within a year". It is counting occurrences of that patient ID, less 1, assuming the first visit doesn't count. Hence, is the helper column >= 4?

    Unless you repeat the referral date in each patient record, I don't see how you will be able to produce the figure that you are looking for. If you do, you might be able to use a COUNTIFS function to calculate how many entries are within a given timeframe, for example, referral date + 365.

    The separate elements of the formula would create a matrix of TRUE or FALSE entries. The -- coerces those boolean values int 1s and 0s which can then be multiplied together and added up.


    Regards, TMS
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. [SOLVED] Count the number of months between 2 dates but only in a defined period
    By forrestgump1980 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-28-2014, 05:24 PM
  2. Count unique occurrences of dates within period
    By areynolds in forum Excel General
    Replies: 6
    Last Post: 10-26-2011, 01:31 PM
  3. Replies: 2
    Last Post: 05-28-2010, 04:57 PM
  4. How to count dates in a 12 month rolling period
    By butlej6 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-05-2008, 06:00 PM
  5. How do I count dates in a 12 month rolling period?
    By butlej6 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2008, 05:25 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