Tristiks/Blog

Time Tracking

Google Sheets Time Tracking: Layout, Formulas and Tips

By Suraj Rao11 min read

What You'll Learn

  • Use one row per time entry with date, client, project, task, start, end, break, hours, billable, rate and amount, and let formulas do the math.
  • =MOD(end-start,1)*24 turns start and end times into decimal hours, even across midnight. SUMIFS gives weekly totals by client, and a pivot table summarizes the lot.
  • Spreadsheets have no running timer, reminders or approvals. Once you forget entries, juggle versions or spend an hour building invoices, it's time for software.
Photo of a woman at her desk looking at a colorful spreadsheet on her laptop, pen in hand, beside the headline: time tracking in google sheets

For Google Sheets time tracking, give each time entry its own row with columns for date, client, project, task, start time, end time, break, hours, billable, rate and amount. Calculate hours with =MOD(F2-E2,1)*24, which turns the start and end times into decimal hours and works for entries that cross midnight. Then add SUMIFS formulas for weekly totals, dropdowns for clients and projects, and a pivot table for hours by client. The same layout and formulas work in Excel.

Here's the layout to copy, starting in cell A1 of a tab named Log:

ColumnHeaderWhat goes in it
ADateThe day the work started, e.g. 11/30/2026
BClientDropdown from your client list
CProjectDropdown from your project list
DTaskFree text: what you did
EStartTime, e.g. 9:00 or 13:15
FEndTime, e.g. 12:30
GBreak (min)Unpaid minutes, or blank
HHoursFormula: decimal hours
IBillableDropdown: Yes or No
JRateHourly rate, typed or looked up
KAmountFormula: hours x rate if billable

Below: every formula (tested), weekly totals, dropdowns, protecting formulas, a pivot table by client, templates, Excel differences, and the point where a spreadsheet stops being worth it.

The formulas, column by column

Put these in row 2 and copy them down as far as you need. We checked each one against the sample week below.

H2  Hours:   =IF(OR(E2="",F2=""),"",ROUND(MOD(F2-E2,1)*24-G2/60,2))
J2  Rate:    =IFERROR(VLOOKUP(B2,Lists!$A:$B,2,FALSE),0)
K2  Amount:  =IF(AND(I2="Yes",H2<>""),H2*J2,0)

What each part does:

  • F2-E2 subtracts the start time from the end time. Sheets stores a time as a fraction of a day (6:00 is 0.25), so the result is part of a day.
  • MOD(...,1) fixes entries that cross midnight. 22:00 to 1:30 gives a negative number on its own; MOD wraps it to the right positive fraction.
  • *24 converts the fraction of a day into decimal hours, which is what you need to multiply by a rate.
  • -G2/60 subtracts the break, entered in minutes. A blank break counts as zero.
  • ROUND(...,2) keeps hours to two decimals, so totals match the invoice.
  • The IF wrapper leaves the cell blank until both times are filled in.

Here's a sample week with those formulas in place:

Date        Client     Task            Start  End    Break  Hours  Billable  Rate  Amount
11/30/2026  Northwind  Wireframes      9:00   12:30  0      3.50   Yes        95   332.50
11/30/2026  Northwind  Client call     13:15  14:00         0.75   Yes        95    71.25
11/30/2026  Internal   Invoicing       14:00  14:45  0      0.75   No          0     0.00
12/1/2026   Acme Co    Logo concepts   9:00   17:30  30     8.00   Yes       110   880.00
12/2/2026   Acme Co    Launch support  22:00  1:30   0      3.50   Yes       110   385.00

The last row started at 10 p.m. and ended at 1:30 a.m. the next day, and MOD gives 3.50 hours. Log an overnight entry under the date it started. One limit: MOD only works for entries shorter than 24 hours, so a start and end at the same clock time counts as zero.

Typing times in 24-hour format avoids a.m./p.m. mistakes. Our military time chart covers the conversions, and our guide to calculating hours worked walks through the math by hand.

Decimal hours vs hours and minutes

For billing, decimal hours are easier: 1 hour 45 minutes is 1.75 hours, and 1.75 x $95 is simple. Common conversions:

MinutesDecimal hours
60.10
150.25
200.33
300.50
400.67
450.75

If you'd rather see hours and minutes, there are two options:

  • Show a decimal as h:mm text: =TEXT(H2/24,"[h]:mm") turns 8.00 into 8:00. Use it for display only, not for further math.
  • Keep a duration instead: =MOD(F2-E2,1)-G2/1440 returns a time value. Format it with Format, Number, Duration in Google Sheets, which Google's number format help covers. Multiply by 24 before you multiply by a rate.

