How to spread project hours weekly

LGEARY

New Member
Joined
Apr 18, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I need to auto-spread project hours into columns by week which are dependent upon a start and finish date AND if today is past the finish date, any remaining hours need to be automatically placed in the current week column. I can't figure out how to combine these functions into one formula.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
@LGEARY,
welcome to the Mr. Excel Forum. The forum has a tool called xl2bb add in (link below) that allows you to post mini worksheets.
Can you use that to post what your columns look like and then another portion of what your expected results would be (manual calculation).
Thank you,
 
Upvote 0
@LGEARY,
welcome to the Mr. Excel Forum. The forum has a tool called xl2bb add in (link below) that allows you to post mini worksheets.
Can you use that to post what your columns look like and then another portion of what your expected results would be (manual calculation).
Thank you,
our company does not allow us to download anything... can i post a picture of what i am asking about?
 
Upvote 0
our company does not allow us to download anything... can i post a picture of what i am asking about?
the problem with pictures is that the forum needs to recreate your scenario completely in order to try to figure out what you want. It helps in that respect. but it is susceptible to typos and errors. And it takes time to do that.

You can copy and paste a range of cells that has your data but be sure the columns you copy have headers so we know what they are (even the column letters would be helpful, and the same concept for rows (although that is not that critical). But that will not copy your formulas so you need to identify the cells with the formulas that you want examined, and the formula itself. Then you should also post a table of expected values.

Usually only 5-10 rows of data is all that is needed, sometimes just one.

We look forward to seeing the data and examples.
 
Upvote 0
the problem with pictures is that the forum needs to recreate your scenario completely in order to try to figure out what you want. It helps in that respect. but it is susceptible to typos and errors. And it takes time to do that.

You can copy and paste a range of cells that has your data but be sure the columns you copy have headers so we know what they are (even the column letters would be helpful, and the same concept for rows (although that is not that critical). But that will not copy your formulas so you need to identify the cells with the formulas that you want examined, and the formula itself. Then you should also post a table of expected values.

Usually only 5-10 rows of data is all that is needed, sometimes just one.

We look forward to seeing the data and examples.
HI... here is what i have so far... Row 2 contains part of the formula in cells K2, M2 and N2.... then i have a different formula in the other rows because i need to somehow combine the 2... ultimate outcome i'm looking for is:

IF column D says it's OPEN, spread the hours by week from start date to issued date BUT if today's date (column N) is =to or passed the Issued date, put the all of the remaining hours in column N.

DesignerDB - for help.xlsm
ABCDEFGHIJKLMNOPQRST
1Designer NameTask #Task Task StatusEstimated HoursSpent HoursRemaining HoursStart DateActual Finish DateTo be Issued By Date Rem # of Hours per week# OF WEEKS REMAINING04/23/2304/30/2305/07/2305/14/2305/21/2305/28/2306/04/23
2Allen, Nathan1IFCClosed6.02.04.011/22/212/7/232/10/234.00.04.00.00.00.00.00.00.0
3Allen, Nathan60OTHERClosed80.00.080.05/15/236/12/236/30/237711.40.00.00.00.00.00.00.0
4Allen, Nathan13IFROpen30.00.030.03/6/233/17/234/30/23883.80.00.00.00.00.00.00.0
5Allen, Nathan13IFCOpen10.00.010.03/20/233/31/233/31/23225.010.00.00.00.00.00.00.0
6Allen, Nathan14IFROpen20.00.020.03/6/233/10/236/15/2314151.31.30.00.00.00.00.00.0
7Allen, Nathan14IFCOpen4.00.04.03/13/233/17/233/17/23114.04.00.00.00.00.00.00.0
8Allen, Nathan100OTHEROpen10.00.010.03/20/233/20/233/24/231110.010.00.00.00.00.00.00.0
9Allen, Nathan5AS-BUILTAs-Built In Process10.00.010.02/13/232/24/233/9/23342.510.00.00.00.00.00.00.0
10Allen, Nathan2AS-BUILTAs-Built In Process40.00.040.02/20/233/3/233/30/23566.70.00.00.00.00.00.00.0
11Allen, Nathan120AS-BUILTAs-Built In Process20.05.015.01/9/231/16/231/30/23335.00.00.00.00.00.00.00.0
12Allen, Nathan168AS-BUILTAs-Built In Process3.02.01.01/30/232/14/232/28/23450.20.00.00.00.00.00.00.0
13Allen, Nathan169AS-BUILTAs-Built In Process10.00.010.03/13/233/17/233/31/23333.30.00.00.00.00.00.00.0
Allen, Nathan
Cell Formulas
RangeFormula
N1N1=(TODAY())+8-WEEKDAY(TODAY())
O1:T1O1=N1+7
K2K2=IFERROR(($G2/$M2),$G2)
M2M2=IF(ROUND(($J2-$N$1)/7,0)>=0,ROUND(($J2-$N$1)/7,0),0)
N2N2=IF($N$1>=$J2,$G2,$K2)
O2:T13O2=IF(E2="open",(IF(O$1=MEDIAN($H2,$J2,O$1),$M2,IF($J2<TODAY(),$G2,"0.0"))),"0.0")
K3:K13K3=(J3-H3)/7
L3:L13L3=ROUNDUP(K3,0)
M3:M13M3=+G3/L3
N3:N13N3=IF($D2="open",(IF(N$1=MEDIAN($H3,$J3,N$1),$M3,IF($J3<TODAY(),$G3,"0.0"))),"0.0")
G2:G13G2=+E2-F2
Cells with Data Validation
CellAllowCriteria
A2:A13List='Dropdown lists'!$B$3:$B$16
C2:C20List='Dropdown lists'!$L$3:$L$11
D2:D20List='Dropdown lists'!$N$3:$N$6
 
Upvote 0
HI... here is what i have so far... Row 2 contains part of the formula in cells K2, M2 and N2.... then i have a different formula in the other rows because i need to somehow combine the 2... ultimate outcome i'm looking for is:

IF column D says it's OPEN, spread the hours by week from start date to issued date BUT if today's date (column N) is =to or passed the Issued date, put the all of the remaining hours in column N.

DesignerDB - for help.xlsm
ABCDEFGHIJKLMNOPQRST
1Designer NameTask #Task Task StatusEstimated HoursSpent HoursRemaining HoursStart DateActual Finish DateTo be Issued By Date Rem # of Hours per week# OF WEEKS REMAINING04/23/2304/30/2305/07/2305/14/2305/21/2305/28/2306/04/23
2Allen, Nathan1IFCClosed6.02.04.011/22/212/7/232/10/234.00.04.00.00.00.00.00.00.0
3Allen, Nathan60OTHERClosed80.00.080.05/15/236/12/236/30/237711.40.00.00.00.00.00.00.0
4Allen, Nathan13IFROpen30.00.030.03/6/233/17/234/30/23883.80.00.00.00.00.00.00.0
5Allen, Nathan13IFCOpen10.00.010.03/20/233/31/233/31/23225.010.00.00.00.00.00.00.0
6Allen, Nathan14IFROpen20.00.020.03/6/233/10/236/15/2314151.31.30.00.00.00.00.00.0
7Allen, Nathan14IFCOpen4.00.04.03/13/233/17/233/17/23114.04.00.00.00.00.00.00.0
8Allen, Nathan100OTHEROpen10.00.010.03/20/233/20/233/24/231110.010.00.00.00.00.00.00.0
9Allen, Nathan5AS-BUILTAs-Built In Process10.00.010.02/13/232/24/233/9/23342.510.00.00.00.00.00.00.0
10Allen, Nathan2AS-BUILTAs-Built In Process40.00.040.02/20/233/3/233/30/23566.70.00.00.00.00.00.00.0
11Allen, Nathan120AS-BUILTAs-Built In Process20.05.015.01/9/231/16/231/30/23335.00.00.00.00.00.00.00.0
12Allen, Nathan168AS-BUILTAs-Built In Process3.02.01.01/30/232/14/232/28/23450.20.00.00.00.00.00.00.0
13Allen, Nathan169AS-BUILTAs-Built In Process10.00.010.03/13/233/17/233/31/23333.30.00.00.00.00.00.00.0
Allen, Nathan
Cell Formulas
RangeFormula
N1N1=(TODAY())+8-WEEKDAY(TODAY())
O1:T1O1=N1+7
K2K2=IFERROR(($G2/$M2),$G2)
M2M2=IF(ROUND(($J2-$N$1)/7,0)>=0,ROUND(($J2-$N$1)/7,0),0)
N2N2=IF($N$1>=$J2,$G2,$K2)
O2:T13O2=IF(E2="open",(IF(O$1=MEDIAN($H2,$J2,O$1),$M2,IF($J2<TODAY(),$G2,"0.0"))),"0.0")
K3:K13K3=(J3-H3)/7
L3:L13L3=ROUNDUP(K3,0)
M3:M13M3=+G3/L3
N3:N13N3=IF($D2="open",(IF(N$1=MEDIAN($H3,$J3,N$1),$M3,IF($J3<TODAY(),$G3,"0.0"))),"0.0")
G2:G13G2=+E2-F2
Cells with Data Validation
CellAllowCriteria
A2:A13List='Dropdown lists'!$B$3:$B$16
C2:C20List='Dropdown lists'!$L$3:$L$11
D2:D20List='Dropdown lists'!$N$3:$N$6

i have figured this out so no longer need help.... glad to know this is here though.... have a good day.
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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