how to create stacked bar for schedule/utilization

duckie

New Member
Joined
Jun 18, 2019
Messages
1
Hi community,

I need help creating the chart that shows how much time of the day a room has been used/been idle. Sort of look like a bar code. How do i create that? I have data of the time the procedure starts and its duration.

[TABLE="width: 202"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]ID[/TD]
[TD]Start time[/TD]
[TD]Exam Duration[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]11:20[/TD]
[TD="align: right"]01:18[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]12:39[/TD]
[TD="align: right"]00:13[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]12:54[/TD]
[TD="align: right"]00:29[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]13:25[/TD]
[TD="align: right"]00:24[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]13:52[/TD]
[TD="align: right"]00:34[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]14:26[/TD]
[TD="align: right"]00:37[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]15:05[/TD]
[TD="align: right"]00:20[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]15:46[/TD]
[TD="align: right"]00:24[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]16:12[/TD]
[TD="align: right"]00:40[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]16:55[/TD]
[TD="align: right"]00:33[/TD]
[/TR]
</tbody>[/TABLE]

When I try to make a stacked bar graph, it comes out in different rows. How do I "collapse" the different rows together so that it's all in one row? (like a bar code)

Thanks so much in advance for your help!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
something like this?

[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td=bgcolor:#5B9BD5]ID[/td][td=bgcolor:#5B9BD5]Start time[/td][td=bgcolor:#5B9BD5]Exam Duration[/td][td][/td][td=bgcolor:#70AD47]ID[/td][td=bgcolor:#70AD47]DurationTot[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
1​
[/td][td=bgcolor:#DDEBF7]
11:20​
[/td][td=bgcolor:#DDEBF7]
01:18​
[/td][td][/td][td=bgcolor:#E2EFDA]
1​
[/td][td=bgcolor:#E2EFDA]
0.05:32:00​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
1​
[/td][td]
12:39​
[/td][td]
00:13​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
1​
[/td][td=bgcolor:#DDEBF7]
12:54​
[/td][td=bgcolor:#DDEBF7]
00:29​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
1​
[/td][td]
13:25​
[/td][td]
00:24​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
1​
[/td][td=bgcolor:#DDEBF7]
13:52​
[/td][td=bgcolor:#DDEBF7]
00:34​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
1​
[/td][td]
14:26​
[/td][td]
00:37​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
1​
[/td][td=bgcolor:#DDEBF7]
15:05​
[/td][td=bgcolor:#DDEBF7]
00:20​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
1​
[/td][td]
15:46​
[/td][td]
00:24​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
1​
[/td][td=bgcolor:#DDEBF7]
16:12​
[/td][td=bgcolor:#DDEBF7]
00:40​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
1​
[/td][td]
16:55​
[/td][td]
00:33​
[/td][td][/td][td][/td][td][/td][/tr]
[/table]
 
Upvote 0

Forum statistics

Threads
1,226,739
Messages
6,192,740
Members
453,755
Latest member
IQBS

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