+ Reply to Thread
Results 1 to 4 of 4

Calculate amount of days per year within range

  1. #1
    Registered User
    Join Date
    10-20-2014
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    2

    Calculate amount of days per year within range

    Hi all,

    I would be very glad if someone could help me figure out the following:

    On the basis of the two column A (startdate of project) and B (enddate of project) I would like to calculate the amount of days within a given year in the range between A and B to calculate the amount of costs on that basis. If come to the point where I have a ridiculous amount of DATEIF formulas based on the premise that the one formula has to be able to deal with projects starting mid-year. Also, as I am dealing with project for the next ten years starting dates and ending dates may overlap.

    In short: I can calculate column C (DATEDIF) but what I am looking for is a formula to calculate the amount of days in each year within the range of a given project. So for row1; amount of days in 2015, amount of days in 2016 and amount of days in 2017.

    For instance with the following data:


    A(start project) B(end project) C(total days)
    1 01-01-2015 01-01-2017
    2 01-01-2019 01-06-2021
    3 01-06-2016 01-06-2017

    Really appreciate all the help I can get here) Thanks!!

    Kind regards,

    Bart

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Calculate amount of days per year within range

    Try

    Please Login or Register  to view this content.
    Where a1 and b1 are your start and finish dates respectively.

    Because you want a number of results for each year you'll need to copy this to other cells and amend the year accordingly. This will give you the number of days in 2015. Change the 2015 and 2014 to get other years
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    10-20-2014
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    2

    Re: Calculate amount of days per year within range

    Works like a charm mate! Thanks! Had to built in a IF to remove the negative values but I think I worked it out!

    Many thanks.

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Calculate amount of days per year within range

    Glad it worked

+ 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] How to calculate debtors ageing amount in days on FIFO basis
    By King_BD in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-20-2015, 10:57 PM
  2. Calculate age if there were 112 days in a year
    By army in forum Excel General
    Replies: 7
    Last Post: 12-09-2014, 04:59 PM
  3. [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
  4. Calculate Regular savings where the amount saved increases every year
    By flossy129 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-01-2012, 01:41 PM
  5. 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