Professional Documents
Culture Documents
User
Prototyping Design/Build Live Operation
Acceptance
URS OQ/PQ
Single
Spreadsheet
Specification FS IQ
Document
Single
Spreadsheet
Qualification
Test Functional Document
Installation Testing
The validation process places significant focus upon distinctions as it helps in understanding how to test
documents that are generic in nature, allowing rapid spreadsheets, and also where to focus your effort when
deployment and minimising document preparation time. This is looking for potential errors.
vital when applied to a large portfolio of spreadsheets. For the vast majority of spreadsheets the functional testing
can be executed outside of the final operating environment.
Spreadsheet Qualification Protocol Only when macros are used, or links to other spreadsheets or
The qualification document is designed to: systems are involved do you need to worry about testing in the
• be generic where possible to simplify generation final environment.
• be versatile and flexible both in format and scope for The following subsections cover the functional testing and
spreadsheets of various complexity (simple through to are divided into separate test scripts.
complex macros)
• correlate and document all 21 CFR Part 11[8] testing to Environment Recording
remove the need for a separate document As functional testing may be performed outside of the final
• be adaptable to meet local/company requirements or other environment the details of the test environment and
regulatory needs spreadsheet file being tested are recorded.
The core document consists of the following sections: We believe it is usually preferable to validate a spreadsheet
• Main Body template (.xlt) file rather than a workbook (.xls) file. Templates
• Appendix A – Spreadsheet Functional Testing can be validated, secured and used to create multiple
• Appendix B – Spreadsheet Installation Qualification ‘validated’ spreadsheets.
• Appendix C – Operational/Performance Qualification It is also essential to have reliable file naming, storage, and
• Appendices D & E– Additional Data Sheets (blank forms for change control procedures, particularly when testing is taking
completion) place outside of the final environment. We recommend the use
• Appendix F – Traceability Matrix of a secure file repository or write-once optical storage medium
• Appendix G – Qualification Report to minimise the risk of file changes between functional testing
The design uses appendices for the ‘traditional’ deliverables, and installation.
and allows the flexibility to add or remove sections if required. Optional sections also record any additional controls (e.g. 3rd
Further details on the document sections are provided below. party add-ins) where appropriate.
Calc. Cell Name No. Comments The Overall Average calculation in cell F8 is a different
Ref. Description Cells calculation, and the use of the test data in Figure 5 would be
A.1.1 Average 6 Provides an average of up to 4 readings for each inappropriate. Therefore, the tester would use their initiative
data set and verify this calculation using different data such as that
A.1.2 Overall Average 1 Provide an overall average of all Average values shown in Figure 7. This data ensures the calculation is correctly
challenged.
Figure 3: Example User Requirements Table.
The philosophy here is to spend your time testing º Logical checks, conditional formatting, data validation
rather than spending your time writing test scripts. etc. can often be verified with a string of screenshots
The approach is extremely adaptable to a wide range of which get annotated with their purpose once printed
scenarios and is heavily dependent upon the competence • Throughout the testing the following important rules
and experience of the tester, therefore controls need to be in should be followed:
place to minimise the risks introduced by such flexibility. The º Justify and document any assumptions made during
following points are crucial to ensure the accuracy and the testing; use risk based judgements whenever
integrity of your generated results and conclusions. possible to make it easy to explain your logic to an
• Testers must be trained and familiar with both Excel, validation auditor
requirements, and the manual calculation methods.
º Be flexible, yet consistent throughout the testing
• An SOP on the testing process is recommended which
includes examples recommended to check different Undertaking the ‘manual testing’ will be the most time
spreadsheet scenarios. consuming testing activity and the most technically
• Pre-specified data should be used where possible when demanding. The generic nature of the approach however
performing calculations, we recommend attaching ensures minimal document preparation time and focuses
representative test data to the test script to allow the the majority of the qualification activity on the task of
tester to select typical data. testing.
• The tester should fully understand the spreadsheet and
have the initiative to challenge and stress test it. This is Data Generation/Formatting
something that normally does not occur when testers are Once the detailed spreadsheet functionality has been
instructed to follow a line-by-line test procedure. In the verified, a check is performed of the fully populated
traditional approach testers follow the prewritten steps spreadsheet. This checks data formats and general
and see what the protocol tells them to see. We feel that spreadsheet layout and additionally provides a ‘before
the approach defined here frees up a lot of additional installation’ snapshot. This snapshot is used later to verify
testing time, and that the tester can invest this time in that the spreadsheet has not been modified during its move
actually challenging the system. into its final operating environment.
• Be aware of the multiple possibilities to further streamline
the generation of results such as using a single screenshot
Macro testing
to test multiple calculations, or to copy and paste data
from one sheet to another. This section is only applicable if macros are present in the
• There are many situations where clever thinking or spreadsheet. Macro functionality is defined as GAMP
experience is required to deal with an individual category 5 (custom programming), and as such requires
spreadsheet or calculations. All situations can be dealt extensive verification. In this case, generic test scripts are not
with as shown by the examples below: appropriate and a traditional ‘step-by-step’ approach is
º Data rounding issues may arise depending on the test necessary for the macro components.
data used, be prepared to alter the number formats to Macro testing is performed following a ‘black box’
verify calculations approach, where inputs are checked against outputs. For this
º To ‘manually’ verify complex calculations use a separate type of testing it is usually expected to perform testing of all
instance of Excel or a different statistical package; the possible routes through the macro, and although this may
formulae should not be copied, but redeveloped from sound daunting, most spreadsheet macros are small and
first principals straightforward to test.
Dave Howard is a Validation Consultant at ABB Engineering Services, Dave Harrison is a Principal Consultant at ABB Engineering Services
specialising in End User Computing applications. where he is the Product Manager for spreadsheet validation solutions.
References:
1 David A Howard & David Harrison, ABB Engineering Services “A Pragmatic 4 DaCS™, Data Compliance System, Compassoft Inc.
Approach to the Validation of Excel Spreadsheets – Overview” Pharma IT http://www.spreadsheetvalidation.com/solutions/dacsproduct.htm
Journal, Vol. 1 No. 2 April 2007. 5 Enterprise Spreadsheet Management Software, ClusterSeven Inc.
2
David Harrison & David A Howard, ABB Engineering Services “A Pragmatic http://www.clusterseven.com.
Approach to the Specification of Excel Spreadsheets” Pharma IT Journal, Vol. 6 Exchecker™, Compassoft Inc, http://www.compassoft.com/exchecker.htm.