Why build a habit tracker in Excel?
Habit apps come and go, but a spreadsheet stays yours: no subscription, no account, no export button that disappears in the next update. More importantly, an Excel habit tracker can do things most apps hide behind a paywall: count any period you like, compare habits side by side, show streaks, and feed a dashboard with the rest of your life admin. This free first lesson shows you how to build one properly with three formulas and one formatting rule, and the lab above lets you do it in the browser right now.
This guide is for beginners who are comfortable typing into cells but have never built a "real" tracker, and for anyone who downloaded a template once and did not understand why the numbers were wrong. You will learn the pattern behind almost every personal tracker: one row per day, one column per thing you track, a mark in the cell, and formulas that count the marks. Once you understand it, task lists, expense logs, reading goals and workout logs are variations on the same idea, and that is exactly how the rest of this course is built.
Our example is Maya, a fictional freelance designer who runs her week from one workbook. She tracks four habits for two weeks, from Monday 2 March to Sunday 15 March 2026: Read 20 min, Workout, Water 2 L and No phone in bed. She types x when a habit is done, - for a planned rest day (only her workouts have those) and leaves the cell empty when she missed it.
The core concept: marks in a grid, formulas that count them
The grid is just data. Column A holds real dates (not text like "Mon"), so you can later filter, group by week or compare with TODAY(). Columns B to E hold one habit each. The formulas sit outside the grid: a Days done row under it, a helper column for the streak, and a cell for the longest streak. Keeping inputs (the marks) and calculations (the counts) apart is the single most important habit for building trackers that do not break.
Three ideas do all the work. COUNTIF counts the cells that hold exactly x: =COUNTIF(B2:B15,"x"). A running IF builds the streak: each day either adds 1 to yesterday's value or resets to 0. MAX finds the longest streak in that helper column. Conditional formatting then paints the done days green, so you see gaps without reading a single mark.
Worked example: counting Maya's two weeks
The first question is simple: how many days was each habit done? The tempting answer is COUNTA, which counts non-empty cells. For the Workout column that gives 12, because it also counts the four rest days marked -. The correct answer counts only the x marks: =COUNTIF(C2:C15,"x") returns 8. In the lab you write this once in B16 and copy it right to E16.
| Habit | Days done (row 16) | Result | Rest days | Completion rate |
|---|---|---|---|---|
| Read 20 min | =COUNTIF(B2:B15,"x") | 12 | 0 | 86% |
| Workout | =COUNTIF(C2:C15,"x") | 8 | 4 | 80% |
| Water 2 L | =COUNTIF(D2:D15,"x") | 11 | 0 | 79% |
| No phone in bed | =COUNTIF(E2:E15,"x") | 7 | 0 | 50% |
The completion rate is a useful extra that is not in the lab. For habits without rest days it is done days divided by all days, for example =B16/ROWS(B2:B15) gives 12/14 = 86% for reading. For the Workout column it is fairer to leave planned rest days out of the denominator: =COUNTIF(C2:C15,"x")/(ROWS(C2:C15)-COUNTIF(C2:C15,"-")) gives 8/(14−4) = 80%. Format these cells as percentages with Ctrl+Shift+%.
The streak counter, row by row
A streak is the number of done days in a row up to today. Excel has no STREAK function, but a helper column builds it with one simple rule. In F2 (the first day) there is no yesterday, so the streak is 1 if Read is done and 0 if not: =IF(B2="x",1,0). From F3 on, each day looks at the day above: =IF(B3="x",F2+1,0). Copy F3 down to F15. Because F2 is a relative reference, row 10 automatically refers to F9, row 11 to F10, and so on.
| Date (A) | Read (B) | Streak formula (F) | Result |
|---|---|---|---|
| Mon 02 Mar | x | =IF(B2="x",1,0) | 1 |
| Tue 03 Mar | x | =IF(B3="x",F2+1,0) | 2 |
| Wed 04 Mar | x | =IF(B4="x",F3+1,0) | 3 |
| Thu 05 Mar | x | =IF(B5="x",F4+1,0) | 4 |
| Fri 06 Mar | x | =IF(B6="x",F5+1,0) | 5 |
| Sat 07 Mar | x | =IF(B7="x",F6+1,0) | 6 |
| Sun 08 Mar | x | =IF(B8="x",F7+1,0) | 7 |
| Mon 09 Mar | (empty) | =IF(B9="x",F8+1,0) | 0 |
| Tue 10 Mar | x | =IF(B10="x",F9+1,0) | 1 |
| Wed 11 Mar | x | =IF(B11="x",F10+1,0) | 2 |
| Thu 12 Mar | (empty) | =IF(B12="x",F11+1,0) | 0 |
| Fri 13 Mar | x | =IF(B13="x",F12+1,0) | 1 |
| Sat 14 Mar | x | =IF(B14="x",F13+1,0) | 2 |
| Sun 15 Mar | x | =IF(B15="x",F14+1,0) | 3 |
The last row, F15, holds the current streak: 3 days. The longest streak is the largest value anywhere in the column: =MAX(F2:F15) returns 7, the first full week. A common mistake is to take F15 as the longest streak; it is only the latest one.
=IF(C3="x",G2+1,IF(C3="-",G2,0)). A rest day carries yesterday's value forward unchanged. With Maya's data, the longest workout streak becomes 4 instead of 2.Step by step: build the habit tracker in Excel
- In A1 type Date and the habit names in B1:E1. Add Read streak in F1. Select A1:F1 and turn on Home > Wrap Text so long names fit.
- In A2 type the first date,
2026-03-02(or 2/3/2026 / 3/2/2026, depending on your regional settings). Drag the fill handle down to A15: Excel continues the dates one day at a time. Format them with Ctrl+1 > Number > Date or a custom format likeddd d mmmto show the weekday. - Select B2:E15 and choose Data > Data Validation. Under Allow pick List and type
x,-as the Source. Every cell now has a drop-down and rejects anything else, which keeps your counts honest. - In A16 type Days done. In B16 enter
=COUNTIF(B2:B15,"x")and drag it right to E16. The range is relative, so C16 counts column C, D16 column D and so on. - In F2 enter
=IF(B2="x",1,0). In F3 enter=IF(B3="x",F2+1,0), then select F3:F15 and press Ctrl+D to fill it down. - In A18 type Longest Read streak and in B18 enter
=MAX(F2:F15). - Select B2:E15 and choose Home > Conditional Formatting > Highlight Cells Rules > Equal To. Type
xand choose Green Fill with Dark Green Text. Done days turn green. - Optional: add a second rule for the gaps with Conditional Formatting > New Rule > Format only cells that contain > Blanks and a light red fill, so missed days stand out. Rule order matters little here because a cell cannot be both x and blank.
- Freeze the header row with View > Freeze Panes > Freeze Top Row, so the habit names stay visible when the log grows to months.
=COUNTIF(B2:B15,TRUE). Checkboxes cannot hold a third state like a rest day, which is one reason the x / - / empty system is still popular.
Choosing your marks: x, 1/0 or checkboxes
The mark you type decides which formulas you need, so it is worth choosing deliberately. Text marks like x are fast to type, readable on screen and in print, and allow extra states such as - for a rest day or s for sick. You count them with COUNTIF. Numbers (1 for done, 0 or empty for not done) let you use plain SUM and AVERAGE: =AVERAGE(B2:B15) on a 1/0 column is directly the completion rate. They are less pleasant to read, but ideal when a tracker feeds charts. Checkboxes are the nicest to click, especially on a touch screen, and store TRUE or FALSE, which you count with COUNTIF(range,TRUE).
Whatever you choose, use it consistently in one workbook. Mixing x in one column and 1 in another means every summary formula needs a different criterion, and the dashboard you build at the end of this course becomes harder than it needs to be. For Maya, x plus - is the right compromise: she logs her day in a few seconds, and the formulas stay simple. If you later want numbers for a chart, a helper column such as =--(B2="x") converts each mark into 1 or 0 without touching the original log.
Growing the tracker beyond two weeks
A tracker is only useful if it survives more than a fortnight. The cleanest way to add weeks is to insert rows above the Days done row (right-click row 16 > Insert). Because the new rows sit inside the referenced range, Excel widens B2:B15 to B2:B22 automatically and the counts stay correct. Rows added below the totals are not included, which is the most common reason a tracker suddenly "stops counting".
An even more robust option is to convert the grid into an Excel table with Insert > Table (Ctrl+T). New rows typed directly under the table join it automatically, formulas in the streak column fill down on their own, and you can count with structured references such as =COUNTIF(Habits[Workout],"x"). To see one week only, add a date condition: =COUNTIFS(B2:B15,"x",A2:A15,">="&DATE(2026,3,9),A2:A15,"<="&DATE(2026,3,15)) returns 5 read days for Maya's second week, against 7 in the first.
Common mistakes and how to spot them
- Counting with COUNTA. Rest days, spaces and stray characters count as done. Spot it: your Workout total is higher than the number of green cells. Use
COUNTIF(range,"x"). - A space after the x. "x " is not equal to "x", so COUNTIF ignores it and the cell stays white. Spot it: a mark that is not coloured by the Equal-to rule. Data Validation with the list
x,-prevents it. - Taking the last row as the longest streak. F15 is the current streak; the record can lie anywhere in the column. Use
MAX(F2:F15). - Absolute reference in the streak.
=IF(B3="x",$F$2+1,0)always adds to the first day, so the streak never grows past 2. The reference to yesterday must stay relative. - Dates typed as text. "Mon 2 March" typed by hand looks fine but cannot be used in COUNTIFS or compared with TODAY(). Spot it: text aligns left by default, real dates align right.
- New rows outside the range. Days added under the totals row are ignored. Insert rows inside the grid or use an Excel table.
Quick reference: functions and shortcuts in this lesson
| Function, tool or shortcut | What it does |
|---|---|
COUNTIF(range,"x") | Counts cells that equal x (not case-sensitive). The core of every habit or status tracker. |
COUNTA(range) | Counts every non-empty cell. Useful for "days logged", wrong for "days done" when you use rest marks. |
COUNTBLANK(range) | Counts empty cells, here the missed days. |
COUNTIFS(B2:B15,"x",A2:A15,">="&DATE(2026,3,9)) | Counts done days that also meet a date condition, for example one week. |
IF(B3="x",F2+1,0) | Running streak: add 1 to yesterday or reset to 0. |
MAX(F2:F15) | Longest streak in the helper column. |
| Data > Data Validation > List | Drop-down with the allowed marks, Source x,-. |
| Home > Conditional Formatting > Highlight Cells Rules > Equal To | Colour the done days. |
| Ctrl+; (semicolon) | Type today's date as a fixed value into a cell. |
| Ctrl+D | Fill the formula from the cell above into the selected cells below. |
Real-world uses of the same pattern
- Personal habits: reading, exercise, water, sleep, language practice. The grid plus streak works for any yes/no daily goal.
- Team check-ins: a small team marks daily stand-up attendance or a completed safety checklist; COUNTIF per person gives the monthly total for a review.
- Medication or plant-watering logs: an x per dose or watering day, a streak to see consistency, and a blank-cell rule that makes missed days obvious. (For anything medical, follow your doctor's instructions, not a spreadsheet.)
- Content schedules: a freelancer marks the days a post, newsletter or video went out and tracks the longest publishing streak.
- Classroom or training attendance: one column per student, x for present, - for excused; the completion rate formula with rest days becomes an attendance rate that does not penalise excused absences.
What you will build in the rest of this course
To-Do & Task Tracker: Status, Due Dates, Overdue Flags & % Done. You add days left with TODAY(), an Overdue flag that only appears for open tasks, the share of finished tasks and an overdue count to Maya's task list.
Expense Tracker: Categories, SUMIFS by Month & Budget vs Actual. You add a month column to an expense log, total it by category and month with SUMIFS and flag overspent categories. This is the tracker most people actually need, and the one most templates get wrong.
Reading Goal Tracker: Progress %, Pace Needed per Day & On Track? You measure a 12-book goal by pages, calculate the pages per day still needed and answer the only question that matters: am I on track?
Workout Log: Volume, Week Numbers, Weekly Totals & Personal Bests (MAXIFS). You add training volume and week numbers to a lifting log, total each week with SUMIFS and find every exercise's personal best with MAXIFS.
Mini-Gantt Project Timeline: Durations & Formula Rules that Shade the Weeks. You build a project timeline whose bars are drawn by a conditional-formatting formula, plus a marker on the current week. No add-ins, no drawing shapes by hand.
Savings Goal Tracker: Running Balance, Progress % & Months to Goal (with a Chart). You track a savings fund with an expanding SUM, measure progress, estimate the months still needed at the average pace and chart the balance.
Mid-course Dashboard: KPIs from Every Tracker & a Budget vs Actual Chart. You pull it all together into one screen: tasks done, budget used, best habit found with INDEX/MATCH and a budget vs actual chart, and you earn the Tabellab Excel Tracker Builder certificate.
Summary: build it yourself in the lab above
A good Excel habit tracker is a grid of marks with real dates, a COUNTIF per habit that counts only the x marks, a helper column with =IF(B3="x",F2+1,0) for the streak, MAX for the longest streak, Data Validation to keep the marks clean and a conditional-formatting rule that paints the done days green. The same pattern, inputs in a grid and formulas outside it, carries you through every tracker in this course.
Scroll up to the lab and build Maya's tracker now: count the days per habit, build the Read streak, find her longest run and colour the grid. It takes about fifteen minutes, the Coach checks each step and explains every typical mistake, and you finish with a tracker you can copy for your own habits tonight.
Frequently asked questions
How do I make a habit tracker in Excel?
Put dates in column A and one habit per column, mark done days with x, and count them with =COUNTIF(B2:B15,"x"). Add a conditional-formatting rule Equal to x with a green fill to see the done days at a glance.
How do I count checkmarks or x marks in Excel?
Use COUNTIF with the mark as the criterion, for example =COUNTIF(B2:B15,"x"). For real checkboxes in Microsoft 365, count the ticked ones with =COUNTIF(B2:B15,TRUE).
How do I calculate a streak in Excel?
Use a helper column: =IF(B2="x",1,0) on the first day and =IF(B3="x",F2+1,0) from the second day, copied down. The last row is the current streak and =MAX(F2:F15) is the longest streak.
Why does COUNTA give the wrong number of done days?
COUNTA counts every non-empty cell, including rest-day marks like - or a stray space. COUNTIF(range,"x") counts only the cells that equal x.
How do I make done days turn green automatically?
Select the grid, choose Home > Conditional Formatting > Highlight Cells Rules > Equal To, type x and pick a green fill. Every new x turns green as soon as you type it.
Can rest days pause a streak instead of resetting it?
Yes. Use a three-way IF such as =IF(C3="x",G2+1,IF(C3="-",G2,0)), so a planned rest day carries yesterday's streak forward and only a missed day resets it to 0.
Keep going: Excel Trackers: Habit, Task, Expense & Goal Trackers with Formulas
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time €9.90.
- To-Do & Task Tracker: Status, Due Dates, Overdue Flags & % Done
- Expense Tracker: Categories, SUMIFS by Month & Budget vs Actual
- Reading Goal Tracker: Progress %, Pace Needed per Day & On Track?
- Workout Log: Volume, Week Numbers, Weekly Totals & Personal Bests (MAXIFS)
- Mini-Gantt Project Timeline: Durations & Formula Rules that Shade the Weeks
- Savings Goal Tracker: Running Balance, Progress % & Months to Goal (with a Chart)
- Mid-course Dashboard: KPIs from Every Tracker & a Budget vs Actual Chart
- Weekly Habit Review: COUNTIFS per Week, Rest Days & a Fair Completion Rate
- Sleep & Mood Log: AVERAGEIFS by Group, CORREL and a Scatter Chart
- Subscriptions & Renewals: Monthly Cost, Next Charge with EDATE & a 14-Day Warning
- Freelance Time Log: Start & End Times, a Session past Midnight & Billable Hours per Client
- Shared Flat Expenses: Who Paid What, Fair Shares & Who Settles Up
- Book Log: Days per Book, Pages per Day, Books Finished per Month & a Genre Chart
- Running Log: Pace from Time & Distance, Weekly Kilometres & a Jump Warning
- Goal Scorecard: Progress from Start to Target, Lower-Is-Better Goals & a Weighted Score
- Pantry & Supplies Tracker: Weeks of Stock Left, Buy Flags, Packs to Buy & the Shopping Total
- Home Maintenance Tracker: Last Done from a Log with MAXIFS, Next Due & Overdue Days
- Tracker Health Checks: Duplicates, Dates outside the Month, Unknown Categories & a Problem Count
- Final Project: Half-Year Life Dashboard with KPIs, Red Flags & a Combo Chart