EXCEL & GOOGLE SHEETS GUIDE · PLANNERS
Habit Tracker in Google Sheets and Excel: Build One Step by Step
A habit tracker is a grid: days down the side, habits across the top, a checkbox where they meet. A spreadsheet adds what paper can't: it counts your streaks, works out the share of days you kept each habit and colors the grid so a bad week jumps out. This guide builds one in about fifteen minutes, with every formula written for both Google Sheets and Excel.
THE LAYOUT
One month per tab, one habit per column
Most homemade trackers fail because of the layout, not the motivation: a new sheet every week, habits listed in different orders, totals typed by hand. The layout below keeps every formula identical from month to month, so you copy the tab and keep going.
| Area | Cells | What goes there |
|---|---|---|
| Month start | B1 | The first day of the month, e.g. 11/1/2026. Everything else follows from this one cell. |
| Dates | A4:A34 | One row per day, generated by a formula so a 28-, 30- or 31-day month fills itself. |
| Habit names | B3:F3 | Up to five habits to start. More than five at once is the most common reason trackers are abandoned. |
| Checkboxes | B4:F34 | Checked = done. A checkbox stores TRUE or FALSE, which is what makes counting easy. |
| Daily score | G4:G34 | How many habits you kept that day. |
| Summary rows | B36:F40 | Done, completion %, current streak, longest streak, this week. |
STEP BY STEP
Build the tracker in 6 steps
- 1
Type the month start and generate the dates
In B1 type the first day of the month. In A4 enter
=SEQUENCE(DAY(EOMONTH(B1,0)),1,B1). It spills one date per day for exactly that month. Format A4:A34 as ddd d (Format → Number → Custom date in Sheets; Ctrl+1 → Custom in Excel) so you see "Sun 1", "Mon 2". SEQUENCE works in Google Sheets and in Excel 2021 / Microsoft 365; in older Excel type the first date and drag down. - 2
Name your habits in row 3
B3:F3, short labels: "Walk", "Read 10p", "Water 2L", "No phone in bed", "Budget check". Freeze rows 1–3 and column A so the names and dates stay visible while you scroll (View → Freeze in both apps).
- 3
Insert checkboxes
Select B4:F34. In Google Sheets: Insert → Checkbox. In Excel for Microsoft 365 and Excel for the web: Insert → Checkbox (in-cell checkboxes, added in 2024). Both store TRUE when ticked and FALSE when not. In older Excel, use Data → Data Validation → List with the single item
x, and use"x"instead ofTRUEin the formulas below. - 4
Add the daily score
In G4:
=COUNTIF(B4:F4,TRUE), then fill down to G34. It shows 0–5 for each day and feeds the heatmap later. - 5
Add the summary rows
Under each habit column: done count, completion rate up to today, current and longest streak, and this week's count. The exact formulas are in the reference table below; write them once in column B and fill right to F.
- 6
Protect the formulas, then copy the tab each month
Lock everything except the checkboxes so a stray click can't break a formula; see how to lock cells in Excel and Google Sheets. Next month: duplicate the tab, change B1, clear B4:F34. Every formula updates on its own.
FORMULA REFERENCE
Every formula, for Google Sheets and Excel
All formulas assume the layout above: dates in A4:A34, the first habit's checkboxes in B4:B34. They are written for column B; fill right for the other habits. Where Sheets and Excel differ, both versions are shown.
| What | Formula (works in both unless noted) | Notes |
|---|---|---|
| Days done (B36) | =COUNTIF(B4:B34,TRUE) | Older Excel with "x": =COUNTIF(B4:B34,"x") |
| Days so far | =COUNTIFS($A$4:$A$34,"<="&TODAY()) | Counts days up to today, so the rate isn't dragged down by future empty days |
| Completion % (B37) | =IFERROR(B36/COUNTIFS($A$4:$A$34,"<="&TODAY()),0) | Format as percent. Uses all checks this month, divided by days elapsed |
| Streak helper | Helper tab "Streak": B4 =IF(Tracker!B4=TRUE,1,0), B5 =IF(Tracker!B5=TRUE,B4+1,0), fill down and right | Name the main tab "Tracker" (or change the references). Each cell = run of consecutive done days ending that day |
| Current streak (B38) | =IFERROR(XLOOKUP(TODAY(),$A$4:$A$34,Streak!B4:B34),0) | XLOOKUP is in Sheets and Excel 2021/365. Older Excel: =IFERROR(INDEX(Streak!B4:B34,MATCH(TODAY(),$A$4:$A$34,0)),0) |
| Longest streak (B39) | =MAX(Streak!B4:B34) | Within this month; for a running record keep one long sheet instead of monthly tabs |
| This week (B40) | =COUNTIFS(B4:B34,TRUE,$A$4:$A$34,">="&TODAY()-WEEKDAY(TODAY(),2)+1,$A$4:$A$34,"<="&TODAY()) | Week starting Monday (the 2 in WEEKDAY). Use 1 for weeks starting Sunday |
| Done on Fridays | Helper H4 =TEXT(A4,"ddd") filled down, then =COUNTIFS(B4:B34,TRUE,$H$4:$H$34,"Fri") | Repeat per weekday to see whether weekends are where a habit breaks |
TODAY()-1 in the current-streak formula if you prefer to see the streak through yesterday until you tick today.Choosing between the two apps? Sheets is free with a Google account and easiest on a phone; Excel has the richer formatting and works offline. We compared them in Excel vs Google Sheets, and if you don't have an Excel licence, how to use Excel for free covers the web version that supports the checkboxes above.
MAKE IT VISUAL
A heatmap with conditional formatting
Two rules turn the grid into something you can read at a glance: done days in green, and a daily score that darkens as you keep more habits.
| Rule | Google Sheets | Excel |
|---|---|---|
| Done = green | Select B4:F34 → Format → Conditional formatting → "Custom formula is" =B4=TRUE → green fill | Select B4:F34 → Home → Conditional Formatting → New Rule → "Use a formula" =B4=TRUE → green fill |
| Missed past day = red | Custom formula =AND(B4=FALSE,$A4<TODAY()) → light red | Same formula in a second rule |
| Daily score shading | Select G4:G34 → Color scale, min 0 white, max 5 dark green | Select G4:G34 → Conditional Formatting → Color Scales |
| Weekends | Custom formula =WEEKDAY($A4,2)>5 on A4:G34 → grey text | Same formula |
Keep the missed-day red soft. The point is to notice patterns, such as every Friday blank, not to make the sheet look like a failure report.
WHAT THE RESEARCH SAYS
How long does it take to form a habit? Not 21 days
The "21 days" figure is usually traced to the 1960 book Psycho-Cybernetics by surgeon Maxwell Maltz, who described patients taking a minimum of about 21 days to adjust to changes. It was an observation, not a study of habits.
The study most often cited instead is by Phillippa Lally and colleagues at University College London, published in the European Journal of Social Psychology in 2010. Ninety-six volunteers picked one eating, drinking or exercise behavior to do daily in the same context for 12 weeks and rated how automatic it felt each day.
66 days
To reach 95% of each person's peak automaticity, among participants whose data fitted the model well.
18–254 days
The fastest and slowest of those participants. Your habit may sit anywhere in between.
59 / 65 / 91
Median days for drinking, eating and exercise habits; the difference was not statistically significant.
Barely matters
Missing a single opportunity did not materially affect the habit-forming process.
Two cautions keep this honest. The 66-day median comes from 39 of the 82 participants with usable data, the ones whose progress followed the expected curve; for the rest the model didn't fit well. And it measured how automatic a behavior felt, not whether people kept it up afterwards. So use 66 days as a realistic horizon, not a deadline, and use the tracker to see your own curve.
HABIT PROGRESS CALCULATOR
How far along is your habit?
Enter how long you've been tracking one habit, how many days you actually did it and the horizon you're aiming for. The calculator shows your completion rate, the repetitions still to go and, at your current pace, how many more days that takes.
Repetitions are counted as days done. The horizons come from Lally et al. (2010) and are medians and extremes from one study, not targets that guarantee a habit.
KEEP IT GOING
The 10-minute weekly review
A tracker you only fill in is a log. A tracker you look at once a week is a feedback loop. Every Sunday, read the summary rows and answer four questions:
- 1
Which habit has the lowest completion rate?
Under 50% for two weeks usually means the habit is too big. Shrink it ("read 10 pages" → "read 2 pages") rather than dropping it.
- 2
Where do the red cells cluster?
Same weekday every week? Then the cue is missing on that day; attach the habit to something that does happen then.
- 3
Is one habit at 90%+ for a month?
It may be close to automatic. Keep it on the sheet but stop worrying about it, and consider adding the next one.
- 4
What changes next week?
Write one line in a notes cell beside the week. After a month those notes explain the heatmap better than any chart.
Money habits fit the same grid: a daily "logged spending" box or a weekly "budget check" row. If that's your goal, the same spreadsheet habits carry over to building a budget in 5 steps.
READY-MADE TEMPLATE
Skip the build: a habit tracker for Sheets and Excel
If you'd rather start with the grid, checkboxes and percentages already set up, there is a ready-made habit tracker that opens in Google Sheets or Excel. Check the product page for its current features.
Habit Tracker Spreadsheet for Google Sheets & Excel
The current listing tracks up to 30 daily habits with checkboxes over a full month, counts how many times you completed each one, calculates completion percentages automatically and shows your progress by day, week and month with charts, plus space for weekly habits and notes.
- Up to 30 daily habits
- Automatic completion %
- Daily, weekly and monthly view
Want habits next to tasks and plans? The ADHD Planner Spreadsheet Template for Google Sheets & Excel combines a daily habit and task tracker with meals and finances, and the Weekly Planner Template for Google Sheets & Excel puts tasks, habits and notes on one weekly page.
Product features and compatibility are listed on the product page and may change.
For what each study measured, what makes habits form faster and a 66-day plan with dates, see how long it takes to form a habit.
To color done and missed days automatically, see conditional formatting based on another cell; to count completed days, see how to use COUNTIF.
FAQ
Habit tracker questions
How do I make a habit tracker in Google Sheets?
Put dates in column A (generate them with =SEQUENCE(DAY(EOMONTH(B1,0)),1,B1) from the month start in B1), habit names in row 3, select the grid and choose Insert → Checkbox. Count completed days with =COUNTIF(B4:B34,TRUE), divide by days elapsed for a completion rate, and add conditional formatting with =B4=TRUE to color done days green.
Can I make a habit tracker in Excel with checkboxes?
Yes. Excel for Microsoft 365 and Excel for the web have in-cell checkboxes under Insert → Checkbox, which store TRUE or FALSE like Google Sheets. In older versions use a data validation list with "x" and count it with =COUNTIF(B4:B34,"x").
How do I count a streak in a spreadsheet?
Use a helper column: the first cell is =IF(B4=TRUE,1,0) and each next cell is =IF(B5=TRUE,B4+1,0), which adds one for each consecutive done day and resets to 0 after a miss. The current streak is the helper value on today's row, and the longest streak is the MAX of the helper column.
How long does it take to form a habit?
In the best-known study, by Lally and colleagues at University College London (2010), the median was 66 days to reach near-peak automaticity, with a range of 18 to 254 days among participants whose data fitted the model. The popular 21-day figure does not come from habit research.
Does missing one day ruin a habit?
According to the same study, missing a single opportunity did not materially affect the habit-forming process. Track your completion rate over weeks rather than treating a broken streak as starting over.
How many habits should I track at once?
There is no official number, but starting with three to five specific habits keeps the daily check quick. Add a new one when an existing habit has stayed above roughly 90% for a few weeks.
Sources and further reading
- Lally, van Jaarsveld, Potts & Wardle (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 40(6), 998–1009
- UCL News: How long does it take to form a habit?
- The Behavioral Scientist: What Lally et al. (2010) actually found
- Google Docs Editors Help: Add & use checkboxes
- Microsoft Support: Using checkboxes in Excel
Checked November 1, 2026. Formulas were written for the layout in this guide (dates in A4:A34, habits in B:F); adjust ranges if yours differ. Study figures are as reported for the participants whose data fitted the model; they describe one study, not a rule for everyone. This article is general information, not medical or psychological advice.