+ Reply to Thread
Results 1 to 3 of 3

Formula to count number of dates in an array

  1. #1
    Lilasviolet
    Guest

    Formula to count number of dates in an array

    I have a column of dates and it will keep on increasing. I need a formula
    that will count how many items I have between a start and an end date.

    I can do the =if portion but I'm tired of looking for how to get it to add
    up how many meet my condition.

  2. #2
    Jason Morin
    Guest

    Re: Formula to count number of dates in an array

    With dates in column A, start date in C1, and end date in
    D1, try:

    =COUNTIF(A:A,">="&C1)-COUNTIF(A:A,">"&D1)

    HTH
    Jason
    Atlanta, GA

    >-----Original Message-----
    >I have a column of dates and it will keep on increasing.

    I need a formula
    >that will count how many items I have between a start

    and an end date.
    >
    >I can do the =if portion but I'm tired of looking for

    how to get it to add
    >up how many meet my condition.
    >.
    >


  3. #3
    Ron Rosenfeld
    Guest

    Re: Formula to count number of dates in an array

    On Thu, 7 Apr 2005 10:45:05 -0700, "Lilasviolet"
    <[email protected]> wrote:

    >I have a column of dates and it will keep on increasing. I need a formula
    >that will count how many items I have between a start and an end date.
    >
    >I can do the =if portion but I'm tired of looking for how to get it to add
    >up how many meet my condition.


    What do you mean, exactly?

    To count the number of rows that contain a date between the start and end
    dates:

    =COUNTIF(dts,">="&StartDate) - COUNTIF(dts,">"&EndDate)

    where dts is your column containing the dates.

    The same logic can be applied to SUMIF if that is more appropriate for your
    setup.


    --ron

+ 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