Softwiro
Free Excel template

Dairy Farm Record Keeping Spreadsheet for Excel

A free Excel record book for a small or family dairy. You list your animals once, then log the milk each cow gives, the milk you sell, the feed you buy, every treatment and every service. The sheet works out days in milk, the expected calving date of each pregnant cow, which milk is still under a withdrawal period, and, for the month you choose, income over feed cost and feed cost per litre. It opens in Excel, LibreOffice and Google Sheets and works in any currency, with litres and kilograms.

Excel file (.xlsx) · 389 KB · 10 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.
As of / month shown46356
Milk produced (litres)5,100
Milk sold (litres)4,805
Milk revenue2,883.00
Feed cost1,392.00
Treatment and vet cost107.20
Income over feed cost1,491.00
Margin after feed and treatments1,383.80
Feed cost per litre sold0.290
Feed cost as share of milk revenue48.3%
Litres per cow per milking day21.3
Litres withheld after treatment115

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

What is inside

  • Dashboard: For the month on Settings: milk produced and sold, revenue, feed cost, treatment cost, income over feed cost, margin, feed cost per litre and per cent of revenue, litres per cow per milking day, litres withheld, animals by status, calvings due and treatments still under withdrawal. Four charts: litres per week, revenue against feed cost and income over feed cost per week, herd by status, and litres per animal.
  • Herd: One row per animal: ID, name, breed, birth date, status, reproductive status, last calving and last service. It calculates age in months, days in milk, expected calving, days to calving, litres this month, average litres per day and days milked. Room for 200 animals.
  • Milk: One row per cow per day with morning and evening litres. It adds the total, the cow's name, and marks the row Withheld when the cow was under a milk withdrawal period on that date. Room for 4,000 rows.
  • Health: Date, cow, problem, medicine or provider, cost and the number of days milk must be withheld. It shows the date the withdrawal ends.
  • Sales: Each milk delivery: date, buyer, litres sold and price per litre, with the amount.
  • Feed: Each feed purchase: date, feed, supplier, kilograms and cost per kilogram, with the cost.
  • Breeding: Heats, services, pregnancy checks, calvings and dry-offs. For every service it shows the expected calving date.
  • Settings: Farm name, currency symbol, as-of date, month to report, gestation length, the calving alert window and the lists for status, breed, reproductive status, feed and breeding events.

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

What makes it different

Most dairy templates are one flat list of cows. This one keeps the daily milk, the sales, the feed bill and the treatments in separate logs and joins them for you, so you can see what the milk earned after feed, and which cows are close to calving or still under withdrawal, without building a single formula. The sample is a 12-animal herd with eight weeks of milk, sales and feed ending 2026-11-30.

What records should a dairy farm keep?

Four things cover most decisions: how much milk each cow gives, what you spend on feed and treatments, when each cow was served and is due to calve, and what you sold the milk for. Cow, date and amount are the minimum for each log; the rest can be added later.

Keep each log in its own table with one row per event. A cow's page is then just a filter, and the totals never depend on a hand-typed cell. That is how the sheets in this workbook are laid out.

How do I calculate income over feed cost?

Income over feed cost is milk revenue minus feed cost for the same period. Divide the feed cost by the litres you sold to get feed cost per litre, and by revenue to see how much of each unit of income the feed takes. In the sample for November 2026, 4,805 litres were sold for 2,883.00 and feed bought cost 1,392.00, so income over feed cost is 1,491.00 and feed cost is 0.29 per litre sold.

Feed here is counted on the day it is bought, so a month with a large delivery looks worse than the cows' real intake. If you want a steadier figure, compare three months together. Extension services publish their own benchmarks; check what applies where you farm.

How do I track calving dates and milk withdrawal?

Mark an animal Pregnant, type the date of the last service, and the sheet adds the gestation length from Settings (283 days by default) to show the expected calving date and the days left. Calvings due within the alert window are counted on the Dashboard and highlighted on the Herd sheet.

For treatments, type the number of days milk must be withheld, as your vet or the medicine label says. Every milk row for that cow up to the end date is marked Withheld, and the Dashboard totals the litres. The sheet flags the rows; it does not decide what is safe to sell, so follow your vet and local rules.

How to use it

  1. On Settings type your farm name, currency symbol, the as-of date (today), the month to report and the gestation length in days. The status, breed, feed and event lists can be edited.
  2. On Herd list every animal once: ID, name, breed, birth date, status, reproductive status, last calving date and last service (AI) date.
  3. On Milk add one row per cow per day: date, cow ID and the morning and evening litres. The total and the cow name fill in by themselves.
  4. On Sales record each milk delivery with litres and price per litre, and on Feed each feed purchase with kilograms and cost per kilogram.
  5. On Health log each treatment with its cost and the number of days the milk must be withheld. Milk rows in that period are marked Withheld.
  6. On Breeding log heats, services, pregnancy checks, calvings and dry-offs. The expected calving date of each service is calculated.
  7. Open Dashboard for the month: milk produced and sold, revenue, feed cost, income over feed cost, feed cost per litre, calvings due and weekly charts.

Before you start:

  • Capacity: 200 animals, 4,000 milk rows, 1,000 sales rows, 1,000 feed rows, 500 treatments and 1,000 breeding events.
  • Income over feed cost = milk revenue minus feed cost for the month. Feed is counted on the date it is bought, so a month with a big purchase looks worse than it is.
  • Expected calving = last service date + gestation days (default 283), shown only for animals marked Pregnant. Confirm with your vet.
  • Withdrawal period: type the days milk must be withheld as your vet or the medicine label says. The sheet only flags the milk rows; it does not decide what is safe.
  • The sheet does not use TODAY(): type the as-of date on Settings. The weekly charts cover the eight weeks ending on that date.
  • The "Milk per cow" chart shows the first 12 animals on the Herd sheet. Litres here are litres; use one currency in one workbook.

Excel file (.xlsx) · 389 KB · 10 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 dairy record keeping spreadsheet free?

Yes. Download it, use it on your farm and change it as you like. You do not need to sign up to open the file.

Does it work in litres and any currency?

Yes. Milk is in litres and feed in kilograms. The currency symbol on Settings is only a label, so use your own currency throughout the workbook.

How many cows and milk records can it hold?

200 animals, 4,000 milk rows, 1,000 sales rows, 1,000 feed rows, 500 treatments and 1,000 breeding events. When the milk log fills up, save a copy and start a new file for the next period.

Does it work for beef cattle, goats or sheep?

The herd, breeding and health logs fit any livestock if you rename the statuses and set the gestation length. The milk, sales and income over feed cost parts are for milking animals.

Can I track milk per cow every day?

Yes. Add one row per cow per day on the Milk sheet. The Herd sheet then shows each cow's litres this month, days milked and average litres per day, and the Dashboard charts them.

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: Farming

Step-by-step guide: Livestock and dairy farm in Excel (free): herd, milk, feed and calvings

More free templates

All templates · Free tools