Rounding Results for Comparison with Specification - Pharmaceutical Technology

Latest Issue

Latest Issue
PharmTech Europe

Rounding Results for Comparison with Specification
The mysteries of rounding are exposed.

Pharmaceutical Technology
Volume 37, Issue 4, pp. 122-124

Rounding using Microsoft Excel

Table I: results from Excel 2010 with four examples.
Many laboratories use Microsoft Excel for calculations, so it is interesting to see how it performs with the four examples. Excel has three rounding functions: round, round down, and round up. In each function, it is necessary to specify the number to be rounded and the number of decimal places required. The results from Excel 2010 for the examples to 2 decimal places are shown in Table I. The incorrect rounded values are highlighted in yellow.

The round function works well with the exception of example 4. However, Excel can be easily programmed to perform a unbiased rounding decision tree automatically. Suppose the values to be rounded are put starting in cell C9 and the number of decimal places to be rounded to in cell E9.

Excel's trunc function can be used to extract the values of X, Y and Z; using the formulae:

For X = TRUNC($C9,$E9)*10^$E9-TRUNC($C9,$E9-1)*10^$E9

For Y = TRUNC($C9,$E9+1)*10^($E9+1)-TRUNC($C9,$E9)*10^($E9+1)

For Z = $C9-TRUNC($C9,$E9+1).

These values of X, Y and Z are stored in the relevant rows (9 to 12) of columns G, H, and I. The rounding calculation formula (a nested “if” formula) is now placed in cell J9 for the first example and copied down for rows 10, 11, and 12 for the others:



Table II: Results of the unbiased rounding formula using Excel.
The Excel results of the unbiased rounding formula are shown in Table II and agree with the manual evaluation for the four examples.

The mysteries of rounding are exposed here and strict unbiased rounding can be applied.


1. USP 35, General Notices 7.20, “Rounding Rules” (US Pharmacopeial Convention, Rockville, MD, 2012).

2. C. Eisenhart, M.W. Hastay, W.A. Wallis, Selected Techniques of Statistical Analysis, (McGraw-Hill, New York, 1947).


blog comments powered by Disqus
LCGC E-mail Newsletters

Subscribe: Click to learn more about the newsletter
| Weekly
| Monthly
| Weekly

FDASIA was signed into law two years ago. Where has the most progress been made in implementation?
Reducing drug shortages
Breakthrough designations
Protecting the supply chain
Expedited reviews of drug submissions
More stakeholder involvement
Reducing drug shortages
Breakthrough designations
Protecting the supply chain
Expedited reviews of drug submissions
More stakeholder involvement
View Results
Eric Langerr Outsourcing Outlook Eric LangerRelationship-building at Top of Mind for Clients
Cynthia Challener, PhD Ingredients Insider Cynthia ChallenerRisk Reduction Top Driver for Biopharmaceutical Raw Material Development
Jill Wechsler Regulatory Watch Jill Wechsler Changes and Challenges for Generic Drugs
Faiz Kermaini Industry Insider Faiz KermainiNo Signs of a Slowdown in Mergers
Ebola Outbreak Raises Ethical Issues
Better Comms Means a Fitter Future for Pharma, Part 2: Realizing the Benefits of Unified Communications
Better Comms Means a Fitter Future for Pharma, Part 1: Challenges and Changes
Sandoz Wins Biosimilar Filing Race
NIH Translational Research Partnership Yields Promising Therapy
Source: Pharmaceutical Technology,
Click here