Spreading Values while dates....

Dclem

New Member
Joined
Jan 11, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have been trying to figure out a formula to show how many days a project would take if a start date was given and hours of project assuming a person worked 8 hrs per day. See example below. I used the formula
MIN(D$3-SUM($F$3:G3),8), which will "spread" the "8" until it reaches "0", but when i tried to trigger when a date is reached, =IF(C$3>=J$1,MIN(D$3-SUM($F$3:G3),8),0), it only shows 1 date with an "8" in it. I tried calculating end date using WORKDAYS(C$3,D$3/8) which is 1/15/2020, but couldn't figure out how to stop at end date. Is this possible? Examples of how data should look below.

ScreenShot1.JPG
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Starting in F1 try :=IF($C3>=F$1,MIN($D3-SUM($E3:E3),8),0)
pull right and down
 
Upvote 0
Try this
Rich (BB code):
=IFERROR(IF(AND(F$1>=$C3,DATEDIF($C3,F$1,"D")<$D3/8), 8, ""),"")

Book1
CDEFGHIJKLMNOPQRSTUVW
1Date30/12/201931/12/201901/01/202002/01/202003/01/202004/01/202005/01/202006/01/202007/01/202008/01/202009/01/202010/01/202011/01/202012/01/202013/01/202014/01/202015/01/202016/01/2020
2Project StartHrs
303/01/202072    888888888     
409/01/202032          8888    
506/01/202048       888888     
Sheet1
Cell Formulas
RangeFormula
F3:W5F3=IFERROR(IF(AND(F$1>=$C3,DATEDIF($C3,F$1,"D")<$D3/8), 8, ""),"")
 
Upvote 0
Just noticed you skip weekends in your dates. Try this instead
Rich (BB code):
=IFERROR(IF(AND(F$1>=$C3,NETWORKDAYS($C3,F$1)<=$D3/8), 8, ""),"")

Book1
ABCDEFGHIJKLMNOPQRST
1Date30/12/201931/12/201901/01/202002/01/202003/01/202006/01/202007/01/202008/01/202009/01/202010/01/202013/01/202014/01/202015/01/202016/01/2020
2Project StartHrs
303/01/202072    888888888 
409/01/202032        8888  
506/01/202048     888888   
6
7
Sheet1
Cell Formulas
RangeFormula
F3:S5F3=IFERROR(IF(AND(F$1>=$C3,NETWORKDAYS($C3,F$1)<=$D3/8), 8, ""),"")
 
Upvote 0
Juddaaa that worked....never would have thought of doing it that way! Thanks.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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