Free Habit Tracker Template for Google Sheets and Excel

A monthly habit tracker for Google Sheets and Excel that counts done days, compares them with a goal, and works out current and best streaks.

On this page

A habit tracker only earns its place if it tells you more than a wall calendar does. This one counts how many days you hit each habit, tells you whether the monthly goal is still reachable, and keeps a current and best streak, all with formulas you can read. Mark a day with x, or turn the grid into checkboxes in Google Sheets.

The done count for the first habit, in Tracker!AH5, is:

=IF(A5="","",COUNTIF(C5:AG5,"x")+COUNTIF(C5:AG5,TRUE))

The two COUNTIFs exist so the same sheet works with typed marks and with checkboxes. A checked box stores TRUE, which COUNTIF(...,"x") ignores, and a typed x is invisible to COUNTIF(...,TRUE). Adding both covers either style, and a mix of the two in one row.

Download habit-tracker.xlsx. It has three sheets: Tracker (the grid you fill in), Streaks (a helper the streak columns read; you never type there), and How it works.

Google Sheets with AH5 selected, showing =IF(A5="","",COUNTIF(C5:AG5,"x")+COUNTIF(C5:AG5,TRUE)) in the formula bar. Walk 8,000 steps has 13 done days, 76%, Still possible, current streak 0 and best streak 5; weekends are shaded grey.
Screenshot: Google Sheets, Nov 2026
Excel for Mac habit tracker with AH5 selected; the formula bar shows =IF(A5="","",COUNTIF(C5:AG5,"x")+COUNTIF(C5:AG5,TRUE)). Walk 8,000 steps has 13 done days, 76%, Still possible, current streak 0 and best streak 5. Completed days are green, and unmarked weekend cells are grey.
Screenshot: Microsoft Excel for Mac, Nov 2026

Following one habit through the sheet

Row 5 is “Walk 8,000 steps” with a goal of 20 days. The month starts in B2 (1 Nov 2026) and the sheet counts up to the As of date in B3 (17 Nov 2026). Days 1 to 17 hold this pattern, where x is a done day and a dot is an empty cell:

x x . x x x x x . x x x . x x x .

N2 works out how many days of the month have passed:

=MAX(0,MIN($B$3,EOMONTH($B$2,0))-$B$2+1)

That’s 17 here. It returns 0 if B3 is before the month starts and stops at the month length if B3 is later, so a finished month reads 30 for November, not 45.

From there the row fills in. Done is 13. Rate so far, =AH5/$N$2, is 13/17, which shows as 76%. The Goal column says “Still possible”: 13 done plus 13 days left in November can still reach 20. “Drink 2 L water” in row 9 shows “Out of reach” instead, because 9 done plus 13 remaining days is 22, short of its goal of 25. The test in AJ5 is:

=IF(OR(A5="",B5=""),"",IF(AH5>=B5,"Met",IF(AH5+$V$2-$N$2>=B5,"Still possible","Out of reach")))

V2 is the number of days in the month, =DAY(EOMONTH($B$2,0)), so the remaining-days arithmetic follows February and 31-day months without edits.

How the streak columns count

Walking has a best streak of 5 (days 4 to 8) and a current streak of 0. The current streak is 0 because day 17 is empty: as far as the sheet knows, today broke the run. If you look at the tracker in the morning before marking anything, every streak drops to 0 until you add today’s mark. That’s the honest answer, but it surprises people.

The Streaks sheet has the same 31 columns as the tracker. Each cell holds the length of the run ending on that day. The first day is =IF(done,1,0), and every later day adds one to the cell on its left or resets:

=IF(OR(Tracker!D5="x",Tracker!D5=TRUE),C5+1,0)

Current streak reads the run on the As of day, =INDEX(Streaks!C5:AG5,$N$2), and best streak is =MAX(Streaks!C5:AG5). “Spanish practice” shows 9 for both because it has been done every day since day 9.

I prefer the helper sheet to a single array formula for streaks. It works the same in Excel 2016 and Google Sheets, and when a number looks wrong you can look at the row on Streaks and see exactly where the run reset.

Using checkboxes instead of x

In Google Sheets, select Tracker!C5:AG12 and choose Insert > Checkbox. Do it on an empty grid. In the test, inserting checkboxes over the sample marks turned every x into an unchecked box (FALSE), and every Done count dropped to 0. With the sample days set back to checked (TRUE), the boxes counted like the marks they replaced: Walk 8,000 steps showed 13, and checking day 17 (S5 and the Space bar) moved it to 14 and its current streak from 0 to 4. Microsoft documents that a checked in-cell checkbox in Microsoft 365 (Insert > Checkbox) has the value TRUE, which the same COUNTIF counts.

For more ways to count checkboxes, including by row with BYROW, see How to count checked checkboxes in Google Sheets.

Google Sheets habit tracker after Insert > Checkbox on C5:AG12, with the sample days ticked and day 17 checked for Walk 8,000 steps. AH5 shows 14 done, 82%, and a current streak of 4.
Screenshot: Google Sheets, Nov 2026

Marks the formulas don’t count

COUNTIF ignores case, so X counts the same as x. A mark with a trailing space doesn’t: in the test file, typing x (x plus a space) into an empty day left “Stretch 10 min” at 6 instead of 7, and the cell isn’t shaded green either. Text pasted from a notes app is the usual source. If a day looks marked but isn’t counted, check the cell for a space, or see TRIM not working if the stray character is a non-breaking space.

A mark on a day after the As of date still counts toward Done, because Done looks at the whole row. Days so far doesn’t include it, so a rate above 100% means someone filled in tomorrow.

Starting a new month

Change B2 to the first day of the new month and clear C5:AG12. Row 4 rebuilds the dates; in a February test (B2 = 1 Feb 2027) the 29th to 31st columns went blank and Days in month returned 28. Don’t delete columns C to AG for short months. The summary formulas and the Streaks sheet expect all 31.

Rows 11 and 12 are empty for extra habits. Type a name in column A and a goal in column B and the row starts calculating. To keep a history, copy the Tracker sheet before you clear it and rename the copy to the month.

The shading is conditional formatting with =OR(C5="x",C5=TRUE) for done days and a weekend rule on row 4’s dates. Conditional formatting based on another cell explains the $ placement if you want to change the colors or add a rule.

Downloads

Oscar

Spreadsheet nerd who writes about Excel and Google Sheets formulas.

Tested in Google Sheets (xlsx imported with File > Import), November 17, 2026; Microsoft Excel for Mac 16.115 (Microsoft 365), November 17, 2026; LibreOffice Calc 25.2 recalculation, November 17, 2026.

Next in Templates & Trackers Free Inventory Tracker Template with Reorder Alerts