Charting Duration of Events

Nugget

New Member
Joined
Feb 2, 2009
Messages
25
Hello,
I am trying to chart some data that contains events that last for a random duration. Lets say I have some data like this (for 20 seconds):
seconds, value
0 OFF
1 OFF
2 OFF
3 ON
4 ON
5 ON
6 OFF
7 OFF
8 ON
9 ON
10 ON
11 ON
12 ON
13 OFF
14 OFF
15 OFF
16 ON
17 ON
18 ON
19 ON
20 ON
It is kind of like a gantt chart but I need all of the events on a single line.
The ASCII art lis like this (the underscores would be spaces):
___||||||___|||||||||||||||_______|||||||||||||
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

I know there must be a way, but I'm not seeing it.
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Use an if statement to convert the "Ons" to 1 nad "Offs" to 0. Then you will have some numeric data to plot
 
Upvote 0
Yes I did that, that will let me create a line chart, but I need/want a bar chart. I tried chaning the width of the line but it also changes the "zero" values on the line. I would go through and change each indiviual data points, but I have over 665,000 data points to do with this.
 
Upvote 0

Forum statistics

Threads
1,224,386
Messages
6,178,288
Members
452,835
Latest member
ExcelNerd24

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