
Originally Posted by
MrShorty
You talk about having your chart show "count of employees" at different times of day, but I don't see anywhere where you have counted the data (post #3 implied to me that you had already counted the data). As I indicated in my first reply, we have to have the data in the spreadsheet before we can create a chart from the data. Here's what I would have expected (I don't understand exactly what I am looking at in your file, so it will probably need adaptation, but it should provide a starting point for both generating the summary data and then creating the chart from that summary data):
0) I'm assuming that the data you have is showing individual employee start/stop time of day for each weekday. Adapt to whatever the data really mean. If I understand what you are trying to do, I would have also expected a chart with time of day along the x axis, count of employees on the y axis, and then show individual days of the week as separate data series. That's not exactly what you are describing, but it should work for explaining the process of summarizing data and creating a chart from the summary data. We should be able to adapt the process to the specific chart and axes you want if we get the overall process understood.
1) I need a summary table with time of day down one side of the table, day of the week across the top of the table, and count of employees in the body of the table. To build the summary table, I:
1a) Add a column of time of day. Enter 0:00 in X4, 1:00 in X5, 2:00, in X6, then fill down to 23:00 in X27
1b) Add a row with day of the week at the top. Enter Mon in Y3, Tue in Z3, and so on across the top.
1c) A formula to count the number of employees at each hour of the day for each day of the week. Enter =COUNTIFS($K$3:$K$300,"<="&$X4,$L$3:$L$300,">="&$X4) into Y4. Copy down to get the counts of column K and L that fit the criteria. Similar for each day of the week across the table. Now I should have a table of how many employees are working each hour of the day.
2) Now to create the chart. I would probably use a line or scatter chart for this, but a column or area chart could work as well. Select the table (X3:AE23) and insert a line chart. Excel should put time of day as the horizontal x axis and count of employees on the vertical y axis. There should be seven data series -- one for each day of the week.
If I have interpreted the raw data in your sample sheet correctly, that should generate a chart that gives an indication of how many employees are working at each hour of the day. It's not exactly the chart you describe (day of week on the horizontal axis, time of day on vertical axis, count of employees somehow indicated at the data marker), but maybe it will be good enough. If not, help us understand what you want to do differently, and we'll help as best we can.
Bookmarks