Calculating Schedule Time in Bins

watdahek

New Member
Joined
Nov 9, 2009
Messages
19
I have a large amount of schedule data that I am trying to bucket into half hour increments. I am looking for any assistance on the best way to do this. Here are the 4 important columns:

1) Segment Start Time (ex. 05/02/2015 12:33:00)
2) Segment End Time (ex. 05/02/2015 13:33:00)
3) Segment Duration - min (ex. 60)
4) Segment Code (ex. Paid Break)

[TABLE="width: 690"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]SEG_START_TIME[/TD]
[TD]SEG_END_TIME[/TD]
[TD]SEG_DURATION_MIN[/TD]
[TD]SEG_CODE_DESC[/TD]
[/TR]
[TR]
[TD]05/02/2015 12:33:00[/TD]
[TD]05/02/2015 13:33:00 PM[/TD]
[TD]60[/TD]
[TD]Paid Break 1[/TD]
[/TR]
</tbody>[/TABLE]

I am looking for a way to move this data into a pre-defined table so that I know how many minutes were worked in a specific code during each half hour increment. I suppose I could work this out with a very long IF formula but I am thinking there has to be a better way.

The output for the above record would look something like this:

[TABLE="width: 690"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD="align: right"]12:30[/TD]
[TD="align: right"]13:00[/TD]
[TD="align: right"]13:30[/TD]
[/TR]
[TR]
[TD]Paid Break[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]3
[/TD]
[/TR]
</tbody>[/TABLE]

Any help is greatly appreciated,
Steve
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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