1Is Excel allowed in GMP?
Yes, under control. US drug CGMP allows computers and related systems “that will perform a function satisfactorily”, with input and output “of formulas or other records or data” checked for accuracy.1 EU GMP Annex 11 covers “all forms of computerised systems” used in GMP work and requires the application to be validated,2 and EMA’s Annex 11 questions and answers address spreadsheets directly.3
You validate the spreadsheet for its intended use, not Excel. FDA treats each CGMP workflow on a computer system as an intended use, validated to an extent “commensurate with the risk”.4
1.1How to validate a spreadsheet, step by step.
- List it and rate it. Record each spreadsheet in the inventory with its function, criticality (direct, indirect or none) and validation status; sheets that generate batch release data “would generally require greater control”.5
- Write down what it must do, from a documented risk assessment of GMP impact,2 including every calculation with its units and conversion factors, which the laboratory record must show anyway.6
- Build the controls in. Lock formulas, check the data type and range of each input, and restrict who can change the file.3,
5 - Verify every formula and macro. Formulas “should be verified for correctness”, and sheets with custom code such as Visual Basic for Applications are validated under Annex 11 section 4.3 Test parameter limits, data limits and error handling.2
- Record the evidence and release it. Keep the formula listing with the validation data,1 report deviations found during testing,2 then release the template under version control.3
- Control and check each use. Each use is a new, uniquely identified copy of the master, kept whatever its outcome.4,
5 A second person checks critical data entered by hand,2 reviews the record for accuracy,6 and verifies the calculation against the original data where possible.5 - Keep it validated. Changes go through change control, and periodic evaluation confirms the sheet remains in a valid state.2
2Spreadsheet validation protocol template.
Copy the fields into your protocol or report. Annex 11 lets you justify your protocols from your risk assessment, so one document can cover a simple sheet.2
| Field | What to record | Requirement |
|---|---|---|
| Identity | Name, ID, version, file location, owner | Annex 11 4.3;2 PI 041-1 9.35 |
| Intended use | The record, result or decision it supports | FDA question 34 |
| Criticality and risk | Direct, indirect or none; what a wrong result would do | PI 041-1 9.3;5 Annex 11 section 12 |
| GAMP category | If your procedure uses GAMP 5, the category assigned and why: see how GAMP treats spreadsheets | Site procedure; GAMP 5 Appendix S3, “End User Applications Including Spreadsheets”7 |
| Requirements | Inputs with units, each calculation and its source, outputs, limits, rounding | Annex 11 4.4;2 211.194(a)(5)6 |
| Formula listing | Each formula and macro, the cells it reads, the method it implements | 211.68(b);1 EMA question 33 |
| Input controls | Data type and range checks, required entries | EMA question 23 |
| Protection | Locked cells, protected sheets, folder permissions | EMA question 2;3 PI 041-1 9.35 |
| Template control | Blank master, version, controlled storage | EMA question 13 |
| Executed copies | A unique ID for each use; every run kept, aborted ones included; issued copies reconciled | FDA question 6;4 PI 041-1 8.45 |
| Test cases | Normal, both limits, rounding, invalid, missing and zero inputs, each with an expected result worked out independently | Annex 11 4.7;2 EMA questions 2 and 33 |
| Test record | Version tested, results, deviations, conclusion, who and when | Annex 11 4.2;2 FDA CSA V.A(6)8 |
| Approval | Protocol and expected results approved before testing; report approved before release | Annex 15 2.2, 2.7 and 2.8;9 draft Annex 11 9.7;10 FDA CSA Table 18 |
| Checks at each use | Second check of entered data; review of each result | Annex 11 section 6;2 211.194(a)(8)6 |
| Record relied on | The electronic file or a signed printout, decided in advance | FDA Part 11 guidance III.B11 |
| Backup | Where completed files are kept; restore checked | Annex 11 7.1 and 7.2;2 211.68(b)1 |
| Change and review | Change control; periodic evaluation, including upgrade history | Annex 11 sections 10 and 112 |
3Example: validating an assay calculation sheet.
This example is illustrative. The Quillmere QC laboratory uses spreadsheet QC-SS-014 to calculate the assay of Fendravir 300 mg tablets for batch release, against a specification of 95.0 to 105.0% of label claim. Its criticality is direct, because it generates batch release data.5 Its requirements come from the test method:
- Five standard injections; their relative standard deviation (RSD) must be no more than 2.0%.
- Each peak area must lie between 1,000,000 and 2,000,000, the method’s plausible range.
- Assay (%) = (mean sample area ÷ mean standard area) × (standard weight × purity ÷ 100 mL) × (1,000 mL ÷ sample weight) × (average tablet weight ÷ 300 mg) × 100.
- The result is rounded to one decimal place before it is compared with the specification, and reported with “meets” or “does not meet”.
The typical case uses a 30.00 mg standard of 99.6% purity with areas of 1,492,000, 1,496,000, 1,494,000, 1,490,000 and 1,498,000 (mean 1,494,000, RSD 0.21%), and a 500.0 mg sample from tablets weighing 500.0 mg on average, with areas of 1,498,000 and 1,502,000 (mean 1,500,000). By hand: (1,500,000 ÷ 1,494,000) × 0.2988 × 2 × 1.6667 × 100 = 100.0%. With these standards and weights the assay is the mean sample area ÷ 15,000, which sets the boundary inputs below.
| Case | Tests | Input | Expected | v1.0 | v1.1 |
|---|---|---|---|---|---|
| TC-01 | Typical result | As above | 100.0%, meets | Pass | Pass |
| TC-02 | Sample weight change | Sample 510.0 mg | 98.0% | Pass | Pass |
| TC-03 | Upper limit | Mean sample area 1,575,000 | 105.0%, meets | Pass | Pass |
| TC-04 | Just over upper | Mean sample area 1,576,500 | 105.1%, does not meet | Pass | Pass |
| TC-05 | Lower limit | Mean sample area 1,425,000 | 95.0%, meets | Pass | Pass |
| TC-06 | Just under lower | Mean sample area 1,423,500 | 94.9%, does not meet | Pass | Pass |
| TC-07 | Rounds to the limit | Mean sample area 1,575,600 | 105.04, reported 105.0%, meets | Pass | Pass |
| TC-08 | Rounds over the limit | Mean sample area 1,575,750 | 105.05, reported 105.1%, does not meet | Pass | Pass |
| TC-09 | Text typed in an area | “1,496,O00” for standard 2 | Entry refused | Fail | Pass |
| TC-10 | Missing area | Standard 2 blank, then text pasted in | No result | Fail | Pass |
| TC-11 | Zero sample area | Sample injection 2 entered as 0 | No result | Fail | Pass |
| TC-12 | Zero standard area | Standard 2 entered as 0 | No result | Pass | Pass |
| TC-13 | System suitability | Standard areas with RSD 2.56% | No result | Pass | Pass |
| TC-14 | Protection | Edit a formula; save over the template | Both refused | Pass | Pass |
On version 1.0, TC-09 and TC-10 reported 100.0% from the other four standards, and TC-11 a false failing 49.9%, because Excel’s AVERAGE ignores text and empty cells but includes zeros.12 The RSD check already caught the zero standard in TC-12 (RSD 55.9%). EMA expects text in a numeric field to be prevented or to raise an error, and encourages “boundary checks”;3 the draft Annex 11 asks for a plausibility check on critical data entered by hand.10 Version 1.1 adds data validation to the area cells and a check that withholds the result unless all seven areas are numbers in the method’s range, because data validation acts only on typed entries, not on copied or filled data.13 The deviation and change CC-26-112 join the validation file.2
QA approved the protocol and expected results on 9 October 2026. A QC analyst who had not built the sheet ran version 1.0 on 12 and 13 October and all 14 cases on version 1.1 on 19 October; QA approved the report on 21 October and released version 1.1 to the read-only templates folder. Each use opens from that master and is saved at once under a run number in the controlled results folder; every run is kept, aborted ones with the reason, and QA reconciles the run log monthly against the batches tested. FDA lists “electronic worksheets” among blank forms to control and reconcile, and counts data generated to satisfy a CGMP requirement as a CGMP record, so a trial calculation on real data is one too.4 A second analyst checks the entered weights and areas against the balance printout and chromatography data, and then the result.6,
4How much validation a spreadsheet needs.
| How the sheet is used | What is expected | Basis |
|---|---|---|
| No GMP use | Listed with criticality “none” | PI 041-1 9.35 |
| Records readings only | Vendor assessment, installation and configuration may be enough; input still checked | FDA CSA V.A(1);8 211.68(b)1 |
| Graphs controlled data | Not high process risk in FDA’s example, given other controls; exploratory testing recorded | FDA CSA V.A(6)8 |
| Formulas give a result | Every formula verified; input and output checked; program and validation data kept | EMA question 3;3 211.68(b)1 |
| Contains macros or VBA | Validation under Annex 11 section 4 “is required at least” | EMA question 33 |
5What FDA has cited.
Your firm failed to validate the Excel spreadsheet used to perform the assay calculation for your “(b)(4).” Your procedures lacked guidance on how to check and manually verify the calculation sheets. During the inspection, our investigator identified a calculation error within the spreadsheet. The incorrect formula for averaging the Internal Standard peak area was used.
Tismor Health and Wellness Pty Limited, warning letter 320-20-10 of 5 December 2019, under 21 CFR 211.160(b). The firm’s own review then found a transcription error in an assay result for a batch already released.14
Microbial worksheets reviewed were found to use unvalidated cell formulas resulting in erroneous data generation such as negative log reductions and percent reductions including (b)(4) percent and (b)(4) percent for Staphylococcus aureus and Pseudomonas aeruginosa species, respectively. These unvalidated calculations call into question the validity of the data generated from these spreadsheets.
Adamson Analytical Laboratories, Inc., warning letter of 17 August 2021, under 21 CFR 211.68(b). FDA noted it was a repeat of a violation cited in 2016.15
For example, your analysts had administrative rights on your chromatographic systems that allowed them to alter and delete data, files, and folders, including your spreadsheet used for assay calculations.
Unipack LLC, warning letter 320-26-32 of 19 December 2025, under 21 CFR 211.194(a).16
5.1What an inspector will ask you to show.
- The inventory entry, with the sheet’s criticality and validation status: PI 041-1 9.3.5
- The validation for the version on screen: requirements, formula listing and test record for that version: 211.68(b);1 EMA question 1.3
- Where the analyst got the template, and who can change the master: EMA question 1;3 PI 041-1 8.4.5
- Where the completed file went, with every run for the batch, aborted ones included: FDA question 6.4
- That the printout matches the file, and the second person’s review: Annex 11 8.1 and 8.2;2 211.194(a)(8).6
- Changes and periodic review since validation: Annex 11 sections 10 and 11.2
6Is Excel Part 11 compliant?
No product is compliant by itself: Part 11 places its controls, from validation to audit trails and authority checks, on the people who use a closed system.17 FDA intends to exercise enforcement discretion over Part 11’s validation and audit trail requirements, but the predicate rules still apply.11 See Part 11 compliant software.
Whether Part 11 applies depends on the record you rely on. If you rely on a printout that meets the predicate rules, Part 11 is generally not triggered; if you rely on the file, it is, and FDA may judge which by your actual practice. FDA recommends deciding in advance for each record and documenting it.11 Either way the calculation must be correct, so a printed sheet is still validated.1
FDA counts a spreadsheet whose formulas or entries a user can change as a dynamic record,4 so keep the completed file as well as any signed printout. PIC/S calls electronic data supplemented by a paper record a hybrid system, discourages its use and says such systems “should be replaced whenever possible”.5 In the EU, records supporting batch release should allow printouts showing whether data has changed since it was first entered.2
7Edge cases that catch teams out.
- No audit trail. Annex 11 asks for an audit trail to be considered on the basis of a risk assessment, with the reason documented for each change or deletion of GMP-relevant data.2 PIC/S accepts that “some very simple systems lack appropriate audit trails”, but expects alternative arrangements such as administrative procedures and secondary checks.5
- Excel updates. Record the Excel build with each test run, and assess updates for sheets that rely on functions they may change.
8What is changing, 2025 to 2026.
- Annex 11. The January 2011 text is still in force.18 The July 2025 draft adds the plausibility check used in the example, names calculations and boundary and negative testing among the focus of testing, and expects any change to an electronic record signed in wet ink on paper to invalidate the signature, for example by printing the record’s hash code on the signature page.10 See the Annex 11 revision.
- FDA CSA. The February 2026 guidance includes both spreadsheet examples used above.8
9How it runs in Seal.
In Seal a calculation is configured into the step that uses it, so its result stays with the batch record, and selected tests run on each change prepared for review. The comparison with paper and spreadsheets sets the two side by side, including a hold-time calculation verified at 44, 45 and 46 minutes and with a start time missing, and the validation guide describes how each change is specified, tested and approved.
Where a workbook stays in use, Neil for Microsoft Excel reads its cells and formulas and returns each formula with the cells it reads, the formulas to check and why, and questions for the sheet’s owner. The connection is read-only until you accept edits, and Neil cannot save the file. The same page describes importing workbooks in an agreed fixed layout into Seal records through Seal’s API or Scripts, and rejecting the rest.
AQuestions and answers
Do we have to validate every spreadsheet?
Only the ones used for GMP work, and not all to the same depth. List every spreadsheet in use, record what each is relied on for, and validate in proportion: a sheet that records readings needs much less than one whose formulas produce a release result, and a sheet with macros is validated under Annex 11 section 4. A sheet with no GMP use is listed as such.
Is locking the cells enough?
No. Protecting formulas from being overwritten is one control. The formulas still have to be verified, inputs checked for the wrong data type and out-of-range values, the file protected by folder permissions, templates kept under version control and changes made through change control.
How often should a validated spreadsheet be reviewed?
As often as its criticality warrants. EMA says the period for re-evaluating and revalidating a computerized system should be based on its criticality, so a sheet that produces release results is reviewed more often than one that records readings; set the interval for each risk tier in your procedure. The review covers the sheet’s current functions, deviations, changes, upgrade history, performance, reliability and security, and confirms that the copy analysts open is still the released, validated version.
Can the person who built a spreadsheet also test it?
They can take part, but they shouldn’t be the only check on their own formulas. FDA’s general software validation guidance for medical devices calls independence of review a basic quality assurance principle and self-validation extremely difficult; where an outside tester isn’t practical, it suggests someone who wasn’t involved in the build but knows enough to evaluate it. For a sheet that produces release results, have that person work out the expected results by hand and run the test cases, with QA approving the record.
What happens when someone changes a validated spreadsheet?
It goes through change control. Assess what the change affects, re-verify the changed formulas and anything that depends on them, rerun the relevant test cases and release the new version before it is used. The change record and any deviations join the validation documentation, and the old version is withdrawn.
References18 sources
References
- 121 CFR 211.68, Automatic, mechanical, and electronic equipment, eCFR. https:/
/ www. ecfr. gov/ current/ title- 21/ section- 211. 68 (read 26 November 2026) - 2EudraLex Volume 4, Annex 11: Computerised Systems, European Commission, revision 1, in operation from 30 June 2011, principle and sections 1, 4.1 to 4.4, 4.7 and 6 to 11. https:/
/ health. ec. europa. eu/ system/ files/ 2016- 11/ annex11_ 01- 2011_ en_ 0. pdf (read 26 November 2026) - 3Guidance on good manufacturing practice and good distribution practice: questions and answers, EU GMP guide annexes, Annex 11: Computerised systems, questions 1 to 3, EMA, February 2011. https:/
/ www. ema. europa. eu/ en/ human- regulatory- overview/ research- development/ compliance- research- development/ good- manufacturing- practice/ guidance- good- manufacturing- practice- good- distribution- practice- questions- answers (read 26 November 2026) - 4Data Integrity and Compliance With Drug CGMP: Questions and Answers, Guidance for Industry, FDA, December 2018, questions 1.d, 3, 6 and 12. https:/
/ www. fda. gov/ media/ 119267/ download (read 26 November 2026) - 5PI 041-1, Good Practices for Data Management and Integrity in Regulated GMP/GDP Environments, PIC/S, 1 July 2021, sections 8.4, 8.8, 9.3, 9.6 and 9.10, and glossary. https:/
/ picscheme. org/ docview/ 4234 (read 26 November 2026) - 621 CFR 211.194(a)(5) and (a)(8), Laboratory records, eCFR. https:/
/ www. ecfr. gov/ current/ title- 21/ section- 211. 194 (read 26 November 2026) - 7ISPE GAMP 5 Guide: A Risk-Based Approach to Compliant GxP Computerized Systems, Second Edition, ISPE, July 2022, table of contents, Appendix S3. https:/
/ ispe. org/ sites/ default/ files/ publications/ guidance- documents/ 2022- TOC/ ISPE- GAMP5- Ed2_ TOC. pdf (read 26 November 2026) - 8Computer Software Assurance for Production and Quality Management System Software, Guidance for Industry and FDA Staff, FDA, 3 February 2026, sections III, V.A(1) and V.A(6), and Table 1. https:/
/ www. fda. gov/ media/ 188844/ download (read 26 November 2026) - 9EudraLex Volume 4, Annex 15: Qualification and Validation, European Commission, 30 March 2015, sections 2.2, 2.7 and 2.8. https:/
/ health. ec. europa. eu/ system/ files/ 2016- 11/ 2015- 10_ annex15_ 0. pdf (read 26 November 2026) - 10Annex 11: Computerised Systems, draft for consultation, European Commission and PIC/S, July 2025, sections 9.6, 9.7, 10.1 and 13.9. https:/
/ picscheme. org/ docview/ 9714 (read 26 November 2026) - 11Guidance for Industry: Part 11, Electronic Records; Electronic Signatures, Scope and Application, FDA, August 2003, sections III.B, III.C.1 and III.C.2. https:/
/ www. fda. gov/ media/ 75414/ download (read 26 November 2026) - 12AVERAGE function, Microsoft Support. https:/
/ support. microsoft. com/ en- us/ office/ average- function- 047bac88- d466- 426c- a32b- 8f33eb960cf6 (read 26 November 2026) - 13More on data validation, Microsoft Support. https:/
/ support. microsoft. com/ en- us/ office/ more- on- data- validation- f38dee73- 9900- 4ca6- 9301- 8a5f6e1f0c4c (read 26 November 2026) - 14Warning Letter 320-20-10, Tismor Health and Wellness Pty Limited, FDA, 5 December 2019. https:/
/ www. fda. gov/ inspections- compliance- enforcement- and- criminal- investigations/ warning- letters/ tismor- health- and- wellness- pty- limited- 588104- 12052019 (read 26 November 2026) - 15Warning Letter, Adamson Analytical Laboratories, Inc., MARCS-CMS 614644, FDA, 17 August 2021. https:/
/ www. fda. gov/ inspections- compliance- enforcement- and- criminal- investigations/ warning- letters/ adamson- analytical- laboratories- inc- 614644- 08172021 (read 26 November 2026) - 16Warning Letter 320-26-32, Unipack LLC, FDA, 19 December 2025. https:/
/ www. fda. gov/ inspections- compliance- enforcement- and- criminal- investigations/ warning- letters/ unipack- llc- 716621- 12192025 (read 26 November 2026) - 1721 CFR 11.10, Controls for closed systems, eCFR. https:/
/ www. ecfr. gov/ current/ title- 21/ chapter- I/ subchapter- A/ part- 11/ subpart- B/ section- 11. 10 (read 26 November 2026) - 18EudraLex Volume 4, Good Manufacturing Practice guidelines, European Commission. https:/
/ health. ec. europa. eu/ medicinal- products/ eudralex/ eudralex- volume- 4_ en (read 26 November 2026)
