An Excel time log allows you to track exactly how much time is spent on specific tasks, projects, or clients by calculating the difference between a start time and an end time. To achieve this, you need a basic spreadsheet setup using specific time formatting and a simple subtraction formula (End Time minus Start Time) to determine the total duration.

What You'll Need

  • A computer with Microsoft Excel installed (any version from 2010 onwards) or a web-based version like Excel for the Web.
  • A basic understanding of how to enter data into cells.
  • A clear list of the columns you wish to track (e.g., Date, Task, Start Time, End Time, Total Hours).

Step-by-Step

  1. Set Up Your Headers: Open a blank workbook. In the first row, create your column headers to organize your data. Common headers include:
    • Cell A1: Date
    • Cell B1: Task/Project Name
    • Cell C1: Start Time
    • Cell D1: End Time
    • Cell E1: Total Duration
  2. Format the Time Columns: Excel needs to know which cells contain time to calculate them correctly.
    • Highlight the columns for Start Time and End Time (Columns C and D).
    • Right-click the selected area and choose Format Cells.
    • Under the Number tab, select Time from the list on the left.
    • Choose the format that best suits your needs (e.g., 1:30 PM). Click OK.
  3. Format the Duration Column: The total duration column needs a different format to avoid resetting to zero after 24 hours.
    • Highlight the Total Duration column (Column E).
    • Right-click and choose Format Cells.
    • Under Number, select Custom.
    • In the "Type" box, manually type [h]:mm. The square brackets tell Excel to accumulate hours beyond a single day. Click OK.
  4. Enter the Calculation Formula: To find the time elapsed, you must subtract the start time from the end time.
    • Click on cell E2.
    • Type the formula: =D2-C2
    • Press Enter.
  5. Apply the Formula to All Rows: You do not need to type the formula for every row.
    • Click on cell E2.
    • Hover your mouse over the bottom-right corner of the cell until a small black cross (the fill handle) appears.
    • Click and drag the fill handle down to cover as many rows as you anticipate needing for your log.
  6. Create a Grand Total: To see the total hours worked over a period:
    • Go to the bottom of your Total Duration column.
    • Use the AutoSum feature or type =SUM(E2:E100) (adjusting E100 to your actual last row).
    • Ensure this cell is also formatted as [h]:mm as described in Step 3.
  7. Convert to Decimal (Optional): If you need to multiply your hours by a hourly rate (e.g., for invoicing), you must convert the time format to a decimal number.
    • In a new column, use the formula: =E2*24
    • Format this cell as Number or General. This converts "1:30" (one hour thirty minutes) into "1.5".

Common Mistakes

  • Using the wrong time format: If you use a standard "Time" format for the total sum, Excel will reset the clock to zero every time it hits 24 hours. Always use the [h]:mm custom format for totals.
  • Entering time without a colon: If you type "130" instead of "1:30", Excel treats the entry as a whole number rather than a time value, which will break your formulas.
  • Mixing AM and PM: If you do not specify AM or PM (or use 24-hour military time), Excel may default to the wrong half of the day, resulting in negative time calculations.
  • Forgetting to lock headers: When your log becomes long, the headers disappear. To fix this, go to the View tab and select Freeze Panes > Freeze Top Row.

Tips

  • Quick Time Entry: Use the keyboard shortcut Ctrl + Shift + : (colon) to instantly insert the current system time into a cell.
  • Use Tables: Highlight your entire data range and press Ctrl + T to turn your log into an official Excel Table. This automatically expands your formulas and formatting every time you add a new row.
  • Data Validation: To keep your "Task" column consistent, use Data Validation (found in the Data tab) to create a dropdown menu of your most frequent projects.
  • Conditional Formatting: Use Conditional Formatting to highlight rows where the total duration exceeds a certain limit (e.g., highlighting any day where you worked more than 8 hours in red).

Troubleshooting

If your calculations are not working as expected, try these steps in order:

  • Check for "#####" errors: If a cell shows a series of hashtags, it usually means the column is too narrow to display the result or the result is a negative time value (which Excel cannot display). Widen the column first.
  • Fix Negative Time: If you see hashtags because the end time is on the next calendar day (e.g., starting at 10 PM and ending at 2 AM), the simple =D2-C2 formula will fail. Use this formula instead: =MOD(D2-C2, 1). This tells Excel to treat the time as a 24-hour cycle.
  • Verify Cell Formatting: If the result looks like a random decimal (e.g., 0.25 instead of 6:00), the cell is formatted as "General". Change it back to "Time" or the custom [h]:mm format.
  • Clear Ghost Data: If formulas are behaving erratically, ensure there are no hidden spaces before or after your time entries.

Frequently Asked Questions

How do I track time across two different days?

If a task starts on Monday and ends on Tuesday, the simplest method is to enter the full date and time into the cell (e.g., "2026-12-04 22:00"). Excel will then calculate the difference across days accurately using the standard subtraction formula.

Can I automate the start and stop buttons?

Basic Excel does not have "buttons" for this without using VBA (macros). The fastest non-coding way is to use the Ctrl + Shift + : shortcut to stamp the current time manually when you start and stop a task.

How do I calculate a break or unpaid lunch?

Add two additional columns: "Break Start" and "Break End". Calculate the break duration (Break End minus Break Start), then subtract that result from your Total Duration formula: =(End Time - Start Time) - (Break End - Break Start).

Why does my total time reset after 24 hours?

This happens because the standard Time format is designed for "time of day" rather than "duration." To fix this, go to Format Cells > Custom and change the format to [h]:mm. The brackets prevent the hour count from resetting.

Can I use this on a mobile device?

Yes, the formulas and formatting work on the Excel mobile app. However, the "Custom Format" menu is deeper in the settings on mobile and may be slightly harder to find than on the desktop version.