For quick checks, our timesheet calculator adds up start and end times for you.

Weekly totals with SUMIFS

Add a second tab named Summary. Put the Monday of the week you want in B1, and these formulas below it:

Total hours this week:
=SUMIFS(Log!H:H,Log!A:A,">="&B1,Log!A:A,"<"&B1+7)
 
Billable hours this week:
=SUMIFS(Log!H:H,Log!A:A,">="&B1,Log!A:A,"<"&B1+7,Log!I:I,"Yes")
 
Hours for the client named in A4 (copy down for each client):
=SUMIFS(Log!$H:$H,Log!$B:$B,$A4,Log!$A:$A,">="&$B$1,Log!$A:$A,"<"&$B$1+7)
 
Amount for the client named in A4:
=SUMIFS(Log!$K:$K,Log!$B:$B,$A4,Log!$A:$A,">="&$B$1,Log!$A:$A,"<"&$B$1+7)

SUMIFS adds up a column only where every condition matches. Here the conditions are "on or after Monday" and "before next Monday", plus a client or billable status. For the sample week starting 11/30/2026, the results are:

Total hours            16.50
Billable hours         15.75   (95% of the total)
Northwind               4.25 h    $403.75
Acme Co                11.50 h  $1,265.00
Billable amount                 $1,668.75

Want weeks as a column for a pivot table? Add =IF(A2="","",A2-WEEKDAY(A2,3)) in column L. It returns the Monday of each entry's week, in Sheets and Excel alike. If your spreadsheet's locale uses commas as decimal separators, Sheets expects semicolons between arguments instead of commas.

Typos break SUMIFS: "Acme" and "Acme Co" count as two clients. Dropdowns fix that.

  1. Add a tab named Lists. Put client names in column A, each client's hourly rate in column B, and project names in column D.
  2. Select B2:B in the Log tab, then choose Data, Data validation, Add rule.
  3. Under Criteria, pick "Dropdown (from a range)" and enter Lists!A2:A.
  4. Under Advanced options, choose "Reject the input" so nothing else can be typed.
  5. Repeat for Project (Lists!D2:D) and for Billable, using a plain dropdown with Yes and No.

Google's dropdown help has screenshots of each step. With the Lists tab in place, the rate formula in J2 looks up each client's rate. One catch: if you change a rate on the Lists tab, every past row recalculates. Once a month is invoiced, copy those rate cells and paste them as values (Edit, Paste special, Values only) to freeze them. If you charge different rates for different clients, the lookup handles it automatically.

A shortcut that helps: Ctrl+Shift+; (Cmd+Shift+; on a Mac) types the current time into a cell as a fixed value, according to Google's keyboard shortcut list. Press it when you start a task and again when you stop, and you have a basic manual timer.

Protect the formula columns

The quickest way to break a time tracking sheet is to type a number over a formula. Lock the formula columns:

  1. Select columns H, J and K in the Log tab.
  2. Choose Data, Protect sheets and ranges, then Add a sheet or range.
  3. Set permissions to "Only you", or to "Show a warning when editing this range" if you work alone.

Google's protection help covers the options. Protection stops accidents. It doesn't stop someone with edit access making a copy and changing that.

If a total still looks wrong, File, Version history, See version history shows earlier versions of the sheet, and right-clicking a cell and choosing "Show edit history" shows changes to that cell. Google notes that some changes don't appear in a cell's edit history, such as changes made by formulas.

A pivot table by client

SUMIFS is good for a fixed summary. A pivot table is faster for questions like "how many hours did each project take last month?"

  1. Click any cell in the Log tab, then choose Insert, Pivot table, New sheet.
  2. Under Rows, add Client, then Project.
  3. Under Values, add Hours and Amount, both summarized by SUM.
  4. Under Filters, add Billable (to show only Yes) or the Week column (to pick a week).

