Habits and Routines · Trackers and Streaks

Habit Tracker in Excel or Google Sheets: Build One in 15 Minutes

A 31-day grid, a tick per day, a formula that counts the ticks, cells that turn green and dates that fill themselves in.

On This Page

Short answer

A 31-day grid, a tick per cell, COUNTIF to total it.

  • Excel: a drop-down with an x, or Insert > Checkbox in Microsoft 365.
  • Google Sheets: Insert, then Checkbox; set the checked value to 1.
  • =COUNTIF(range, "x") or =COUNTIF(range, 1) counts the done days.
Through an open doorway at dusk, a small home office with a laptop on the desk showing a grid of green ticks, a lamp, a mug, a notebook and an empty desk chair pushed back.

To build a habit tracker in Excel or Google Sheets, put your habits in column A and the days 1 to 31 across row 1, give each day cell a tick (a drop-down with x in Excel, a checkbox in Sheets), total each row with one COUNTIF formula, and add one conditional formatting rule that turns the ticks green. It takes about fifteen minutes.

Template sites will sell you a habit tracker spreadsheet with charts, streak counters and thirty color themes. A free blank grid is all you need to start. Building the part that matters yourself means you know exactly how every cell works when you want to change it.

How Do You Make a Habit Tracker in Excel?

Put your habits in column A and the days 1 to 31 across row 1, then give every day cell a drop-down with the single choice "x", which works in Excel 2016 and every later version. A COUNTIF at the end of each row counts the x's, and a highlight rule turns each x green. Excel for Microsoft 365 can use real checkboxes instead.

The Excel Build in Five Steps

  1. Type Habit in A1, days 1 to 31 in B1 to AF1, Done in AG1
  2. List one habit per row from A2 down, three to start
  3. Give B2:AF4 a Data Validation drop-down with the item x
  4. In AG2, type =COUNTIF(B2:AF2,"x") and fill down
  5. Add a Highlight Cells Rule: Equal To x, green fill

Set Up the Grid

The top of the sheet looks like this once the first two steps are done. Column AG holds the count, and AH can hold the share of the month so far.

A B C D … AF AG AH
1 Habit 1 2 3 … 31 Done Rate
2 Walk 30 min x x … 2 67 %
3 Lights out by 11 x x … 2 67 %
4 Read one page x x x … 3 100 %

Narrow columns B to AF so the whole month fits on one screen. A width that shows a single character is enough.

Add a Drop-Down Tick

Select B2:AF4, then follow Microsoft's steps: on the Data tab choose Data Validation, set Allow to List, and type x in the Source box. Keep "In-cell dropdown" checked, or the arrow will not appear next to the cell.

A drop-down keeps every tick identical. Typed ticks drift into "x ", "xx" and "yes", and the formula then misses them. A capital "X" is fine: COUNTIF criteria are not case sensitive.

Count the Done Days

In AG2, type =COUNTIF(B2:AF2,"x") and drag it down to the last habit row. COUNTIF counts the cells in a range that meet a criterion, here every cell holding an x.

Or Use a Checkbox in Excel for Microsoft 365

The Microsoft 365 versions of Excel have a built-in checkbox: select B2:AF4 and choose Insert > Checkbox. A checked box holds the value TRUE and an empty one FALSE, so the count in AG2 becomes =COUNTIF(B2:AF2,TRUE).

Microsoft lists the checkbox for Excel for Microsoft 365 on Windows and Mac only. In Excel 2016, 2019, 2021 or 2024 bought outright, stay with the drop-down.

Your program Tick in the cell A done cell holds Count in AG2
Excel 2016 to 2024 Data Validation drop-down x =COUNTIF(B2:AF2,"x")
Excel for Microsoft 365 Insert > Checkbox TRUE =COUNTIF(B2:AF2,TRUE)
Google Sheets Insert > Checkbox, checked value 1 1 =COUNTIF(B2:AF2,1)

How Do You Make a Habit Tracker in Google Sheets?

