Mastering Excel: Crafting Your Own Time Tracking Formula

Danielle Jul 09, 2026

Ever found yourself wondering where your day went? Or wishing you could bill clients accurately for your time? Excel's robust features allow you to create a time tracking formula, helping you monitor your productivity and invoice clients precisely. Let's dive into creating a simple yet effective time tracking formula in Excel.

Employee Time Tracking in Excel (+ video tutorial!)
Employee Time Tracking in Excel (+ video tutorial!)

Before we begin, ensure you have Excel open and a new workbook created. We'll use this to build our time tracker step by step.

How to Create a Timestamp in Excel
How to Create a Timestamp in Excel

Setting Up Your Time Tracking Worksheet

First, let's set up the basic structure of our time tracking worksheet. In the first row (A1 to E1), enter the following headers:

How to Make a Time Sheet in Excel (with Formulas and Templates)
How to Make a Time Sheet in Excel (with Formulas and Templates)
  • Date (Column A)
  • Start Time (Column B)
  • End Time (Column C)
  • Duration (hrs) (Column D)
  • Task/Activity (Column E)

Formatting these headers with bold text and a background color will make your worksheet more readable.

a spreadsheet showing how to create a project tracker
a spreadsheet showing how to create a project tracker

Calculating Duration

Now, let's create a formula to calculate the duration of each activity automatically. In cell D2, enter the following formula:

=(C2-B2)/24

Time Sheet Calculator in Excel
Time Sheet Calculator in Excel

This formula subtracts the start time from the end time and divides by 24 to convert the result into hours. Copy this formula down to the other cells in column D as needed.

Formatting Duration

To display the duration in a more readable format (HH:MM), select cells D2 and down, then click on the "Number" group in the "Home" tab. Choose "Time" from the list. The durations will now be displayed as hours and minutes (e.g., 1.5 would appear as 1:30).

How to Track Comp Time in Excel (with Quick Steps)
How to Track Comp Time in Excel (with Quick Steps)

Tracking Your Time

With our worksheet set up, it's time to start tracking your time. Each morning, enter the current date and your start time in columns A and B, respectively. When you switch tasks or at the end of the day, enter your end time in column C.

FREE Excel Timesheet Template [DOWNLOAD]
FREE Excel Timesheet Template [DOWNLOAD]
Elapsed Time Excel
Elapsed Time Excel
How to Calculate Hours Worked in Excel
How to Calculate Hours Worked in Excel
How to Calculate Hours Worked and Overtime Using Excel Formula - ExcelDemy
How to Calculate Hours Worked and Overtime Using Excel Formula - ExcelDemy
Creating a Stopwatch in Excel (Basic + Toastmasters Style)
Creating a Stopwatch in Excel (Basic + Toastmasters Style)
Progress Tracker in Excel‼️ #excel
Progress Tracker in Excel‼️ #excel
Excel Formulas and Diet Motivation
Excel Formulas and Diet Motivation
Daily Work Tracker Excel: Essential Functions for Better Planning
Daily Work Tracker Excel: Essential Functions for Better Planning
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
How to insert timestamps in excel sheet using formulas
How to insert timestamps in excel sheet using formulas
How to Calculate Hours Worked Minus Lunch Using Excel Formulas (4 Methods) - ExcelDemy
How to Calculate Hours Worked Minus Lunch Using Excel Formulas (4 Methods) - ExcelDemy
How to use frequency formula in excel
How to use frequency formula in excel
how to calculate hours worked
how to calculate hours worked
EVERYTHING about working with Dates & Time in Excel
EVERYTHING about working with Dates & Time in Excel
the excel time and date sheet
the excel time and date sheet
Excel Formulas Cheat Sheet: Essential Formulas for Data Analysis | Asim khan posted on the topic | LinkedIn
Excel Formulas Cheat Sheet: Essential Formulas for Data Analysis | Asim khan posted on the topic | LinkedIn
Home Page - ExcelDemy
Home Page - ExcelDemy
Create check box tracker
Create check box tracker
2 Smart Ways to Highlight Public Holidays in Excel Roster | Dynamic Calendar Hack 📅✨
2 Smart Ways to Highlight Public Holidays in Excel Roster | Dynamic Calendar Hack 📅✨
a screenshot of the workdays formula in excel
a screenshot of the workdays formula in excel

Adding Tasks/Activities

In column E, enter a brief description of the task or activity you're working on. This will help you remember what you were doing and provide useful information for invoicing clients.

Adjusting for Breaks

If you take breaks during the day, you can adjust the duration calculation to exclude them. In cell D2, modify the formula to:

=IF(B2="", "", (C2-B2)/24 - SUMIF(E$1:E1, "Break", (C$1:C1-B$1:B1)/24))

This formula subtracts the total break time from the duration calculation. Enter "Break" in column E when you take a break, and the corresponding duration will be excluded from your tracked time.

As you continue to track your time, you'll build a comprehensive record of your daily activities. This data can be used to invoice clients accurately, analyze your productivity, and make informed decisions about how you spend your time.

Remember, consistency is key when it comes to time tracking. Make it a habit to log your start and end times each day, and you'll soon have a wealth of data at your fingertips. Happy tracking!