Structure first
Use this simplified layout for the formulas in this guide. It differs from the start/end-time layout in the Excel timesheet guide, so use these column letters: Date (A), Person (B), Client (C), Project (D), Phase (E), Description (F), Hours (G, decimal), Billable (H). The examples below assume data starts in row 2 with headers in row 1, and a separate Lists tab holding the valid clients and projects.
Should each employee have a separate timesheet tab?
Link to this answer: Should each employee have a separate timesheet tab?Usually no. One shared entries tab with a Person column is easier to total, filter and pivot; per-person tabs force you to stitch data back together for every report and drift apart as people add their own columns.
If people should not see each other's entries, separate tabs do not help, since anyone with edit access to the file can open every tab. Use separate files that feed a summary with IMPORTRANGE, or move to a tool with per-person permissions.
How do I create a client dropdown in a Google Sheets timesheet?
Link to this answer: How do I create a client dropdown in a Google Sheets timesheet?Select the Client column (for example C2:C), then choose Insert › Dropdown. In the rules panel, choose "Dropdown (from a range)" and point it at your client list, such as Lists!A2:A. Set invalid entries to be rejected.
Using a range means you add a new client once in Lists and every row picks it up. Google explains the options in Create an in-cell dropdown list.
How do I add a billable checkbox to a Google Sheets timesheet?
Link to this answer: How do I add a billable checkbox to a Google Sheets timesheet?Select the Billable column (H2:H) and choose Insert › Checkbox. Ticked cells hold TRUE and unticked cells FALSE, which makes totals simple:
=SUMIF(H2:H,TRUE,G2:G) totals billable hours, and =SUMIF(H2:H,FALSE,G2:G) totals non-billable hours. See Add and use checkboxes.
How do I add project phases to a timesheet template?
Link to this answer: How do I add project phases to a timesheet template?Add a Phase column next to Project, with its own dropdown. For phases that differ per project, keep a two-column list in Lists (Project, Phase) and filter it, or simply prefix phases with the project code ("SPR: Discovery", "SPR: Build") so one list stays readable.
Phases make the budget-by-phase comparison possible. Keep the list short; four to six phases per project is usually enough.
Summaries
How do I sum hours by project in Google Sheets?
Link to this answer: How do I sum hours by project in Google Sheets?For one project, use SUMIF: =SUMIF(D2:D,"Spring campaign",G2:G). For every project at once, use QUERY:
=QUERY(A1:H,"select D, sum(G) where D is not null group by D order by sum(G) desc",1)
That returns a small table of projects and their total hours, sorted largest first. Google documents SUMIF and QUERY.
How do I create a weekly timesheet summary in Google Sheets?
Link to this answer: How do I create a weekly timesheet summary in Google Sheets?Add a helper column that gives each entry's week start, then summarize by it. In I2:
=ARRAYFORMULA(IF(A2:A="",,A2:A-WEEKDAY(A2:A,2)+1))
That returns the Monday of each entry's week. Then build a pivot table (Insert › Pivot table) with Week start and Person as rows, Hours (SUM) as values, and Billable as a column if you want the split. See Create and use pivot tables.
How do I turn a daily timesheet into a monthly client summary?
Link to this answer: How do I turn a daily timesheet into a monthly client summary?Use SUMIFS with a date range, or a pivot table filtered by month. With the month's first day in K1 and client names in J2:J:
=SUMIFS(G2:G,C2:C,J2,A2:A,">="&$K$1,A2:A,"<"&EDATE($K$1,1))
This totals each client's hours from the first of the month up to (not including) the first of the next. Add ,H2:H,TRUE for billable only. See SUMIFS.
Keeping the sheet clean
How do I flag missing time entries in Google Sheets?
Link to this answer: How do I flag missing time entries in Google Sheets?Use conditional formatting to highlight incomplete rows. Select A2:H, open Format › Conditional formatting, choose "Custom formula is" and enter:
=AND($A2<>"",OR($D2="",$G2=""))
Any row with a date but no project or no hours turns the colour you pick. To spot people with no entries on a working day, build a small check table with =COUNTIFS($B:$B,"Ana",$A:$A,date) per person and day, and highlight zeros. See Use conditional formatting rules.
Sources
- Create an in-cell dropdown list, Google Docs Editors Help.
- Add and use checkboxes, Google Docs Editors Help.
- SUMIF, SUMIFS and QUERY, Google Docs Editors Help.
- Create and use pivot tables, Google Docs Editors Help.
- Use conditional formatting rules in Google Sheets, Google Docs Editors Help.
- Protect, hide and edit sheets, Google Docs Editors Help.