Softwiro
Free Excel template

Macro Tracker Template for Excel (Calories, Protein, Carbs, Fat)

A free Excel macro tracking spreadsheet for athletes and anyone training toward a nutrition target. You set a calorie target and grams of protein and fat per kilogram of body weight; carbs take whatever calories are left. You keep a list of the foods you eat with their label values, then log each food by date and meal. The sheet shows the day against target with what is left, the split of calories between protein, carbs and fat, each meal and the last 14 days. It works in Excel, LibreOffice and Google Sheets.

Excel file (.xlsx) · 174 KB · 6 tabs · works in Excel and Google Sheets · no sign-up

The blank copy has the same formulas, charts and lists without the example data; categories and settings are ready.

Try the sheet here, on the example

The sheet is open below with sample numbers. Change any white cell and watch the results update, or press the blank-copy button to type your own data from scratch. Nothing you type leaves your browser.

Example from the sheet

Example from the “Dashboard” tab, with the numbers and formulas that are in the file.
NutrientEatenTargetLeft% of target
Calories (kcal)2,8552,800-55102%
Protein (g)208160-48130%
Carbs (g)3083787081%
Fat (g)9072-18125%
DateCaloriesProteinCarbsFatTarget kcalCalories vs targetStatus
463352,855208308902,8002%On target
463362,855208308902,8002%On target
463372,615185296772,800-7%On target
463382,855208308902,8002%On target
463392,332168256722,800-17%Under calories
4634000002,800No log
463412,615185296772,800-7%On target
463422,976212332912,8006%On target
463432,855208308902,8002%On target
463442,615185296772,800-7%On target
463452,855208308902,8002%On target
463463,4982523841092,80025%Over calories
463472,643195288772,800-6%On target
463482,855208308902,8002%On target
Average of logged days2,8022023078611 of 14 days on target

Example from the “Dashboard” tab, with the numbers and formulas that are in the file.

What is inside

  • Dashboard: The day you pick against target (calories, protein, carbs, fat: eaten, target, left, % of target), the share of calories from each macro, each meal, and a 14-day table with a status (On target, Over calories, Under calories, Low protein, No log) and averages. Four charts.
  • Food Log: One row per food eaten: date, meal, food (dropdown) and servings. It adds calories, protein, carbs and fat and a Check column. Room for 2,000 rows.
  • Foods: Your food list (up to 150): serving, calories, protein, carbs and fat for one serving. A Check column warns when the calories do not match the macros.
  • Settings: Name, body weight, calorie target, protein and fat per kg, calorie tolerance, the three calculated macro targets, the day shown and your meal names.

The file opens on a start tab (“Start here”) that explains how to use it.

What makes it different

Targets come from body weight, not from a fixed number, and you log from your own food list so a label is typed once. The sample is one athlete at 80 kg and 2,800 kcal with 14 days of logs, including a missed day and an overshoot.

How do I set macro targets in a spreadsheet?

Type your body weight, your calorie target and the grams of protein and fat per kg you want. In the sample, 80 kg at 2.0 g protein per kg gives 160 g protein, 0.9 g fat per kg gives 72 g fat, and the 2,800 kcal target leaves 378 g of carbs: (2,800 - 4 x 160 - 9 x 72) / 4. Protein and carbs count 4 kcal per gram and fat 9.

These are inputs for you to choose. The sheet does the arithmetic; it does not tell you what your targets should be, so take dietary advice from a qualified person.

How do I track what I eat day by day?

Add every food to the Foods sheet once, with the values for one serving from the label. Then on the Food Log pick the food and type the number of servings (1.5 is fine). Pick the day on Settings and the Dashboard shows what you have eaten, what is left, and how each meal contributed. The 14-day table marks each day On target when calories are within the tolerance and protein is at least 90% of target.

Can I see calories from protein, carbs and fat?

Yes. The Dashboard converts the day's grams to calories (protein x 4, carbs x 4, fat x 9) and shows each share, with a doughnut chart. In the sample, the last day is 2,854 kcal with 208 g protein, 308 g carbs and 90 g fat.

