+ Reply to Thread
Results 1 to 7 of 7

count my dates...

  1. #1
    Registered User
    Join Date
    09-23-2008
    Location
    Chicagoland
    Posts
    21

    Question count my dates...

    Column A has a long list of dates in it like this....

    9/20/08
    9/21/08
    9/21/08
    9/21/08
    9/22/08
    9/22/08
    9/23/08
    9/23/08
    9/23/08
    9/23/08

    I need a formula to count the dates that are the same and display the count number.

    result...

    9/20/08 1
    9/21/08 3
    9/22/08 2
    9/23/08 4
    etc.

    Any ideas?
    Last edited by canonelan2; 10-04-2008 at 08:08 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    First create the column of unique dates using DATA|Filter|Advanced Filter...

    Then use Countif() formula to count numbers...

    e.g. =Countif($A$1:$A$100,B1) where A1:A100 is your original list and B1 is the first unique date...
    copy formula down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-23-2008
    Location
    Chicagoland
    Posts
    21

    Question

    Quote Originally Posted by NBVC View Post
    First create the column of unique dates using DATA|Filter|Advanced Filter...

    Then use Countif() formula to count numbers...

    e.g. =Countif($A$1:$A$100,B1) where A1:A100 is your original list and B1 is the first unique date...
    copy formula down.
    Countif is perfect! Thanks!

    Question about the DATA|Filter|Advanced Filter, can something like that be done on the fly? (automatically?) So when I add new data to the main worksheet, it will notice I added dates and place the new dates on the secondary worksheet?

    Thanks again!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You'll need a macro for that... which you would might as well put the countif formula in too.

    ... but I am not a VBA programmer ...sorry.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You'll need a macro for that... which you would might as well put the countif formula in too.

    ... but I am not a VBA programmer ...sorry.

  6. #6
    Registered User
    Join Date
    09-23-2008
    Location
    Chicagoland
    Posts
    21
    that's fine... I just did a fill down to add the dates for the rest of the year. On days with no new data it will return a zero. That's fine by me.

    Another question. Now that I have a list of entries per date (thanks to you)...

    9/20/2008 14
    9/21/2008 77
    9/22/2008 119
    9/23/2008 92
    9/24/2008 10
    9/25/2008 0

    how can I make another list that will count by month?

    August 1,957
    September 312
    October 0

    Thanks!

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You would need to list the Months first in say E1:E12.. then use formula:

    =SUMPRODUCT(--(TEXT($A$1:$A$6,"mmmm")=E1),$B$1:$B$6)

    copied down. Adjust ranges to suit... where A1:A6 lists dates and B1:B6 corresponding numbers.

+ 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 of each day between two dates
    By AndyTheAnimal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-01-2008, 02:39 AM
  2. Count based on letter designations and dates
    By Karleajensar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2007, 10:11 AM
  3. count between dates
    By Jymoz in forum Excel General
    Replies: 5
    Last Post: 01-05-2007, 05:43 PM
  4. count number of dates after filtering
    By hondasteed01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2006, 03:18 AM
  5. count blanks with dates
    By thalpo in forum Excel General
    Replies: 3
    Last Post: 09-25-2006, 02:37 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