The pivot table updates when the Log changes, and double-clicking a total shows the rows behind it (Google's pivot table help). It's the quickest way to see which clients take more time than they pay for; our guide to billable vs non-billable hours explains what to do with that.

Ready-made templates

You don't have to build this from scratch:

Most ready-made timesheets are built for one employee's weekly hours, not for client billing. If you bill clients, add the Client, Billable, Rate and Amount columns from the layout above. Our guide on how to fill out a timesheet covers what each field should hold.

Doing the same in Excel

Every formula above works in Excel unchanged, including MOD, SUMIFS, VLOOKUP, TEXT and WEEKDAY. The menus differ:

TaskGoogle SheetsExcel
Show hours past 24Format, Number, DurationCustom number format [h]:mm
DropdownsData, Data validationData, Data Validation, List
Protect formulasData, Protect sheets and rangesUnlock input cells, then Review, Protect Sheet
Pivot tableInsert, Pivot tableInsert, PivotTable
Insert the current timeCtrl+Shift+;Ctrl+Shift+;
Earlier versionsFile, Version historyFile, Info, Version History (files on OneDrive or SharePoint)

Two Excel quirks: without MOD, a negative time shows as a row of #### signs, and a time total over 24 hours wraps around (28:15 shows as 4:15) unless you use the [h]:mm format, which Microsoft's guide to adding time explains.

The limits of Google Sheets time tracking

A spreadsheet works well for one person with a few clients. It struggles beyond that:

  • No running timer. You type start and end times, often after the fact, and estimates creep in.
  • Easy to forget. Nothing reminds you, so entries get filled in on Friday from memory.
  • No idle detection. Time away from the desk only gets subtracted if you remember it. (Here's what idle time is and why it matters.)
  • Version problems. Emailed copies, "timesheet_final_v3" and two people editing the same row all cause wrong totals.
  • No approvals or locking. Billed rows can still be edited, and nobody signs off a week.
  • Invoices are manual. You still copy totals into an invoice by hand. Our guide to writing an invoice covers what it needs.
  • Teams outgrow it. One shared sheet shows everyone's hours to everyone, and separate sheets have to be merged.

When to switch to time tracking software

Treat these as signs you've outgrown the spreadsheet:

☐ You find missing entries more than once a week.

☐ You've lost hours to a broken or overwritten formula.

☐ Building invoices from the sheet takes more than an hour a month.

☐ More than two or three people track time in it.

☐ You need managers or clients to approve hours.

☐ You track time for several clients a day and keep switching rows.

If two or more apply, compare the best free time tracking apps and our wider roundup of the best time tracking apps, and our guide to switching time tracking software covers moving your history over. Employers with hourly staff also have recordkeeping rules to meet; see our guide to tracking employee hours.

How Tristiks Grow helps

Tristiks Grow does what the spreadsheet above does, without the formulas:

  • A real timer: the OneTrack desktop app for macOS, Windows and Linux runs in the background and keeps tracking offline, and there's a web timer in the browser. Manual entries cover anything you forgot.
  • The same columns, built in: each entry has a client, project, task, note and billable status, and client rates show what the hours earned.
  • Totals without SUMIFS: hours this week, month and year, a chart of hours per day, and reports by client and project.
  • Idle time detection flags time away from the computer.
  • Invoices from tracked hours, with billed entries locked so they can't change afterwards.
  • CSV export of the time log, if you still want a spreadsheet for your own analysis.
The Tristiks Grow time log, listing each entry's date, client, project, total time and billable status, with a Download Report button

Tristiks Grow doesn't sync with Google Sheets, and it has no mobile app. See how timesheets and reports work on our timesheet software page.

Frequently asked questions

How do I calculate hours between two times in Google Sheets?

Subtract the start time from the end time and multiply by 24: =MOD(F2-E2,1)*24. MOD makes it work when the end time is after midnight, and the result is in decimal hours, ready to multiply by a rate.

Does Google Sheets have a timesheet template?

Google's template gallery, at the top of the Sheets home screen, has ready-made spreadsheets, and its selection changes over time. Free third-party Google Sheets timesheets are widely available, and you can download our free timesheet template.

How do I total hours over 24 in Google Sheets?

If you use decimal hours, a plain SUM works. If you store durations, format the total cell with Format, Number, Duration. In Excel, use the custom format [h]:mm.

Is Google Sheets good for time tracking?

For one person with a handful of clients, yes. It's free and flexible. It has no timer, reminders or approvals, so teams and anyone billing many clients usually move to time tracking software.

Wrap up

A good Google Sheets time tracker is one row per entry, MOD(end-start,1)*24 for hours, dropdowns for clients and projects, SUMIFS or a pivot table for totals, and protected formula columns. It's a solid free start, and the same build works in Excel. When you start forgetting entries or spending hours on invoices, move to a tool with a timer.

To track time with a real timer and invoice straight from your hours, try Tristiks Grow free for 14 days.

Category: Time Tracking

Suraj Rao

Suraj Rao is the founder of Tristiks, the team behind Tristiks Grow and its desktop time tracker OneTrack. He writes about time tracking, client work and getting paid, and about DevOps, cloud and AI from years of building software.

All articles

Save time and money in one click

Tristiks Grow brings time tracking, clients, proposals, invoicing, and more into one place.

Free 14 day trial. No credit card required.