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
| As of / month shown | 46342 |
|---|---|
| Materials listed | 10 |
| Materials below minimum usable stock | 3 |
| Lots in quarantine | 2 |
| Lots expired or past retest with stock | 1 |
| Lots expiring soon | 1 |
| Lots rejected | 1 |
| Batches started this month | 5 |
| Batches awaiting a QA decision (Pending or On hold) | 3 |
| Batches released | 8 |
| Batches rejected | 1 |
| Release rate (released / decided) | 88.9% |
| Average yield of batches with an actual yield | 97.3% |
| Batches with yield outside your limits | 2 |
| Open deviations | 3 |
| Deviations overdue | 1 |
| Material-use lines with an alert | 2 |
| Batches with an alert | 3 |
| Dispatch lines with an alert | 1 |
| 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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 sheet | In 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. |
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
- Production Tracking Spreadsheet for Excel
- Equipment Inspection Log Template for Excel
- Coffee Roasting Log and Costing Spreadsheet for Excel
- Bakery and Biscuit Production Tracker for Excel
- Detergent Production Batch Tracker for Excel
- Detergent Ingredients List and Functions (Excel)
- Electronics BOM and Production Tracker for Excel
- Food Production Batch Tracker for Excel: Recipes, Lots, Yield and Expiry
- Industrial Waste Tracking Log for Excel
- Paper Mill Production Tracker: Waste, Cost per Roll and Margin
- Water Bottling Plant Tracker: Cost per Bottle and Jugs
- Work Order Tracker Template for Excel
- Pharmacy Inventory Management Excel Template (Stock, Expiry, Sales, Suppliers)
- School Management Spreadsheet for Excel (Students, Fees, Attendance)
- Science Formulas Cheat Sheet in Excel (Physics, Chemistry, Biology)
- Volume and Surface Area Formulas Cheat Sheet (Excel, with Calculators)
- Stationery Shop Inventory Tracker for Excel (Stock, Sales, Copy and Print)
- Rideshare Driver Income Tracker Spreadsheet (Uber, Lyft)
- Private Tutor Group Class Tracker: Attendance and Fees
- Textile Production Tracker: Cutting to Packing by Order