+ Reply to Thread
Results 1 to 7 of 7

HELP!! Calculating capacity by year

Hybrid View

regionrat63 HELP!! Calculating capacity... 08-15-2017, 10:42 AM
JohnnyEnglish750 Re: HELP!! Calculating... 08-15-2017, 10:46 AM
regionrat63 Re: HELP!! Calculating... 08-15-2017, 10:55 AM
regionrat63 Re: HELP!! Calculating... 08-15-2017, 11:26 AM
JohnTopley Re: HELP!! Calculating... 08-15-2017, 12:00 PM
regionrat63 Re: HELP!! Calculating... 08-15-2017, 12:22 PM
JohnTopley Re: HELP!! Calculating... 08-15-2017, 12:46 PM
  1. #1
    Registered User
    Join Date
    08-15-2017
    Location
    munster, indiana
    MS-Off Ver
    2010
    Posts
    4

    HELP!! Calculating capacity by year

    Hi all! Currently having a problem calculating capacity by date for a spreadsheet.

    I have a start and finish dates for people and I want to calculate capacity by year for that person. So for example, if they started 3/17/2014 and left the company on 7/27/2015, I need a formula that can look at those dates and calculate capacity for 2014 (3/17/2014 - 12/31/2014) and then another column that has capacity for 2015 (1/1/2015-7/27/2015). The set capacity is 1000 hours a year.

    I used YEARFRAC to get their total year in decimal form to multiply by the 1000 hours a year, but I was not able to find out a way to separate it by individual years for individual year columns.

    Thanks!

  2. #2
    Registered User
    Join Date
    08-08-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Re: HELP!! Calculating capacity by year

    attach the file so someone could better help you

  3. #3
    Registered User
    Join Date
    08-15-2017
    Location
    munster, indiana
    MS-Off Ver
    2010
    Posts
    4

    Re: HELP!! Calculating capacity by year

    Here is the attached basic file explaining what I am looking to do
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-15-2017
    Location
    munster, indiana
    MS-Off Ver
    2010
    Posts
    4

    Re: HELP!! Calculating capacity by year

    bumping this ^

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,743

    Re: HELP!! Calculating capacity by year

    In D3

    =IF(D$1=YEAR($A3),YEARFRAC($A3,DATE(D$1,12,31)),IF(D1=YEAR($B3),YEARFRAC(DATE(D$1,1,1),$B3),IF(D$1>YEAR($B3),0,1)))

    Row has years without text i.e 2014, 2015 etc

  6. #6
    Registered User
    Join Date
    08-15-2017
    Location
    munster, indiana
    MS-Off Ver
    2010
    Posts
    4

    Re: HELP!! Calculating capacity by year

    Can you explain the reasoning in this formula to me?^^

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,743

    Re: HELP!! Calculating capacity by year

    =IF(D$1=YEAR($A3),YEARFRAC($A3,DATE(D$1,12,31)),IF(D1=YEAR($B3),YEARFRAC(DATE(D$1,1,1),$B3),IF(D$1>YEAR($B3),0,1)))

    The RED section checks if the start year = year in D1: if True, the YEARFRAC is start date to 31 dec of that year

    The Green checks if the year is the finish year: if true, then yearFRAC is from Jan 1st to End date.

    The last part checks if we are past the end year date: if True, st to 0, otherwise it must be a whole year so set to 1,

    Reviewing the formula I added another test ...

    =IF(D$1 < YEAR($A3),0,IF( D$1=YEAR($A3),YEARFRAC($A3,DATE(D$1,12,31)),IF(D1=YEAR($B3),YEARFRAC(DATE(D$1,1,1),$B3),IF(D$1>YEAR($B3),0,1))))

    If Start Year > D1, set to 0.

+ 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. Capacity Column Formula Is Not Calculating
    By izgetsmail in forum Excel General
    Replies: 7
    Last Post: 07-16-2017, 03:00 AM
  2. Capacity Column Not Calculating After 2nd Daily Inventory Is Entered / Help
    By izgetsmail in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2017, 11:38 PM
  3. calculating year on year percentage price increases
    By Icehockey44 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-25-2016, 09:39 AM
  4. [SOLVED] Calculating Current Capacity on Fuel Tanks
    By GeminiG in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2016, 01:15 PM
  5. table calculating complex capacity with variables
    By eli_88 in forum Excel General
    Replies: 5
    Last Post: 09-18-2015, 12:43 PM
  6. help calculating year to year commissioned payroll
    By csmith461 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2013, 11:08 PM
  7. calculating year over year growth (with a twist)
    By jspinx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2010, 05:57 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