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.

Beginner COUNTA AGGREGATE COLUMN COLUMNS INDEX MIN SUM EOMONTH WEEKDAY CHOOSE IFERROR

Download the template

.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

ABCDEFGH
1Habit tracker
2Yellow cells are yours to change. Everything else calculates.
3
4MonthNovember 2026
5Habits kept this month95%
6
7Habits done that day526353
8DaySMTWTF
9HabitGoal123456
10Walk 8,000 steps25xxxx
11Read 20 minutes20xxx
12No phone after 22:0020xx

The sample data in the file. Replace it with your own.

What is inside

SheetWhat it does
How to useSteps and a link back to this page.
HabitsThe month, one row per habit with a box per day, done, % of goal, streak, daily counts and a chart.

Mark a day with any character Goal per habit and % of goal as data bars Current streak per habit Daily count of habits kept and a column chart Weekends and non-existent days shaded Overall score for the month

How to use it

  1. Type any date in the month in B4. The day letters and the shaded columns follow it.
  2. 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.
  3. Each day, type x (or any character) in the cell for every habit you did. Clear the cell to undo.
  4. 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.
  5. Row 7 and the chart show how many habits you kept each day, which makes busy or difficult days easy to spot.
  6. For the next month, copy the sheet (right-click the tab > Move or Copy > Create a copy), change B4 and 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:

Formula
=COUNTA(tblHabits[@[1]:[31]])
Done column of tblHabits.
Formula
=IF(N([@Goal])=0,"",MIN(1,[@Done]/[@Goal]))
% of goal column.

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):

Formula
=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))
Streak column.

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.

AJ10fx=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))
AHAIAJ
9Done% of goalStreak
102496%2
1121100%1
121470%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.

More free templates