The Pivot Grid All guides

How to Make an Employee Schedule and Timesheet in Google Sheets (Free Template)

Start with a plain list of shifts. Gemini in Google Sheets turns it into a timesheet with a name dropdown, the MOD trick gives every shift its length (night shifts included), SUMIFS adds up the hours per person per week, overtime above 40 turns red by itself, and a payroll tab pays it at 1.5 times the rate. Gemini builds the structure; the formulas that count, you type yourself. 5 prompts, a few formulas, no code.

Updated 30 Nov 2026 · Google Sheets · Gemini · Video 11:36

Get the finished template. Make a copy of the Google Sheets version, or download the practice file: the shift list, all 5 prompts, the finished Timesheet tab and the Payroll tab with every formula, plus a "Try it" tab to build it yourself. The template works without Gemini.

What you build

The starting point is a plain list of shifts: two weeks at a small hotel, 46 shifts for five people (Ava, Ben, Carla, Dev and Elena), each with a date, a name, a role, a start time, an end time and a break in minutes. At the end you have:

Plan: the template is free and works without Gemini. Gemini in Sheets itself needs a paid plan: Google AI Pro or Ultra, or Google Workspace Business Standard or Plus, or Enterprise Standard or Plus (Google Workspace Updates, 22 Apr 2026). Can't find it? See Gemini not showing in Google Sheets: 10 fixes.

Step 1: Turn the shift list into a timesheet

Open Gemini with the spark icon at the top right and give it the whole structure in one prompt:

Rename this sheet to Timesheet. Format column A as dates with the weekday, like Mon 11/9. Format column G as a duration and column H as a number with 2 decimals. Make row 1 bold and freeze it. In B2 to B200 add a dropdown with Ava, Ben, Carla, Dev, Elena that rejects any other value. Edit the sheet directly.

Why each part matters: the payroll will point at the name Timesheet later. The weekday lets you see Monday or Tuesday at a glance. Columns G and H are still empty: they'll hold your own formulas, so they get their formats now. And the dropdown is what keeps the totals honest. Test it: type Clara instead of Carla in B3 and press Enter. Sheets refuses it. A typo like that would quietly drop a shift from every total you build next.

Step 2: Shift hours, and the MOD trick for night shifts

How long is every shift? The end time minus the start time, in G2:

=E2-D2

8:30 for a shift from 7 AM to 3:30 PM. Copy G2 down to G47. But look at row 5: Dev's night shift, from 10 PM to 6:30 AM, gives minus 15:30. The end time is earlier in the day than the start, because the shift crosses midnight. Every night shift in the list has this problem.

The fix is MOD. Sheets stores a time as a part of a day (6 AM is a quarter of a day). MOD divides by a number and keeps only what's left over, and the result is never negative. Divide by 1, one whole day, and a negative result simply gets a day added. In G2:

=MOD(E2-D2, 1)

Copy it down to G47 again. Row 5 now says 8:30: minus 15:30 plus 24 hours. Every night shift is fixed, and the day shifts don't change, because a positive result stays the same.

Paid hours and the week number

In H2, the paid hours. Sheets counts in days, so times 24 turns the shift into hours; the break is in minutes, so divide it by 60:

=G2*24-F2/60

8 paid hours: 8.5 minus a 30-minute break. One more helper, the week number, in I2:

=WEEKNUM(A2, 2)

The 2 makes weeks start on Monday. Without it, Sheets starts the week on Sunday, and a Sunday shift would land in the next week. Copy H2:I2 down to row 47. The first week is week 46, the second week 47, and Dev's night shift gets 8 paid hours like everyone else's.

Step 3: Hours per person per week with SUMIFS

First a small prompt for the frame:

In K1 write Employee, in L1 the number 46 and in M1 the number 47. Write Ava, Ben, Carla, Dev, Elena in K2 to K6. Edit the sheet directly.

The adding up you type yourself, because you want to be able to check it. Test it in empty cells first. All of Ava's hours, in L9:

=SUMIFS(H:H, B:B, "Ava")

86 hours in two weeks. SUMIFS first asks what to add up (H:H, the paid hours), then a pair: the employee column must say Ava. Add a second pair and a row only counts when both match. Only week 47, in L10:

=SUMIFS(H:H, B:B, "Ava", I:I, 47)

46 hours. Now the grid. Point at cells instead of typing names: K2 is the name, L1 the week. In L2 and M2:

=SUMIFS(H:H, B:B, K2, I:I, L$1)
=SUMIFS(H:H, B:B, K2, I:I, M$1)

The dollar sign before the 1 locks row 1, so every row still looks at the week number at the top. Copy L2:M2, select L2:M6 and paste: K2 becomes K3, K4 and so on, the next name. With the shift list from the practice file:

EmployeeWeek 46Week 47
Ava4046
Ben4340
Carla3240
Dev4048
Elena1921.5
Total174195.5

Ava in week 47 says 46, the same as the test in L10, so the formula is right. One more check: the label Total in K7 and Check in K8, then in L7, M7 and L8:

=SUM(L2:L6)
=SUM(M2:M6)
=SUM(H:H)

174 plus 195.5 is 369.5, the same as L8, every paid hour in the list. So every shift landed in exactly one person and one week.

Step 4: Overtime in red

In this example, overtime is every hour above 40 in a week. Overtime rules differ by country, so use your own number.

