Counting Time Worked in Excel To do so, use an Excel formula taking the difference between the two cells containing times. For instance, if the time the employee clocked in is in cell A2 and the time the employee clocked out is in cell B2, you can use the formula =B2-A2 to find the difference.