Group By Week Commencing

Ally Bally

New Member
Joined
Oct 18, 2003
Messages
15
I have a problem with grouping data to chart in a series of reports run automatically from a series of command buttons.

I need to show on the category axis "Week Commencing" dates but cannot find a way to obtain this data, it will let me use datepart to get week number or month or year. I have used datepart week to obtain the week number and then a table to lookup and convert the week number date but this has now failed as we crossed into the new year, all week 2 data now populates as if week 2 last year and the charts are screwed.

How do I group data by week, ie there are a series of jobs carried out daily which I need to group by week giving a total number of jobs and then use this info in a chart with the category axis set to the week commencing date.

I am beaten at present and getting much stick accordingly.

Thanks
o_O
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Add another parameter to filter for the current year. For example:
New Field -- TransYear:Year([TransDate])
in the Criteria, Year(Date())
If this is to be used for charting, you will need to define the parameters. Do this: Query | Parameters. In the first column, enter the parameter (for example, Year([TransDate]). In the secons column, enter the data type.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,607
Messages
6,160,792
Members
451,671
Latest member
kkeller10

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