Skip to main content

Can you use Excel in GMP, and how do you validate a spreadsheet?

Yes. A spreadsheet used in GMP is a computerized system, validated for its intended use to a depth set by its risk. A sheet that only records readings needs little. One whose formulas produce a release result needs every formula verified against an independent calculation, inputs checked for type and range, cells and files protected, templates under version control and each result reviewed by a second person. Macros need validation. No spreadsheet product is Part 11 compliant by itself.Checked against its sources on 26 November 2026. How these answers are made

Illustration of a seal beside a laptop showing a data table and an evidence binder linked by a red thread.

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.

  1. 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
  2. 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
  3. Build the controls in. Lock formulas, check the data type and range of each input, and restrict who can change the file.3,5
  4. 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
  5. 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
  6. 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
  7. 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

Table 1. FDA’s CSA guidance covers production and quality system software for medical devices;8 its record format is used here as a model.
FieldWhat to recordRequirement
IdentityName, ID, version, file location, ownerAnnex 11 4.3;2 PI 041-⁠1 9.35
Intended useThe record, result or decision it supportsFDA question 34
Criticality and riskDirect, indirect or none; what a wrong result would doPI 041-⁠1 9.3;5 Annex 11 section 12
GAMP categoryIf your procedure uses GAMP 5, the category assigned and why: see how GAMP treats spreadsheetsSite procedure; GAMP 5 Appendix S3, “End User Applications Including Spreadsheets”7
RequirementsInputs with units, each calculation and its source, outputs, limits, roundingAnnex 11 4.4;2 211.194(a)(5)6
Formula listingEach formula and macro, the cells it reads, the method it implements211.68(b);1 EMA question 33
Input controlsData type and range checks, required entriesEMA question 23
ProtectionLocked cells, protected sheets, folder permissionsEMA question 2;3 PI 041-⁠1 9.35
Template controlBlank master, version, controlled storageEMA question 13
Executed copiesA unique ID for each use; every run kept, aborted ones included; issued copies reconciledFDA question 6;4 PI 041-⁠1 8.45
Test casesNormal, both limits, rounding, invalid, missing and zero inputs, each with an expected result worked out independentlyAnnex 11 4.7;2 EMA questions 2 and 33
Test recordVersion tested, results, deviations, conclusion, who and whenAnnex 11 4.2;2 FDA CSA V.A(6)8
ApprovalProtocol and expected results approved before testing; report approved before releaseAnnex 15 2.2, 2.7 and 2.8;9 draft Annex 11 9.7;10 FDA CSA Table 18
Checks at each useSecond check of entered data; review of each resultAnnex 11 section 6;2 211.194(a)(8)6
Record relied onThe electronic file or a signed printout, decided in advanceFDA Part 11 guidance III.B11
BackupWhere completed files are kept; restore checkedAnnex 11 7.1 and 7.2;2 211.68(b)1
Change and reviewChange control; periodic evaluation, including upgrade historyAnnex 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.

Table 2. Expected values were calculated by hand before testing. In TC-⁠09 the analyst types a letter O for a zero. TC-⁠07 fails a sheet that compares the unrounded result; TC-⁠08 fails one that truncates instead of rounding. TC-⁠13 used standard areas of 1,440,000, 1,494,000, 1,494,000, 1,494,000 and 1,548,000.
CaseTestsInputExpectedv1.0v1.1
TC-⁠01Typical resultAs above100.0%, meetsPassPass
TC-⁠02Sample weight changeSample 510.0 mg98.0%PassPass
TC-⁠03Upper limitMean sample area 1,575,000105.0%, meetsPassPass
TC-⁠04Just over upperMean sample area 1,576,500105.1%, does not meetPassPass
TC-⁠05Lower limitMean sample area 1,425,00095.0%, meetsPassPass
TC-⁠06Just under lowerMean sample area 1,423,50094.9%, does not meetPassPass
TC-⁠07Rounds to the limitMean sample area 1,575,600105.04, reported 105.0%, meetsPassPass
TC-⁠08Rounds over the limitMean sample area 1,575,750105.05, reported 105.1%, does not meetPassPass
TC-⁠09Text typed in an area“1,496,O00” for standard 2Entry refusedFailPass
TC-⁠10Missing areaStandard 2 blank, then text pasted inNo resultFailPass
TC-⁠11Zero sample areaSample injection 2 entered as 0No resultFailPass
TC-⁠12Zero standard areaStandard 2 entered as 0No resultPassPass
TC-⁠13System suitabilityStandard areas with RSD 2.56%No resultPassPass
TC-⁠14ProtectionEdit a formula; save over the templateBoth refusedPassPass

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,5

4How much validation a spreadsheet needs.

Table 3. The CSA rows come from FDA’s device guidance;8 drug CGMP and EU GMP also scale validation to risk.4,2
How the sheet is usedWhat is expectedBasis
No GMP useListed with criticality “none”PI 041-⁠1 9.35
Records readings onlyVendor assessment, installation and configuration may be enough; input still checkedFDA CSA V.A(1);8 211.68(b)1
Graphs controlled dataNot high process risk in FDA’s example, given other controls; exploratory testing recordedFDA CSA V.A(6)8
Formulas give a resultEvery formula verified; input and output checked; program and validation data keptEMA question 3;3 211.68(b)1
Contains macros or VBAValidation 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.

  1. The inventory entry, with the sheet’s criticality and validation status: PI 041-⁠1 9.3.5
  2. The validation for the version on screen: requirements, formula listing and test record for that version: 211.68(b);1 EMA question 1.3
  3. Where the analyst got the template, and who can change the master: EMA question 1;3 PI 041-⁠1 8.4.5
  4. Where the completed file went, with every run for the batch, aborted ones included: FDA question 6.4
  5. 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
  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

  1. 121 CFR 211.68, Automatic, mechanical, and electronic equipment, eCFR. https://www.ecfr.gov/current/title-21/section-211.68 (read 26 November 2026)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
  11. 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)
  12. 12AVERAGE function, Microsoft Support. https://support.microsoft.com/en-us/office/average-function-047bac88-d466-426c-a32b-8f33eb960cf6 (read 26 November 2026)
  13. 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)
  14. 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)
  15. 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)
  16. 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)
  17. 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)
  18. 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)

See your process in Seal.

Bring a procedure or a recurring problem. See how your team configures it with Neil and improves the next run.