+ Reply to Thread
Results 1 to 8 of 8

Counting Dates-a large number of events

  1. #1
    Jerry
    Guest

    Counting Dates-a large number of events

    I get a report every day that lists a large number of
    events by date. There are many per date and I would like
    a formula that counts the number of times a date is
    repeated. I would also like to take it one step further
    and count the number of times an event happens per date.
    Any suggestions?


  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    suggest you look at countif function - easy to set up but exactly how depends on wheether your dates are dates or text.
    not a professional, just trying to assist.....

  3. #3
    CLR
    Guest

    re: Counting Dates-a large number of events

    =COUNTIF(A1:A26,"01/02/03") will tell you how many times the date 01/02/03
    occurs in the range A1:A26

    =SUMPRODUCT((A1:A26=1/2/3)+(B1:B26="event1")) will tell you how manytimes on
    that date a corresponding "Event1" showed up in range B1:B26

    Vaya con Dios,
    Chuck, CABGx3


    "Jerry" <[email protected]> wrote in message
    news:[email protected]...
    > I get a report every day that lists a large number of
    > events by date. There are many per date and I would like
    > a formula that counts the number of times a date is
    > repeated. I would also like to take it one step further
    > and count the number of times an event happens per date.
    > Any suggestions?
    >




  4. #4
    CLR
    Guest

    re: Counting Dates-a large number of events

    Sorry, the first one is fine, but the second one fell apart with more
    testing, and I'm about to fall off my chair right now, so can't go on
    tonight........hopefully someone else will pick up on it for you, or I will
    try again tomorrow......

    Vaya con Dios,
    Chuck, CABGx3


    "CLR" <[email protected]> wrote in message
    news:[email protected]...
    > =COUNTIF(A1:A26,"01/02/03") will tell you how many times the date 01/02/03
    > occurs in the range A1:A26
    >
    > =SUMPRODUCT((A1:A26=1/2/3)+(B1:B26="event1")) will tell you how manytimes

    on
    > that date a corresponding "Event1" showed up in range B1:B26
    >
    > Vaya con Dios,
    > Chuck, CABGx3
    >
    >
    > "Jerry" <[email protected]> wrote in message
    > news:[email protected]...
    > > I get a report every day that lists a large number of
    > > events by date. There are many per date and I would like
    > > a formula that counts the number of times a date is
    > > repeated. I would also like to take it one step further
    > > and count the number of times an event happens per date.
    > > Any suggestions?
    > >

    >
    >




  5. #5
    Biff
    Guest

    re: Counting Dates-a large number of events

    Hi!

    Dates in column A
    Events in column B

    =SUMPRODUCT(--(A1:A20=DATE(2005,1,1)),--(B1:B20="event"))

    OR enter a date in C1:

    =SUMPRODUCT(--(A1:A20=C1),--(B1:B20="event"))

    Biff

    >-----Original Message-----
    >Sorry, the first one is fine, but the second one fell

    apart with more
    >testing, and I'm about to fall off my chair right now, so

    can't go on
    >tonight........hopefully someone else will pick up on it

    for you, or I will
    >try again tomorrow......
    >
    >Vaya con Dios,
    >Chuck, CABGx3
    >
    >
    >"CLR" <[email protected]> wrote in message
    >news:[email protected]...
    >> =COUNTIF(A1:A26,"01/02/03") will tell you how many

    times the date 01/02/03
    >> occurs in the range A1:A26
    >>
    >> =SUMPRODUCT((A1:A26=1/2/3)+(B1:B26="event1")) will tell

    you how manytimes
    >on
    >> that date a corresponding "Event1" showed up in range

    B1:B26
    >>
    >> Vaya con Dios,
    >> Chuck, CABGx3
    >>
    >>
    >> "Jerry" <[email protected]> wrote in

    message
    >> news:[email protected]...
    >> > I get a report every day that lists a large number of
    >> > events by date. There are many per date and I would

    like
    >> > a formula that counts the number of times a date is
    >> > repeated. I would also like to take it one step

    further
    >> > and count the number of times an event happens per

    date.
    >> > Any suggestions?
    >> >

    >>
    >>

    >
    >
    >.
    >


  6. #6
    Registered User
    Join Date
    03-22-2005
    Posts
    2
    On the topic of dates, I have a simialr question;

    I have a column of admission dates in the format dd/mm/yyyy.

    These dates cover a range of several years.

    I want to count all the dates for a given year eg count all 1999, count all 2000 etc. Each of these will be separate calculations. I simply need a sum of the amount of times each year occurs.

    I have tried the COUNTIF function but can seem to get the year detected.

    Any help would really be appreciated.

    Alan

  7. #7
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    =SUMPRODUCT((YEAR(A1:A1000)=2005)*1)

    substitute your range for a1:a1000 and change the year for each calculation

  8. #8
    Registered User
    Join Date
    03-22-2005
    Posts
    2
    duane

    Excellent and thank you, it is exactly what I wanted.

    One question tho, why the *1? What does it do?

    regards, Alan

+ 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