+ Reply to Thread
Results 1 to 3 of 3

Calculating unique days in from a series of ranges

  1. #1
    Registered User
    Join Date
    12-06-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Calculating unique days in from a series of ranges

    I have a series of date ranges and I'm trying to find a solution (ideally without pivot tables) to count the unique days within the ranges by month.

    For example, for the following ranges:

    1/10/2012 - 1/12/2012 (3 total days, 3 unique days in Jan)
    1/12/2012 - 1/15/2012 (4 total days, 3 unique days in Jan, as 1/12 was already counted)
    1/30/2012 - 2/2/2012 (4 total days, 2 unique days in Jan, as 2/1 and 2/2 would fall under February)

    So for January, the total I'd be looking for was 8.

    Had a bunch of false starts, but can't seem to wrap my head around this one. Any suggestions to get me going?

    Thanks,
    Larry

  2. #2
    Registered User
    Join Date
    01-24-2009
    Location
    Leicester, England
    MS-Off Ver
    Excel 2003 &2007
    Posts
    27

    Re: Calculating unique days in from a series of ranges

    I assume that your dates are in two columns.

    I have used A3:B5.

    In C3 try this:-

    "=MIN(B3,EOMONTH(A3,0))-A3+IF(A3>B2,1,0)"

    B2 should not hold text, it upsets the formula.

    This should give you some ideas!

    EllBol

  3. #3
    Registered User
    Join Date
    12-06-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Calculating unique days in from a series of ranges

    Thanks, but this formula doesn't appear to look across the multiple ranges, just a single range.

    Basically, want a file that will look like the attached. To further complicate, I'm trying for a solution that can be using for multiple individuals and would only track unique days in the month for that given individual.
    Attached Files Attached Files

+ 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