+ Reply to Thread
Results 1 to 7 of 7

Count Dates In A Month

  1. #1
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Talking Count Dates In A Month

    Below is a column of data from one of my spreadsheets. I would like to count the total number of manufacturing days. For instance from the data below shows three dates 5/5/2014, two dates for 5/8/2014 and so forth. The value I'm trying to get is 12 (in the case of the data below). I would prefer not using VBA. I use Excel 2013 as our spreadsheet tool.


    5/5/2014
    5/5/2014
    5/5/2014
    5/8/2014
    5/8/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/15/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/16/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/17/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/19/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/20/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/21/2014
    5/23/2014
    5/23/2014
    5/23/2014
    5/23/2014
    5/23/2014
    5/23/2014
    5/23/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/27/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/28/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014
    5/29/2014

    Tony
    Last edited by ajocius; 02-02-2015 at 06:02 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Count Dates In A Month

    Try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Count Dates In A Month

    With your data in column A, in B1 enter 1 and in B2 enter:



    Please Login or Register  to view this content.
    and copy down.........This marks each unique date only once.

    and then
    Please Login or Register  to view this content.
    gives you 12.
    Gary's Student

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Count Dates In A Month

    Or this confirmed with ctrl+shift+enter (not just enter):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    So you don't need to take care of references

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Count Dates In A Month

    Hi,

    My answer is similar to Jakob's above but a little different. I like to use a helper column that shows the number of a date in the column. Then I simply find all the first count of those dates. See the attached.

    Using SumProduct works but confuses me.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Count Dates In A Month

    If the dates are in order as shown then it would be sufficient to count the number of times the dates change, so assuming the data starts at A2 try

    =SUMPRODUCT((A2:A500<>A3:A501)+0)

    Note that the two ranges are "offset" by 1 row
    Audere est facere

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count Dates In A Month

    Or with an pivot table.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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 workdays for each month between two dates
    By MitchellG in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-16-2013, 02:01 PM
  2. Count days per month between two dates
    By ryets in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2013, 03:16 PM
  3. Count dates that fall in a certain month
    By bommar2 in forum Excel General
    Replies: 15
    Last Post: 04-28-2011, 11:41 AM
  4. Count number of dates in one month
    By korygrandy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-18-2008, 04:20 PM
  5. Count the dates in a month
    By s2m via OfficeKB.com in forum Excel General
    Replies: 5
    Last Post: 08-04-2006, 12:40 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