Sum of Hours w.r.t Today's Date

shashik

New Member
Joined
Mar 7, 2017
Messages
17
So Friends,

I need help regarding below table.

I needs "Hours" for respective Resource, basis the current day.

Please note the range of dates extends beyond below table.

I tried doing it by IF function, but it is too complicated for me after 1st/2nd Logic for me.


[TABLE="class: grid, width: 800, align: left"]
<tbody>[TR]
[TD="align: center"]27-Nov-17[/TD]
[TD="align: center"][/TD]
[TD="align: center"]04-Nov-17[/TD]
[TD="align: center"]11-Nov-17[/TD]
[TD="align: center"]18-Nov-17[/TD]
[TD="align: center"]25-Nov-17[/TD]
[TD="align: center"]02-Dec-17[/TD]
[TD="align: center"]09-Dec-17[/TD]
[TD="align: center"]16-Dec-17[/TD]
[TD="align: center"]23-Dec-17[/TD]
[TD="align: center"]30-Dec-17[/TD]
[/TR]
[TR]
[TD="align: center"]Project[/TD]
[TD="align: center"]Hours[/TD]
[TD="align: center"]10-Nov-17[/TD]
[TD="align: center"]17-Nov-17[/TD]
[TD="align: center"]24-Nov-17[/TD]
[TD="align: center"]01-Dec-17[/TD]
[TD="align: center"]08-Dec-17[/TD]
[TD="align: center"]15-Dec-17[/TD]
[TD="align: center"]22-Dec-17[/TD]
[TD="align: center"]29-Dec-17[/TD]
[TD="align: center"]05-Jan-18[/TD]
[/TR]
[TR]
[TD="align: center"]Resource 1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]Resource 2[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]Resource 3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[/TR]
[TR]
[TD="align: center"]Resource 4[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]40[/TD]
[TD="align: center"]40[/TD]
[TD="align: center"]40[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Please Note I need the Sum of Hours including the future basis the current date.

So Friends,

I need help regarding below table.

I needs "Hours" for respective Resource, basis the current day.

Please note the range of dates extends beyond below table.

I tried doing it by IF function, but it is too complicated for me after 1st/2nd Logic for me.


[TABLE="class: grid, width: 800, align: left"]
<tbody>[TR]
[TD="align: center"]27-Nov-17[/TD]
[TD="align: center"][/TD]
[TD="align: center"]04-Nov-17[/TD]
[TD="align: center"]11-Nov-17[/TD]
[TD="align: center"]18-Nov-17[/TD]
[TD="align: center"]25-Nov-17[/TD]
[TD="align: center"]02-Dec-17[/TD]
[TD="align: center"]09-Dec-17[/TD]
[TD="align: center"]16-Dec-17[/TD]
[TD="align: center"]23-Dec-17[/TD]
[TD="align: center"]30-Dec-17[/TD]
[/TR]
[TR]
[TD="align: center"]Project[/TD]
[TD="align: center"]Hours[/TD]
[TD="align: center"]10-Nov-17[/TD]
[TD="align: center"]17-Nov-17[/TD]
[TD="align: center"]24-Nov-17[/TD]
[TD="align: center"]01-Dec-17[/TD]
[TD="align: center"]08-Dec-17[/TD]
[TD="align: center"]15-Dec-17[/TD]
[TD="align: center"]22-Dec-17[/TD]
[TD="align: center"]29-Dec-17[/TD]
[TD="align: center"]05-Jan-18[/TD]
[/TR]
[TR]
[TD="align: center"]Resource 1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]Resource 2[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]Resource 3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]10[/TD]
[/TR]
[TR]
[TD="align: center"]Resource 4[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]40[/TD]
[TD="align: center"]40[/TD]
[TD="align: center"]40[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
What does the below mean?

So Today is 27-11. So the Total no of hours for Resource 1 should be sum of all columns from week 25-Nov to 1-Dec-17 to the last week i.e. 30-Dec to 05-Jan.

So in this case it would be 120 Hours.

Consider this as a calculation of sum of hours the Resource is allocated each from today.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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