Allocating Percentages by Project Year Worked

powerhouse789

New Member
Joined
Apr 6, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I'm trying to get Excel to allocate how much % of a project will be completed in each budget year. It works sometimes but depending on the project start/end dates, it sometimes doesn't add up to 100%. Here is an image of how I have it setup and the formula I'm using in I7, which is the year it is having trouble in this example. I7 should equal 29.16667% so that the total percent in J7 adds up to 100%.

=ROUNDDOWN(MAX((EOMONTH(H$5,11)-H$5)+1-MAX($C$7-H$5,0)-MAX(EOMONTH(H$5,11)-$C$3,0),0)/((H$6-H$5)/12),1)/$B7

1649275226566.png
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try just =ROUND(MAX((EOMONTH(H$5,11)-H$5)+1-MAX($C$7-H$5,0)-MAX(EOMONTH(H$5,11)-$C$3,0),0)/((H$6-H$5)/12),1)/$B7
 
Upvote 0
Changing the beginning of the formula to "ROUND" instead of "ROUNDDOWN" as you suggested works in this particular instance, but not with other dates. I'm thinking the issue is with the # of days in a time period depending on the starting month. Is there a different formula besides EOMONTH that could help? I also tried YEARFRAC but get similar issues.
 
Upvote 0
YEARFRAC DATEDIF and EOMONTH would give the same 364 365 or 366 days.
 
Upvote 0
Book1
ABCDEFGHIJ
1
2StartEnd
301/Sep/202131/Aug/2023
4Y1Y2Y3Y4Y5Y6
502/Jan/201801/Feb/201901/Feb/202001/Feb/202101/Feb/202201/Feb/2023Total
631/Jan/201931/Jan/202031/Jan/202131/Jan/202231/Jan/202331/Jan/2024
7Task 12401/Sep/2021   20.96%50.00%29.04%100.00%
8Task 21201/Sep/2021   41.92%58.08% 100.00%
Sheet1
Cell Formulas
RangeFormula
E5:I5E5=D6+1
E6:I6E6=EDATE(D6,12)
D7:I8D7=IF(OR($C7>D$6,(EDATE($C7,$B7)-1)<D$5),"",(MIN(D$6,EDATE($C7,$B7)-1)-MEDIAN($C7,D$5,D$6)+1)/(MIN(EDATE($C7,$B7)-1,$C$3)-MAX($C7,$B$3)+1))
J7:J8J7=SUM(D7:I7)
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top