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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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