Free Excel templates · Planning and habits
Habit tracker template
Tick off daily habits for a month and see your progress: days done against a goal, your current streak, how many habits you kept each day and a chart.
.xlsx, 22 KB · no macros · works in Excel 2016 and later (Windows and Mac), Microsoft 365 and Excel for the web. Built and checked in Excel: 7 calculations verified.
Preview of the Habits sheet
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Habit tracker | |||||||
| 2 | Yellow cells are yours to change. Everything else calculates. | |||||||
| 3 | ||||||||
| 4 | Month | November 2026 | ||||||
| 5 | Habits kept this month | 95% | ||||||
| 6 | ||||||||
| 7 | Habits done that day | 5 | 2 | 6 | 3 | 5 | 3 | |
| 8 | Day | S | M | T | W | T | F | |
| 9 | Habit | Goal | 1 | 2 | 3 | 4 | 5 | 6 |
| 10 | Walk 8,000 steps | 25 | x | x | x | x | ||
| 11 | Read 20 minutes | 20 | x | x | x | |||
| 12 | No phone after 22:00 | 20 | x | x |
The sample data in the file. Replace it with your own.
What is inside
| Sheet | What it does |
|---|---|
| How to use | Steps and a link back to this page. |
| Habits | The month, one row per habit with a box per day, done, % of goal, streak, daily counts and a chart. |
How to use it
- Type any date in the month in
B4. The day letters and the shaded columns follow it. - List your habits and set a goal for each one: on how many days this month you want to do it. A goal below the number of days leaves room for rest days.
- Each day, type x (or any character) in the cell for every habit you did. Clear the cell to undo.
- Done counts the marked days, % of goal compares it with the goal, and Streak shows how many days in a row you kept the habit up to the last day you marked.
- Row 7 and the chart show how many habits you kept each day, which makes busy or difficult days easy to spot.
- For the next month, copy the sheet (right-click the tab > Move or Copy > Create a copy), change
B4and clear the marks.
How it works
Done is simply the number of non-empty day cells in the habit's row, counted with COUNTA, and % of goal is done divided by the goal, capped at 100% with MIN:
=COUNTA(tblHabits[@[1]:[31]])=IF(N([@Goal])=0,"",MIN(1,[@Done]/[@Goal]))The streak is the most interesting formula. It finds the last day you marked and the last empty day before it; the streak is the difference. Both come from AGGREGATE with function 14 (LARGE) and option 6 (ignore errors):
=IF([@Done]=0,0,AGGREGATE(14,6,COLUMN(tblHabits[@[1]:[31]])-COLUMN(tblHabits[[#Headers],[1]])+1/(tblHabits[@[1]:[31]]<>""),1)-IFERROR(AGGREGATE(14,6,COLUMN(tblHabits[@[1]:[31]])-COLUMN(tblHabits[[#Headers],[1]])+1/((tblHabits[@[1]:[31]]="")*(COLUMN(tblHabits[@[1]:[31]])-COLUMN(tblHabits[[#Headers],[1]])+1<AGGREGATE(14,6,COLUMN(tblHabits[@[1]:[31]])-COLUMN(tblHabits[[#Headers],[1]])+1/(tblHabits[@[1]:[31]]<>""),1))),1),0))COLUMN(...) minus the column of the day-1 heading gives 0 for day 1, 1 for day 2 and so on. The part +1/(condition) adds 1 where the condition is TRUE and gives #DIV/0! where it is FALSE. So the first AGGREGATE sees the day numbers of the marked days only and returns the largest: the last marked day. The second sees the empty days before it and returns the latest one, or nothing (0 with IFERROR) if there is no gap.
| AH | AI | AJ | |
|---|---|---|---|
| 9 | Done | % of goal | Streak |
| 10 | 24 | 96% | 2 |
| 11 | 21 | 100% | 1 |
| 12 | 14 | 70% | 1 |
Walking was done on 24 days, 96% of the goal of 25. The last two marked days follow a gap, so the current streak is 2. Cooking at home has a 16-day streak.
Result: 2
Row 7 counts the marks in each day's column with COUNTA on INDEX of the day columns, where COLUMNS gives 1, 2, 3 as the formula is filled right. The overall score in B5 divides all marks by all goals: 95% in the sample month.
AGGREGATE handles these arrays without Ctrl+Shift+Enter, so the template works in Excel 2010 and later as well as Microsoft 365.
Customise it
- Track a week at a time: hide the day columns you do not need, or set goals per week and compare with COUNTA over seven columns.
- Change the colour of marked days in Home > Conditional Formatting > Manage Rules (Conditional formatting, including formula-based rules).
- Add a Notes column after Streak to write what helped or got in the way.
- Use the same structure as a chore chart for a family, with one row per person and task.
Common questions
Why does my streak show 1 when I did the habit yesterday too?
Check that yesterday's cell really has a mark: a space looks empty but counts as a mark, and a cell you cleared counts as a gap.
Does the streak continue from last month?
No. Each sheet is one month, so streaks start again on the 1st. Note your streak at the end of the month if you want to keep a running record.
Can I mark half a habit?
Any character counts as done. If you want partial credit, type numbers instead and replace COUNTA with SUM in the Done column.