Softwiro
Free Excel template

Pharmaceutical Batch Record Tracker for Excel (Lots, Yield, QA Release)

A free Excel workbook that follows a small plant's batches from the received lot to the shipped pack. It keeps a log of raw material and packaging lots with their QC status and expiry or retest dates, the products you make, each manufacturing batch with its theoretical and actual yield, the in-process check and the QA release decision, the lot used for every material in every batch, deviations and dispatch. It checks one thing against another: a batch that used a lot still in quarantine, a lot that expired before the batch was made, a release without a passing check, a release with an open deviation, or a shipment from a batch that is not released are all flagged. It is a record and reconciliation sheet, not a validated system, and it holds no formulas, doses or official limits. It opens in Excel, LibreOffice and Google Sheets.

Excel file (.xlsx) · 341 KB · 11 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 “Summary” tab, with the numbers and formulas that are in the file.
As of / month shown46342
Materials listed10
Materials below minimum usable stock3
Lots in quarantine2
Lots expired or past retest with stock1
Lots expiring soon1
Lots rejected1
Batches started this month5
Batches awaiting a QA decision (Pending or On hold)3
Batches released8
Batches rejected1
Release rate (released / decided)88.9%
Average yield of batches with an actual yield97.3%
Batches with yield outside your limits2
Open deviations3
Deviations overdue1
Material-use lines with an alert2
Batches with an alert3
Dispatch lines with an alert1
Released stock available to ship (units)60,640

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

What is inside

  • Summary: Materials below minimum, lots in quarantine, expired or past retest, expiring soon and rejected, batches started this month, batches awaiting a QA decision, released and rejected batches, release rate, average yield, batches outside your yield limits, open and overdue deviations, alerts on materials, batches and dispatch, and released stock available to ship; lots by standing, batches by product and QA decision, batches by month, and three charts.
  • Materials: One row per raw material or packaging component (up to 100): code, name, type, unit and minimum usable stock. It adds usable balance, quantity in quarantine, quantity expired or past retest, and a status.
  • Lots: One row per received lot (up to 300): lot number, material, supplier, date, quantity, QC status and expiry or retest date. It adds the quantity used in batches, the balance and a standing: Available, Expiring soon, Expired / retest due, Quarantine, Rejected or Used up.
  • Products: One row per product (up to 20): code, name, unit, standard batch size and shelf life. It adds batches made, released and rejected, released quantity, dispatched and available.
  • Batches: One row per batch (up to 500): batch number, product, date, theoretical and actual yield, in-process check, QA decision and decision date. It adds yield %, a yield check against your limits, the expiry date from the shelf life, open deviations, material alerts, dispatched, available and an alert.
  • Material Use: One row per lot used in a batch (up to 1,500): batch, material, lot and quantity. It shows the lot's QC status, expiry and balance, and flags an unknown lot, a lot of another material, a lot in quarantine or rejected, a lot that expired before the batch was made, and a lot used more than was received.
  • Deviations: Date, batch, description, severity, owner and status, with days open and an Overdue flag after your target days.
  • Dispatch: Shipments by batch and customer. It flags a batch that is not released or a quantity above what the batch has left.
  • Settings: Plant name, as-of date, the month to summarise, your lower and upper yield limits, the expiry warning days and the deviation target days.

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

What makes it different

A batch log on its own records what happened. This one also checks it against the lots: the sample has 12 batches, 8 released and 1 rejected, with an average yield of 97.3%, and the sheet flags 2 material-use lines (one lot in quarantine, one that expired before manufacture), a release with an open deviation and a shipment from a batch that is on hold.

How do I keep a pharmaceutical batch record in Excel?

Keep one list for lots, one for batches and one for the lots each batch used. A lot's balance is what was received minus what the batches used, so it is never typed by hand, and a batch's materials are found by filtering Material Use by batch number. Add a QC status to each lot (Quarantine, Released or Rejected) and a QA decision to each batch (Pending, Released, Rejected or On hold) so that nothing is assumed to be usable or shippable.

A spreadsheet cannot enforce who may do what and it keeps no audit trail, so treat this as a working tracker next to your quality system, not a replacement for it. Your master batch record and SOPs decide what is released; check your local rules for the records you must keep.

How do I calculate batch yield and reconcile it?