How to use it

  1. On Settings type your name, body weight in kg, daily calorie target, and grams of protein and fat per kg. The sheet sets the protein and fat targets, and gives carbs whatever calories are left.
  2. On Foods list the foods you eat, with the serving size and the calories, protein, carbs and fat of one serving (copy them from the label). A Check column warns when calories and macros do not match.
  3. On Food Log add one row per food eaten: date, meal, food (dropdown) and number of servings (1.5 is fine). Calories and macros are filled in for you.
  4. Pick the day to look at on Settings. Dashboard shows that day against target with what is left, the calorie split between protein, carbs and fat, and each meal.
  5. The 14-day table shows calories and macros for each day ending on the day shown, with a status: on target, over, under, low protein, or no log.
  6. Change the day on Settings to move the 14-day window, and change the targets whenever your training or goals change.

Before you start:

  • Capacity: 2,000 food log rows, 150 foods and 8 meal names.
  • Protein target = body weight x protein per kg. Fat target = body weight x fat per kg. Carb target = (calorie target - 4 x protein - 9 x fat) / 4.
  • Calories from macros use 4 kcal per gram of protein and carbs and 9 per gram of fat. Food labels differ slightly, so calories typed from the label may not match exactly.
  • Status: Over or Under calories when the day is more than the tolerance on Settings away from target; Low protein when protein is under 90% of target; No log when nothing was logged that day.
  • A food that is not on the Foods sheet shows Not in food list and adds nothing to the totals until you add it.
  • The foods in the sample are typical values to show the sheet working: replace them with the labels of what you eat. This is a logging sheet, not medical or dietary advice.

Excel file (.xlsx) · 174 KB · 6 tabs · works in Excel and Google Sheets · no sign-up

The blank copy has the same formulas, charts and lists without the example data; categories and settings are ready.

Still running this on Excel?

This sheet suits a start and a limited amount of data. If your way of working grows, or you need more than one person working on it at the same time, Softwiro can build you a program that fits the way you work.

In this sheetIn Custom Software from Softwiro
One file that one person edits at a time, and copies reach you on WhatsApp.A program with a login for each user and permissions you define, and everyone sees the same data.
You type everything and check the numbers by hand.We design the screens around your work steps, so each person records only what concerns them.
Columns and formulas are fixed as the sheet was designed.We build what you need: reports, alerts and screens your way.
Backups and security are your own responsibility.The program runs on a secured server with regular backups.

See Custom Software from Softwiro · Ask for a demo

Frequently asked questions

Is this macro tracker free?

Yes. Download it, use it and change anything you like.

Does it work in Google Sheets and LibreOffice?

Yes. It uses ordinary formulas such as SUMIFS, INDEX and MATCH, so it works in Excel 2016 and later, LibreOffice and Google Sheets.

Does it come with a food database?

It comes with 18 common foods as examples. Replace them with the foods and label values you use; the Foods sheet holds 150.

Can I use pounds?

Targets are calculated per kg, so type your body weight in kg. Food weights in the Serving column are just text and can be in any unit.

Why does a food say Not in food list?

Its name is not on the Foods sheet. Add it there or pick it from the dropdown; until then it adds nothing to the totals.

Is the template free?

Yes, with no sign-up and no email address. Use it, edit it and share it as you like.

Does it work in Google Sheets and on mobile?

The sheet uses formulas supported by Excel 2016 and later, Google Sheets and LibreOffice, so you can upload it to Google Drive and open it with Google Sheets on a computer or a phone.

What is the difference between the white and the gray cells?

You type in the white cells; the gray cells are calculated automatically. Don't type in a gray cell, or you will erase its formula.

Can I use the sheet from an AI assistant?

Yes. Add our MCP server (URL https://softwiro.com/api/mcp, no key needed) to your assistant and ask it to do the calculation in this template. The numbers come from the sheet's own formulas, and we do not store your data. The steps and a ready-made prompt are in this article: https://softwiro.com/blog/mcp-excel-templates-ai-agent-guide.html

More free templates for: Gyms and fitness

Step-by-step guide: Athlete nutrition and macros in Excel (free): daily calories, protein, carbs and fat for your goal

More free templates

All templates · Free tools