Create stacked column showing hours spent per week

Jooey

New Member
Joined
Apr 23, 2020
Messages
3
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I want to create a chart that takes the amount of hours per project and spreads it over the time period it lasts. The chart should show a stacked column per week with hours for all projects.
X-axis: Week no. Y-axis: Hours.

StackedColumn.jpg
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Can't you add a column in your table with the formula = WEEKNUM(B2,21) or ISOWEEKNUM(B2) and use that as x-axis?
xx depends on how you count week numbers. The intellisense guides you here.
 
Upvote 0
I can use that to find the start week and the end week, and also divide the hours on the amount of weeks.
But I'm not sure where to go from that?

I have been able to create the chart correctly now by creating one column per week in the table (marked yellow). But I have typed in the numbers manually. Is there any way to automatically create the data in those columns?
- Titles in row 1 with correct week numbers for the time span of the projects (week x, week x+1, ...)
- Hours per week per project

StackedColumn2.jpg
 
Upvote 0
Perhaps like so
Book1
ABCDEFGHIJKLMNOPQR
1NameStartEndHrs14151617181920212223242526
2Project11/apr15/apr10028,571435021,42857          
3Project215/apr30/apr200  53,3333393,3333353,33333        
4Project31/apr30/apr202,7586214,8275864,8275864,8275862,758621        
5
Sheet1
Cell Formulas
RangeFormula
F2:R4F2=IF(ISOWEEKNUM($B2)=F$1,$D2/($C2-$B2)*(7-WEEKDAY($B2,2)), IF(ISOWEEKNUM($C2)=F$1,$D2/($C2-$B2)*(WEEKDAY($C2,2)), IF(AND(ISOWEEKNUM($B2)<F$1,ISOWEEKNUM($C2)>F$1), $D2/($C2-$B2)*7,"")))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,150
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