Weekday to first day of the week

undemane

Board Regular
Joined
Nov 19, 2007
Messages
75
In column B, I have dates. I need to figure out what the first working day in that week was, and populate that date in another column.
For e.g., if I had 1/13/11 in B2, then in C2, I want the date 1/10/11.

I am trying to figure out how many events I had each week. My thought is to do a pivot table to show how many events started on week of 1/10/11, and the weeks thereafter. Is there an easier way to accomplish this?
 
If you use a Pivot you don't need to normalise the dates - you can Group the Date Field in your Pivot by Day, setting start date as the Monday prior to first record and with an Interval specified of 7.
 
Upvote 0
How do I sort the pivot table? My Row Labels are PLANNED_START, Column Labels = FACILITY, and E VALUES = COUNT OF BUILD for the Pivot table.
 
Upvote 0
If the dates are true dates then the values should sort automatically (earliest to latest)

below is a brief outline of what I was talking about - A:B source the Pivot which resides in E:F

Dates have been Grouped by Date with start date set to 11-Oct-2010 and Interval set to 7.
Event is Data Field set to COUNT


Excel Workbook
ABCDEF
1dateevent11/10/2010Count of event
208/02/2011adateTotal
307/12/2010a11/10/2010 - 17/10/20101
421/04/2011a01/11/2010 - 07/11/20101
509/04/2011a22/11/2010 - 28/11/20102
614/03/2011a06/12/2010 - 12/12/20101
709/03/2011a20/12/2010 - 26/12/20101
823/04/2011a27/12/2010 - 02/01/20111
930/12/2010a24/01/2011 - 30/01/20111
1021/02/2011a31/01/2011 - 06/02/20111
1124/11/2010a07/02/2011 - 13/02/20111
1217/10/2010a14/02/2011 - 20/02/20111
1324/12/2010a21/02/2011 - 27/02/20111
1431/03/2011a28/02/2011 - 06/03/20111
1501/11/2010a07/03/2011 - 13/03/20111
1603/02/2011a14/03/2011 - 20/03/20111
1723/11/2010a28/03/2011 - 03/04/20111
1825/01/2011a04/04/2011 - 10/04/20111
1928/02/2011a18/04/2011 - 24/04/20112
2014/02/2011aGrand Total19
Sheet8
 
Upvote 0
I am with you on column C, but how did you get the data in col. E-F? I was trying to use a Pivot table, but I don't see where I can do interval = 7. Thank you for your help.
 
Upvote 0

Forum statistics

Threads
1,226,835
Messages
6,193,236
Members
453,782
Latest member
ssg

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