Lay out the same grid, then select the day cells and use Insert, then Checkbox. Set the checkbox's checked value to 1, so a simple COUNTIF or SUM totals each row. Google's help page gives both menu paths.

To set the value:

  1. Select the checkboxes and open Data, then Data validation.
  2. Choose Checkbox under Criteria and click "Use custom cell values".
  3. Type 1 next to Checked, leave Unchecked empty, then Save.

With checked cells holding 1, the count in AG2 is =COUNTIF(B2:AF2,1), the same COUNTIF syntax Excel uses: a range, then a criterion.

How Do You Count Completed Days in a Habit Tracker Spreadsheet?

With COUNTIF for the total and a division for the rate. The total sits in column AG; the rate divides it by the number of days so far, so a half-finished month still shows a fair score.

What you want Excel formula Google Sheets formula
Done days this month =COUNTIF(B2:AF2,"x") =COUNTIF(B2:AF2,1)
Days missed so far (on day 18) =18-AG2 =18-AG2
Rate so far (on day 18) =AG2/18 =AG2/18
Done days in week 1 =COUNTIF(B2:H2,"x") =COUNTIF(B2:H2,1)
Habits done today (day 18) =COUNTIF(S2:S4,"x") =COUNTIF(S2:S4,1)

Format the rate column as a percentage. Change 18 to the day of the month when you review, or to 31 at the month's end.

How Do You Make the Month Fill In by Itself?

Type the first day of the month into B1 with the DATE function, add one to it across the row, and format the row to show only the day number. The headers then follow the real calendar, and weekends and today can be shaded by rule.

Cell Formula or setting What it does
B1 =DATE(2026,11,1) The first day of the month. DATE takes year, month, day
C1, filled right to AF1 =IF(B1="","",IF(MONTH(B1+1)=MONTH($B$1),B1+1,"")) Adds a day, and stays blank after the month ends, so April stops at 30
B1:AF1 Number format d Shows 1 to 31 and not the full date
B1:AF4 Rule =WEEKDAY(B$1,2)>5 Shades Saturday and Sunday: WEEKDAY with 2 numbers Monday as 1 and Sunday as 7
B1:AF4 Rule =B$1=TODAY() Marks today's column

Both rules go in as a custom formula rule: in Excel under Home, Conditional Formatting, New Rule, Use a formula; in Google Sheets under Format, Conditional formatting, Custom formula is. Each month, change the date in B1 and the rest of the sheet follows.

How Do You Make Done Cells Turn Green Automatically?

Add one conditional formatting rule to the day cells. In Excel, a Highlight Cells Rule set to Equal To x; in Google Sheets, a custom formula rule that checks for 1. The cells then fill green the moment you tick them.

In Excel

Select B2:AF4, then on the Home tab open Conditional Formatting, choose Highlight Cells Rules, then Equal To. Type x and pick a green fill.

For the rate column, Microsoft's Color Scales option shades each rate by its value, so a strong habit and a weak one stand out side by side.

In Google Sheets

Select B2:AF4, open Format, then Conditional formatting, and under "Format cells if" pick "Custom formula is". Enter =B2=1, choose a green fill and click Done. The rule moves with each cell, so every ticked box turns green.

Through his own eyes on a rainy commuter ferry, a man's dark-skinned hands tap a phone showing a grid of green ticked squares, the harbor and a waterside town outside the window.
Tick the row before you step off the ferry. A tick put off until Sunday is a guess, and a guess is what the weekly total will count.

Is Excel or Google Sheets Better for a Habit Tracker?

Either does the job; pick the one you already open daily. Both have real checkboxes now, Excel only in its Microsoft 365 versions; Sheets runs in a browser, and Excel's drop-down works offline in every version from 2016 on.

Excel

  • Drop-down tick in Excel 2016 and later
  • Works offline in the desktop app
  • Rules under Home, Conditional Formatting
  • Color Scales for the rate column

