How to build a habit tracker in a spreadsheet
A habit tracker is one of the simplest useful spreadsheets you can make: habits down the side, days across the top, and a mark in each cell when you do the thing. Here is how to build one from scratch in Google Sheets or LibreOffice Calc, plus the formulas that make it satisfying to use.
Step 1: Set up the grid
Put your habits in column A, one per row, starting in row 2. Put the dates in row 1, starting in column B. In Google Sheets you can type the first date, then the next day, select both, and drag the fill handle to fill the whole month. Keep it to one month per sheet so the grid stays readable on a phone.
Step 2: Mark completionsThe simplest mark is an x. Type x (or any character) in the cell when you complete the habit that day. Some people prefer checkboxes: in Google Sheets, select the grid and use Insert > Checkbox, which gives you tappable boxes whose value is TRUE or FALSE. Checkbox grids are easier to count, as you will see below.
Step 3: Count the month
At the right end of each habit row, add a monthly count. With x marks, use =COUNTIF(B2:AF2,"x"). With checkboxes, use =COUNTIF(B2:AF2,TRUE). A count turns a wall of marks into a number you can compare week to week.
Step 4: Add a streak (optional)Streaks are what make habit tracking addictive in a good way. A simple current-streak formula counts backwards from today until it hits a gap. It is the fiddliest formula in the sheet, so a practical shortcut many people use is a "days done in the last 7" count instead: =COUNTIF over just the last 7 date columns. It gives you the same momentum signal without the fragile formula.
Step 5: Make progress visible
Select your counts column and add conditional formatting (Format > Conditional formatting): green when the count is high, amber in the middle, red when low. Seeing the whole month at a glance is the entire point of the tracker, so make the summary row impossible to miss.
Common mistakes to avoidTracking too many habits at once is the classic one. Five habits is a good ceiling for a first month; ten boxes a day becomes a chore and you will quit the tracker before you quit the habits. Second: do not track outcomes ("lose 1 lb"), track actions ("walked 20 minutes"). You control the action, and the action is what the checkmark is for. Third: leave the grid honest. A missed day is information, not failure. The trend matters, not a perfect row.
Want it ready-made?If you would rather skip the setup, I sell a finished version: the Daily Habit Tracker (31-Day), at https://payhip.com/b/RiqY9. It is $5 and includes a 31-day check-off grid, a monthly summary with counts and percentages, and a dashboard with best streak and completion rate, all automatic. It opens in Google Sheets and LibreOffice Calc (both free), comes with clearly labeled fictional example entries so you can see every formula working, and includes a Start Here sheet. Tested in LibreOffice Calc and Google Sheets; Microsoft Excel is untested. It is a tracking tool, not professional advice.
Whichever route you take, the method is the same: few habits, daily marks, visible totals. Start tonight with one habit and one cell.