Sum by week of the year

phitho

New Member
Joined
Aug 26, 2014
Messages
34
Ok this might be a good one....

I have a sheet with employee names, time worked, and dates on which the work was completed. Is it possible to have Excel calculate the total time worked by an employee (lets use John as a name example) by the week of the year?

For example, the week starting on 3/5/2018 (March 5, 2018) is the 10th week of the year (according to ISO standard, see this webpage: https://www.epochconverter.com/weeks/2018), the formula would calculate for that week. This is something I want to do rather than constantly having to modify my between ranges, I would just change the week number...
 

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.
you could add an extra column populated with weeknum() and use that, e.g. to drive a pivot table.
 
Upvote 0
Take a lookup at the ISOWEEKNUM function.
You could then use a helper column and do something like Table 1 or if you don't want a helper column then something like Table 2 in example below.
Excel Workbook
ABCDEFGHI
1NameDateValueWeek #Table 1
2John2/1/201815Week#/ NameJohnSamMary
3Sam2/8/2018265100
4John2/9/2018366320
5Sam2/16/2018477040
6Sam2/23/2018588050
7Mary3/7/20186109000
8John3/10/20187101015015
9John3/10/2018810110100
10Mary3/11/2018910
11Sam3/18/20181011Table 2
12Sam3/19/20181112Week#/ NameJohnSamMary
13John3/26/201812135100
14Sam4/2/201813146320
15Sam4/9/201814157040
16John4/16/201815168050
17Mary4/23/201816179000
18Mary4/30/201817181015015
19John5/7/20181819110100
20Sam5/14/20181920
21John5/21/20182021
Sheet
 
Upvote 0
"Take a lookup at the ISOWEEKNUM function."

On reflection that would have been a better suggestion than mine, given the actual question ;)
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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