Percent yield is the actual yield divided by the theoretical yield. Type both on Batches and the sheet gives the yield % and compares it with the lower and upper limits on Settings (95% and 105% in the sample, which are examples: use the limits in your own master record). A batch outside them is marked Below limit or Above limit so it gets investigated and, where needed, logged as a deviation.

The Summary averages the batches that have an actual yield: 97.3% in the sample. A fuller reconciliation also accounts for samples, rejects and losses, which you would add as extra columns.

How do I control raw material lots and expiry dates?

Every received lot gets a row with its QC status and its expiry or retest date. The standing column tells you which lots are Available, Expiring soon (within the warning days), Expired / retest due, in Quarantine or Rejected. Materials adds up the usable balance for each material and shows Below minimum when it falls under your stock level. If you also need a simple stock list with expiry dates for a pharmacy or shop, see the expiry date tracker.

How to use it

  1. On Settings type the plant name, the As-of date (today), the first day of the month to summarise, the lower and upper yield limits from your own master batch record, the expiry warning days and the deviation target days.
  2. On Materials list every raw material and packaging component with its type, unit and minimum usable stock. On Products list each product with its standard batch size and shelf life in months.
  3. On Lots add one row per received lot: lot number, material code, supplier, date, quantity, QC status (Quarantine, Released or Rejected) and the expiry or retest date.
  4. On Batches add one row per manufacturing batch: batch number, product, date, theoretical yield, actual yield, in-process check and the QA decision. On Material Use add one row per lot used in a batch.
  5. Watch the alert columns: Material Use flags a lot that is in quarantine, rejected, expired or over-used; Batches flags a release without a passing check or with an open deviation; Dispatch flags a batch that is not released.
  6. Record deviations on Deviations and shipments of released batches on Dispatch. Open Summary for lot standing, batches by product and month, average yield, open deviations and charts.

Before you start:

  • This is a record-keeping and reconciliation sheet. It holds no formulas, doses or official limits, and it is not a validated system: your master batch records, SOPs and quality system decide what is released. Check your local rules for the records you must keep.
  • Capacity: 100 materials, 300 lots, 20 products, 500 batches, 1,500 material-use lines, 300 deviations and 1,000 dispatch lines.
  • Lot used = the sum of Material Use rows for that lot. Balance = quantity received - used. Standing: Rejected, Quarantine, Used up, Expired / retest due (date before the As-of date), Expiring soon (within the warning days) or Available.
  • Yield % = actual yield / theoretical yield. It is Below limit or Above limit when it falls outside the limits on Settings. The limits are examples: set them from your own master batch record.
  • Batch expiry = manufacturing date + the product's shelf life in months. Available stock of a batch = actual yield - dispatched, and only for a batch whose QA decision is Released.
  • The sheet does not use TODAY(): type the As-of date on Settings. A deviation is Overdue when it is still Open after the target days.

Excel file (.xlsx) · 341 KB · 11 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 calculates requirements for the orders you type in yourself. In MESwiro, material requirements planning (MRP) breaks planned production orders down into their components and works out shortages against stock.

In this sheetIn MESwiro
You type in every order and every balance by hand.Material requirements planning (MRP) breaks planned production orders down into their components and calculates shortages against stock.
You ask suppliers for quotes by phone.It requests quotes from several suppliers and compares price, lead time and minimum order side by side.
Line scheduling in a sheet hides conflicts.It assigns work orders to lines and shifts by drag and drop, with a Gantt chart and a panel for unscheduled orders.
Efficiency and order cost are guesswork.It calculates OEE for each line automatically and shows the material, labor and machine cost of each order.

See MESwiro · Ask for a demo

Frequently asked questions

Is this pharmaceutical batch record template free?

Yes. Download it, use it in your plant and change it as you like.

Is it a validated GMP system?

No. It is a spreadsheet for keeping records and checking them against each other. It has no audit trail or electronic signatures, so check your local rules and your quality system before relying on it for regulated records.

Does it contain formulas, doses or official limits?

No. Product and material names are placeholders and the yield limits are examples to replace with the limits in your own master batch record.

Does it work in Google Sheets?

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

How many batches and lots can it hold?

300 lots, 500 batches, 1,500 material-use lines, 300 deviations and 1,000 dispatch lines, with 100 materials and 20 products. Clear the sample rows and keep adding below 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

All the templates in this group: Factory management sheets: production, cost and quality

More free templates for: Factories and production

Step-by-step guide: Pharma factory in Excel (free): batch records, materials and release

More free templates

All templates · Free tools