+ Reply to Thread
Results 1 to 5 of 5

Count number of days from column of repeating dates

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    7

    Cool Count number of days from column of repeating dates

    I need a formula or code that will count the "number of days" from a column of dates, for example Column A and B has the following:

    Column A
    8/12/2013 AGRAHAM
    8/12/2013 AGRAHAM
    8/12/2013 AGRAHAM
    8/13/2013 AGRAHAM
    8/13/2013 AGRAHAM
    8/13/2013 AGRAHAM
    8/13/2013 AGRAHAM
    8/14/2013 AGRAHAM
    8/14/2013 AGRAHAM
    8/14/2013 AGRAHAM
    8/15/2013 AGRAHAM
    8/16/2013 AGRAHAM
    8/16/2013 AGRAHAM
    8/16/2013 AGRAHAM
    8/16/2013 AGRAHAM

    I need a formula that will populate one cell that there are "5" days listed in column A.

    Bonus question: this list above moves on to another name with another date range as I go down the spreadsheet. If the formula or code could be dragged down (calulating those dates into a "number of days", that would be great!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Count number of days from column of repeating dates

    With you sample data in A2:B27
    and
    C2: a name to count unique dates for....AGRAHAM

    This regular formula returns the count of unique dates for that name
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    08-26-2013
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count number of days from column of repeating dates

    This works like a charm! Thanks Ron!

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Count number of days from column of repeating dates

    A shorter option that uses an ARRAY FORMULA, completed by holding down CTRL and SHIFT when you press ENTER (instead of just pressing ENTER)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-26-2013
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count number of days from column of repeating dates

    This is even better! You rock!

+ 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] Vlookup dates between two dates and count the number of days
    By nishikanth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2013, 03:25 AM
  2. Help on count the number of days in between dates and then average number of days
    By Barbara Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2013, 12:13 PM
  3. Replies: 2
    Last Post: 10-14-2012, 09:19 AM
  4. Replies: 10
    Last Post: 02-10-2012, 07:16 PM
  5. Count number of days between 2 dates
    By Trueno in forum Excel General
    Replies: 14
    Last Post: 03-19-2009, 08:08 AM

Tags for this Thread

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