MS Access 2010 query showing work minutes completed in each hour by task within a shift

Wingfoot

New Member
Joined
Oct 10, 2014
Messages
37
Hi

I'm trying to organise the data shown below so that it calculates the number of minutes a particular task was carried out for, within in each hour, over a 12 hour shift from 06:00 to 18:00. See raw data below:


DateIDLast NameFirst NameActual StartActual EndActivity description
19/04/20156921798SmithJohn19/04/2015 16:3419/04/2015 16:50Breaks
19/04/20156921798SmithJohn19/04/2015 14:3519/04/2015 16:34D1 Marshalling
19/04/20156921798SmithJohn19/04/2015 16:5019/04/2015 18:00D1 Marshalling
19/04/20156921798SmithJohn19/04/2015 14:0519/04/2015 14:35Breaks
19/04/20156921798SmithJohn19/04/2015 10:1819/04/2015 14:05D1 Marshalling
19/04/20156921798SmithJohn19/04/2015 06:0619/04/2015 10:04DC1 Loading Other
19/04/20156921798SmithJohn19/04/2015 10:0419/04/2015 10:18Breaks
19/04/20156921798SmithJohn19/04/2015 05:5219/04/2015 06:04Briefing
19/04/20156921798SmithJohn19/04/2015 06:0419/04/2015 06:06D1 Stock

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col></colgroup>


This is the format I'd like to convert the data to using a query:


DateIDLast NameFirst NameActivity description06:0007:0008:0009:0010:0011:0012:0013:0014:0015:0016:0017:00
19/04/20156921798SmithJohnBriefing4
19/04/20156921799SmithJohnD1 Stock2
19/04/20156921800SmithJohnDC1 Loading Other546060604
19/04/20156921801SmithJohnBreaks14
19/04/20156921802SmithJohnD1 Marshalling426060605
19/04/20156921803SmithJohnBreaks30
19/04/20156921804SmithJohnD1 Marshalling256034
19/04/20156921805SmithJohnBreaks16
19/04/20156921806SmithJohnD1 Marshalling1060

<tbody>
</tbody><colgroup><col><col><col><col><col><col span="12"></colgroup>


So, for example, in the first hour from 6:00 to 7:00, there were 3 different activities which took 4 minutes, 2 minutes and 54 minutes respectively, all together making up the 60 minutes.
Many thanks for your help.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,221,783
Messages
6,161,913
Members
451,730
Latest member
BudgetGirl

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