Color L2 to M6 red when the value is above 40, with conditional formatting. Edit the sheet directly.

Three red cells: Ben in week 46, and Ava and Dev in week 47. Ava's 40 hours in week 46 stay white, because 40 is not above 40. Why is Ben at 43? Row 11: a double shift on Wednesday, 7 AM to 7 PM with a one-hour break, 11 paid hours in one day. Because it's conditional formatting, the color follows the hours: add a shift later and the cell turns red by itself.

Step 5: The payroll tab

Add a sheet called Payroll. A1 to F1: Employee, Hours, Rate, Regular, Overtime, Pay. A2 to A6 = Timesheet K2 to K6, B2 to B6 = Timesheet M2 to M6. C2 to C6: 19, 18, 21, 22, 17 as dollars. D = MIN of B and 40, E = B minus D, F = D times C plus E times C times 1.5, as dollars. F7 = SUM of F2 to F6. Edit the sheet directly.

One calculation per column, so every cell is easy to check. For week 47:

ColumnFormula (row 2)Ava
B Hours=Timesheet!M246
C Ratetyped$19.00
D Regular=MIN(B2, 40)40
E Overtime=B2-D26
F Pay=D2*C2+E2*C2*1.5$931.00

Timesheet! is the name of the sheet tab, and the exclamation mark separates the sheet from the cell. That's why you renamed the sheet in step 1. Dev's 8 overtime hours make his the biggest paycheck, $1,144.00, and the week's total in F7 is $4,000.50.

Prompt tip: give Gemini the formula for each column. Then every cell is one small calculation you can check, instead of one long formula you have to trust.

Use it: an extra shift, and ask Gemini who can take it

Carla picks up an extra shift on Saturday 21 November. On the Timesheet tab, in row 48: the date, Carla, Front Desk, 9:00 AM to 3:00 PM and a 30-minute break. The formulas in G to I stop at row 47, so copy G47:I47 and paste them in row 48: 5.5 hours in week 47. Up in M4, Carla is now at 45.5, and the cell turned red by itself.

Who can take that shift instead? Ask Gemini a question that doesn't change the sheet:

Carla is over 40 hours in week 47. Who can take her shift in row 48 without going over 40? Use columns K to M. One line with the reason. Answer in the chat, don't edit the sheet.

The answer in the video: Elena. She has 21.5 hours in week 47, so with 5.5 more she ends at 27, and everyone else is already at 40 or more. That matches column M, so the answer checks out. Pick Elena in B48 instead of Carla: Carla is back at 40 and the red is gone, Elena is at 27, and nobody touched a formula. The payroll follows: Carla stays at $840.00, Elena goes up to $459.00 and the total becomes $4,094.00.

Next week? Paste the new shifts under the old ones, copy the helper formulas in G:I down, and change the week numbers in L1 and M1. The red rule and the payroll keep working.

Step 6: Manager notes with Fill with Gemini

On the Payroll tab, type the header Manager Note in G1 (the header tells Gemini what to fill), select G2:G6, right-click and choose Fill column with Gemini.

Every person gets a note based on their row: Ava's mentions her 6 overtime hours, Dev's his 8. Click a cell and you see it's a formula (=AI(…)). These notes are AI-written: read them and type over what you'd say differently. And they don't update by themselves when the hours change, so refresh them after a change.

FAQ

Is there a free employee schedule and timesheet template for Google Sheets?

Yes. The template from this guide is free: make a copy in Google Sheets or download the practice file (.xlsx) with the shift list, all 5 prompts, the finished Timesheet tab and the Payroll tab with every formula. No sign-up.

How do I calculate night shift hours in Google Sheets?

Use =MOD(E2-D2, 1) with the end time in E2 and the start time in D2. For a shift from 10 PM to 6:30 AM, =E2-D2 gives minus 15:30 because the shift crosses midnight. MOD with divisor 1 (one whole day) adds a day to a negative result, so you get 8:30. Day shifts don't change.

How do I add up hours per employee per week in Google Sheets?

Give every shift a week number with =WEEKNUM(A2, 2) (weeks start on Monday), then use SUMIFS with two conditions: =SUMIFS(H:H, B:B, K2, I:I, L$1) adds the paid hours in column H for the name in K2 and the week in L1.

How do I calculate overtime pay in Google Sheets?

In the example, overtime is every hour above 40 in a week, paid at 1.5 times the rate. Regular hours =MIN(B2, 40), overtime hours =B2-D2, pay =D2*C2+E2*C2*1.5. Overtime rules differ by country, so use your own numbers.

Do I need Gemini to use the template?

No. The finished template runs on plain formulas: MOD, WEEKNUM, SUMIFS, MIN and SUM, plus one conditional formatting rule for the red overtime. You only need Gemini if you want to build it yourself with the prompts. Gemini in Google Sheets needs a paid plan: Google AI Pro or Ultra, or Google Workspace Business Standard or Plus, or Enterprise Standard or Plus (Google Workspace Updates, 22 April 2026).

Why does a week with exactly 40 hours stay white?

The rule is "greater than 40", and 40 is not above 40: a full week, no overtime. The payroll agrees: =MIN(B2, 40) makes all 40 hours regular, so overtime is 0. Want to flag 40 itself too? Change the rule to "greater than or equal to".

Want every 2026 function on one page? The free Formula Pack is a 3-page cheat sheet plus all practice files from the videos.

More guides