+ Reply to Thread
Results 1 to 3 of 3

Count days between two dates, split by year

  1. #1
    Registered User
    Join Date
    12-11-2019
    Location
    montreal
    MS-Off Ver
    Version 16.32 (19120802)
    Posts
    2

    Count days between two dates, split by year

    Hello to all,

    I would like some help on a problem I am having when trying to count the number of days between two dates, and then index the number of days for each year.

    It is hard to explain so I am attaching a file to better illustrate the problem I am running into. I am basically looking for a formula in the highlighted cells D3:I20 that will show the number of days that are included in each year, from the two dates in columns A and B.

    I have tried different formulas with combinations of IF and DAYS formulas, but this exceeds my skills in Excel. Does anybody have any ideas ?

    I really appreciate any help/input.

    Thank you all,
    Attached Files Attached Files
    Last edited by marcandrecote; 12-11-2019 at 06:41 PM.

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    484

    Re: Count days between two dates, split by year

    Try placing the following formula in cell D3 and drag-copying it as needed:

    =MAX(0,MIN($B3,D$2&"-12-31")-MAX($A3,(D$2-1)&"-12-31"))

  3. #3
    Registered User
    Join Date
    12-11-2019
    Location
    montreal
    MS-Off Ver
    Version 16.32 (19120802)
    Posts
    2

    Re: Count days between two dates, split by year

    Thank you Root_ ... That works Great !
    Much appreciated !

+ 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. Replies: 2
    Last Post: 01-03-2019, 05:36 PM
  2. Replies: 0
    Last Post: 07-04-2018, 03:28 PM
  3. Year wise cumulative split of days
    By vijayca in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2018, 06:03 AM
  4. Replies: 16
    Last Post: 08-22-2017, 11:20 AM
  5. [SOLVED] Split Dates Into Quarters (Academic Year UK)
    By JonHuwJones in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-12-2017, 09:03 AM
  6. [SOLVED] Count days for specific year falling within in multi-year date range
    By jslo2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 05:58 PM
  7. Convert a multiple year list of 365 days/year into an equivalent of 360 days/year
    By lobotomy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2012, 05:39 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