Time sheet as bars with breaks as Excel chart

CyrusTexas

New Member
Joined
Aug 7, 2017
Messages
7
Hello, I am trying to create an Excel chart that functions as a time sheet (names on the y-axis and time of day on the x-axis) and I am having a lot of trouble doing this! This is not an problem when there are no time-off breaks during working hours but incorporating those gaps for each person in the chart is what is proving to be very challenging. I hope the following example will clarify things further:

As an example, for employee John who works, say, from 9A until 12 noon, takes a 15 min break, then restarts work at 1215P until a second break at 2P and works a final shift from 215P until 500P, I would like to show a single line for John from 9A until 5P but with two breaks in that line accounting for the two 15 min breaks at noon and 2P.

Would someone please help? Thank you!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi, are you after something that resembles this?
1588679038755.png


To show the gaps, you need a time series (per interval of 15') and then plot the "presence" against that interval.
 
Upvote 0
With a bit of set-up it can look like so
1588680366408.png
 
Upvote 0
Thank you GraH! Yes, that is exactly what I am looking for with a time series chart but I cannot seem to get it to show up like that. Would you please show me the format of your input data for John, Mike, and Bert in the second chart? I do appreciate your help!
 
Upvote 0
I can do that tomorrow. On my smartphone now without Excel. Kind of difficult.
Attempt to explain:
It is a xy scatter, first value is a custom format "name" where each name is actualy a number 1,2,3. Then an emty row. The x-values are each 15 minutes from start until end.
The Axis is defined with custom values. 1/24 is 1 hour and I have defined the intervals as 1/96 or 15 minutes.
 
Upvote 0
CyrusTexas, as promised yesterday.
mr Excel forum-solving rank on 2 columns.xlsx
CDEF
2JohnMikeBert
36:00JohnMikeBert
46:15
59:0013
69:1513
79:3013
89:4513
910:0013
1010:1513
1110:3013
1210:4513
1311:00123
1411:15123
1511:30123
1611:45123
1712:00123
1812:1523
1912:30123
2012:45123
2113:00123
2213:15123
2313:30123
2413:45123
2514:00123
2614:15
2714:301
2814:451
2915:001
3015:1512
3115:3012
3215:4512
3316:0012
3416:1512
3516:3012
3616:4512
3717:0012
3817:1512
Sheet4
Cell Formulas
RangeFormula
C4,C6:C38C4=C3+TIME(0,15,0)

Custom format of the cells at "6:00", though it is possible a simple label can also do.
1588768593716.png


Label as Value From Cells option
1588768805054.png

X-axis set-up
1588768422586.png
 
Last edited:
Upvote 0
You're welcome. Nice to see the appreciation so thanks for the feedback. And... since you liked, then hit the likes :)
 
Upvote 0
Hello GraH, I really did not want to bother you again but it is taking me way too long to figure out the last step for my time-sheet chart and it was more efficient to swallow my pride and request your assistance again!

I thought we could attach files here but it turns out we cannot do so. It would be very convenient if you could work off the attached image or what you had because despite your instructions and countless online searches, I cannot seem to get my y-axis labels to represent the staff names like you were able to do. I realize that is a lot of work but even a brief stepwise protocol would help a lot. Thank you!

1588979315330.png
 
Upvote 0
Hi,
I think I spot where you are in trouble.

The names need to be datapoints. Where you have put the names type in the numbers 1,2,3 and 4. They will show up on the chart.

Then to add the names either label only the first datapoint of all the series or custom format the values of the first datapoints. So 1 is formatted as "John", 2 as "James", and so on.
 
Upvote 0

Forum statistics

Threads
1,214,806
Messages
6,121,672
Members
449,045
Latest member
Marcus05

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