Google Sheets

  • Checkboxes from the Insert menu
  • You choose the checked value, such as 1
  • Runs in a browser
  • Rules under Format, Conditional formatting

What matters more than the program is that you actually record each day. In Harkin and colleagues' meta-analysis of 138 studies, monitoring progress helped people reach their goals, and the effect was larger when people recorded it physically or reported it to others. A spreadsheet you share with a friend does both.

At a long table in a co-working café at dusk, a woman with a curly dark ponytail shows her laptop to her friend with a blond pixie cut, and both laugh.
Agree on one day for the weekly look, such as Sunday evening, and read the AG totals aloud. The ticks only count if someone else expects them.

Your Setup, Your Spreadsheet

  • Excel is open on my work laptop all dayThe Excel build, kept in a pinned file
  • I want to tick from my phoneGoogle Sheets with checkboxes
  • I want a friend to see my progressA shared Google Sheet, one tab each
  • I want each month on its ownOne tab per month, copied from a blank template tab
  • I would rather tick on paperA printed grid by the kettle or the fridge

Spreadsheet Mistakes That Break the Count

Most broken trackers fail on one of four slips. Each has a one-line fix.

Mistake What happens Fix
Typing ticks by hand "X" and "x " are not counted Use the drop-down or checkbox only
Dividing by 31 mid-month The rate looks terrible on day 10 Divide by the day you review
Twelve habit rows on day one Most rows stay empty by week two Start with three rows
A new file every month Last month's numbers get lost One tab per month in one file

Which rows earn a place on the sheet is its own question; rows written as a yes or no, each tied to a goal, are the ones that last. And when you mark them matters as much as the grid: right after the action, with a weekly read-back, is the method that keeps the numbers honest.

For water, a spreadsheet is more than you need: the printable water tracker is a ready grid of glasses you tick on paper. If Excel is open on a Windows PC all day anyway, Drink Reminder from the Microsoft Store keeps a daily and weekly water history, and its store page mentions a Pro version with Excel export.

Common Questions

Is Excel free to use online?

Yes: Excel for the web is free when you sign in, and the tracker file must be saved in and shared from OneDrive.

Does Google Sheets work without internet?

Yes, on a computer: in Chrome or Edge, install the Google Docs Offline extension and turn on offline access while still connected. Private browsing windows do not work offline.

General information for healthy adults, not medical advice. If a doctor has set your fluid amount, follow that.

Glubbo floats beside a sheet of paper with rows of small glass outlines, some colored in, and a pencil on the sand.

Print Your Tracker

A sheet of marks sized to your goal and your glass.

Make the Tracker

Next topic: Sleep and Recovery

Sources

  1. Microsoft Support. Apply data validation to cells, 2026.
  2. Microsoft Support. Use the COUNTIF function in Microsoft Excel, 2026.
  3. Microsoft Support. Use conditional formatting to highlight information in Excel, 2026.
  4. Microsoft Support. Use check boxes in Excel, 2026.
  5. Microsoft Support. DATE function, 2026.
  6. Microsoft Support. WEEKDAY function, 2026.
  7. Google Docs Editors Help. Add and use checkboxes, 2026.
  8. Google Docs Editors Help. COUNTIF, 2026.
  9. Google Docs Editors Help. Use conditional formatting rules in Google Sheets, 2026.
  10. Psychological Bulletin (Harkin, Webb, Chang and colleagues). Does monitoring goal progress promote goal attainment? A meta-analysis of the experimental evidence, 2016.
  11. Microsoft 365 product page. Get free access to Word, Excel, and PowerPoint, 2026.
  12. Google Docs Editors Help. Work on Google Docs, Sheets, & Slides offline, 2026.

Sources checked by the Glubbo Editorial Team on Nov 2, 2026. General information, not medical advice. How we write and check our guides.

Glubbo

Drink water reminder

Try Glubbo on your phone

Log a drink in 1 tap. Every glass fills a fish tank

Get Glubbo

Free · No account needed

Scan to install on your phone