1. How To Total Time In Excel
  2. How To Put Time Slots In Excel File
TimePutTimeHow To Put Time Slots In ExcelTime

How To Total Time In Excel

Hello everyone,
This question is one that I have quite often when I do data analysis at my job :
I am very often working with data concerning time of arrival / time of departure of patients.
I want to do bar graph of the number of patients actually there during each one hour period.
Exemple :
Patient A arrival 8 am departure 12 am
Patient B arrival 10 am departure 2pm
I want a bar value 1 for 8-9, then a bar value of 1 for 9-10 then a bar value of 2 for 10-11 and a bar value of 2 for 11-12 then a bar value of 1 for 12am-1pm and bar value of 1 for 1pm-2pm.
The only way that I have managed to do that so far is to create a column for each time slot and then for each patient (each line on my excel table) with a long 'if, if if... formula' depending of course on the arrival time / departure time, plug 1 if patient is there during the time slot or nothing if he was not there, and then do a chart with this raw data.
I was wondering if there was any other way, if there is an excel time function which I could use, specifying the time slot and time of arrival/departure which could directly give '1' if patient was there ' if he was not. or a graph who could directly do that without the 24 column needed to chart a day's worth of activity.
Thank you for your help, any feedback/advice would help me a lot.
Christiane

How To Put Time Slots In Excel File

I recently showed several ways to display Multiple Series in One Excel Chart.The current article describes a special case of this, in which the X values are dates. Displaying multiple time series in an Excel chart is not difficult if all the series use the same dates, but it becomes a problem if the dates are different, for example, if the series show monthly and weekly values over the same. Keep track of your time with this daily appointment calendar template which adjusts for the starting time and time intervals you specify. This is an accessible template.