How to make a habit tracker in Excel

List your habits in column A, put the days 1 to 31 across row 1, and type x on each day you do a habit. Count the x marks with =COUNTIF(B2:AF2,"x"), divide by a goal for a progress percentage, then use conditional formatting to turn done cells green and show progress as a data bar. It takes about 15 minutes; our free Habit Tracker is the finished version if you'd rather skip the build.

Download free Habit Tracker — 10 habits, 31 days · Free

Build the grid

  1. In A1 type Habit. In B1 type 1 and in C1 type 2, select both and drag the fill handle right to AF1, which becomes 31.
  2. In AG1 type Done, in AH1 Goal and in AI1 Progress.
  3. Type up to 10 habits in A2 to A11.
  4. Select columns B to AF, right-click a column header, choose Column Width and set about 3.
  5. Click B2 and choose View → Freeze Panes → Freeze Panes, so habit names and day numbers stay in view.

Add the formulas

Copy AG2:AI2 down to row 11 and format column AI as a percentage. COUNTIF ignores case, so x and X both count. The weekday formula returns 21 for January 2027.

Done      (AG2):  =COUNTIF(B2:AF2,"x")
Goal      (AH2):  25                       a number you choose per habit
Progress  (AI2):  =IF(AH2=0,0,AG2/AH2)

Weekdays in a month, for a weekday-only goal:
                  =NETWORKDAYS(DATE(2027,1,1),EOMONTH(DATE(2027,1,1),0))

Make it turn green

  1. Select B2:AF11 and choose Home → Conditional Formatting → Highlight Cells Rules → Equal To.
  2. Type x, choose Custom Format and pick a green fill.
  3. Select AI2:AI11 and choose Home → Conditional Formatting → Data Bars.
  4. For a bar that is full at exactly 100%, open Manage Rules → Edit Rule and set Minimum to Number 0 and Maximum to Number 1.

Optional extras

Skip the build

Our free Habit Tracker is this layout, ready to use: 10 habit rows, days 1 to 31, Done, Goal (25 by default) and a green progress bar, with five example habits to replace. It counts days rather than streaks on purpose, so one missed day never wipes your progress. It opens in Excel, Google Sheets, Apple Numbers and LibreOffice.

The product

Questions

Why does my count show 0?

Check for spaces or other characters: ' x' is not the same as 'x'. The dropdown in the extras above prevents it.

Does this work in Google Sheets?

Yes. The formulas are identical; conditional formatting is under Format → Conditional formatting.

Can I print it?

Yes. Set the page to landscape and choose Fit All Columns on One Page in the print settings.

Related

Updated 2026-12-01