Scatter Chart to Show Durations

HJay

New Member
Joined
Nov 30, 2007
Messages
33
I am not sure if this is possible in excel but...

I have my data set up as Date, Event 1 Start Time, Event 1 Duration, Event 1 End Time, Event 2 Start Time, Event 2 Duration, Event 2 End Time. (see image)

What I would like is a scatter chart with Date on the x-axis. I want all the dates from the first day in the range to the last day in the range displayed, i.e. if an event didn't happen on a particular day I want there just to be a blank day.

I would also like time on the y-axis, I want the range to be midnight to midnight, i.e. a full day.

I would like to track events so if Event 1 occurred from 9:00 am and lasted 30 mins, I want to be able to see a vertical line from 9:00 to 9:30.

I also have more than one event type that I would like to see overlayed.

Is this possible? Copilot thought it was but it turns out that it was unable to explain how to do it...

Many thanks :)

Using Excel for Mac, Version 16.92 (24120731), 365 Subscription

Also posted here Scatter Chart with Event Duration
 

Attachments

  • Image 12-12-2024 at 1.02 pm.jpeg
    Image 12-12-2024 at 1.02 pm.jpeg
    187.6 KB · Views: 11
Last edited by a moderator:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
1734425431808.png

Something like this? How I got to this:
- first, times in Excel are basically numbers from 0 to 1 where 00:00 equals 1, 12:00 equals 0,5 and 24:00 equals 1.
- create a scatterplot of the column "EV1 Start Time" (only that one) and set the X-values to the dates, that should get you something like this:
1734425748650.png

- next, make sure that the EV Duration column is not in minutes (so "30" for 30 minutes), but in a fraction of a day (so 00:30, which equals 1/48th). If you want to convert those numbers, the magic factor is 24*60 (so if you do: 30/(24*60) you get 00:30 :-).
- select the points, and through the menu "Chart design"->"add chart element"->"error bars" ->"more options for error bars"
- use the vertical error bar and choose "error display" -> "adjusted" to select for "positive error margin" the range in "EVI Duration"

I hope that gets you started!

Map1
CDEF
15DateEVI Start TimeEVI DurationEVI End time
161-12-202409:0000:3009:30
174-12-202411:0000:3011:30
184-12-202410:0000:3010:30
194-12-202414:2500:3014:55
206-12-202409:0000:0509:05
216-12-202411:0000:2011:20
228-12-202410:0000:4510:45
238-12-202423:2500:3023:55
249-12-202409:0000:0209:02
2510-12-202411:0000:0511:05
2612-12-202410:0000:1010:10
2712-12-202417:4401:3019:14
2813-12-202423:0500:3723:42
2917-12-202411:0000:0211:02
3017-12-202422:0000:4922:49
Blad1
Cell Formulas
RangeFormula
E16:E30E16=(F16-D16)
 
Upvote 1
Solution
View attachment 120401
Something like this? How I got to this:
- first, times in Excel are basically numbers from 0 to 1 where 00:00 equals 1, 12:00 equals 0,5 and 24:00 equals 1.
- create a scatterplot of the column "EV1 Start Time" (only that one) and set the X-values to the dates, that should get you something like this:
View attachment 120402
- next, make sure that the EV Duration column is not in minutes (so "30" for 30 minutes), but in a fraction of a day (so 00:30, which equals 1/48th). If you want to convert those numbers, the magic factor is 24*60 (so if you do: 30/(24*60) you get 00:30 :-).
- select the points, and through the menu "Chart design"->"add chart element"->"error bars" ->"more options for error bars"
- use the vertical error bar and choose "error display" -> "adjusted" to select for "positive error margin" the range in "EVI Duration"

I hope that gets you started!

Map1
CDEF
15DateEVI Start TimeEVI DurationEVI End time
161-12-202409:0000:3009:30
174-12-202411:0000:3011:30
184-12-202410:0000:3010:30
194-12-202414:2500:3014:55
206-12-202409:0000:0509:05
216-12-202411:0000:2011:20
228-12-202410:0000:4510:45
238-12-202423:2500:3023:55
249-12-202409:0000:0209:02
2510-12-202411:0000:0511:05
2612-12-202410:0000:1010:10
2712-12-202417:4401:3019:14
2813-12-202423:0500:3723:42
2917-12-202411:0000:0211:02
3017-12-202422:0000:4922:49
Blad1
Cell Formulas
RangeFormula
E16:E30E16=(F16-D16)
Wow! Thank you so much! that is exactly what I want!

Thank you for explaining it so clearly and especially showing me how to change 30 to 00:30
Brilliant!
 
Upvote 0

Forum statistics

Threads
1,225,478
Messages
6,185,228
Members
453,283
Latest member
Shortm88

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