Analyse-it logo
Analyse-it logo Analyse-it logo
  • Products

    Editions

    Standard Edition Standard US$ 155/yr The statistics behind most research. Included in every edition.
    • ANOVA
    • Contingency tables
    • Correlation
    • Descriptive statistics
    • Hypothesis tests
    • Logistic regression
    • Principal component analysis
    • Regression
    Quality Control Improvement Quality Control US$ 290/yr For monitoring a process over time and detecting when it changes.
    • Control charts
    • Pareto analysis
    • Process capability
    MEdical Edition Medical US$ 340/yr For biomedical and clinical research.
    • Bland-Altman agreement
    • Diagnostic accuracy
    • Reference intervals
    • Survival analysis
    Method Validation Edition Method Validation US$ 475/yr For establishing and verifying how a measurement method performs.
    • Bland-Altman agreement
    • Deming regression
    • Detection capability
    • Diagnostic performance
    • Linearity
    • Measurement system analysis
    • Method comparison
    • Passing-Bablok regression
    • Precision
    • Reference intervals
    Ultimate Icon Ultimate US$ 575/yr For laboratories that do method validation and quality control.

    All features from every edition in a single licence.

    Solutions

    • IVD manufacturers
    • Clinical laboratories
    • Analytical & testing laboratories
    • Biomedical & clinical research
    • Manufacturing & process quality

    Case studies

    • EOC
    • National reference laboratory

    Validation and accuracy

    • How we develop and validate Analyse-it
    • NIST StRD numerical accuracy benchmarks
    Upgrade or renew Resellers
    Compare editions
  • Pricing
  • Learn

    Guides

    Start here

    • I am bringing a method into service
    • I do not know whether I am validating or verifying
    • I have data and do not know which test to use
    • I have the results and have to write them up
    • I need to put a process under control

    Method validation

    • Getting started
    • Precision & verification
    • Detection & measuring range
    • Method comparison & agreement
    • Total error & performance goals
    • Regulation & accreditation
    • Reference intervals

    Diagnostic & clinical

    • Diagnostic performance
    • Survival analysis

    Quality control

    • Quality control & SPC

    General statistics

    • Statistics fundamentals
    • ANOVA & multiple comparisons
    • Regression & multivariate
    Blog
    All 70 guides
  • Support

    Support

    Example analyses Fifty worked analyses, each with the data behind it.
    Download the latest version Licensed users — enter your product key to get version 6.21.2. Release history, and older versions →
    Analyse-it not starting? Run the trouble-shooter. It tries the common fixes.
    Knowledge base Licensing, the free trial, installation and validation, answered.
    Contact support Your message goes to the people who build Analyse-it.
    Consultancy & training Courses and consultancy from independent specialists.

    Statistical reference guide

    • Distribution
    • Compare groups
    • Compare pairs
    • Contingency tables
    • Correlation and association
    • Principal component analysis (PCA)
    • Factor analysis (FA)
    • Item reliability
    • Fit model
    • Method comparison
    • Measurement systems analysis (MSA)
    • Reference interval
    • Diagnostic performance
    • Survival & reliability
    • Control charts
    • Process capability
    • Pareto analysis

    Getting started with Analyse-it

    • Tutorials

    User guide

    • Preparing data for analysis
    • Creating an analysis
    • Recalculating an analysis

    Installers & administrator’s guide

    • System requirements
    • Installing the software
    • Deploying to many computers, or to every user
    • Activating a license
    • Moving a license to another computer
    • Using a concurrent-user license
    • Updating the software
    • Troubleshooting

    Validation and accuracy

    • How we develop and validate Analyse-it
    • NIST StRD numerical accuracy benchmarks
    Complete guide (PDF)
    All support & documentation
  • About us
Download trial

27-Nov-2008 Spot the difference: Numbers stored as text

Excel Using Analyse-it

In clearly titling this blog post, we’ve probably already revealed the answer, but... Can you spot the difference between the two rows of values in the Excel spreadsheet shown below?

Compare Numbers

Sorry, it’s a trick question, because (visually) there is no difference. The difference is how the values are stored by Microsoft Excel. The value 57 in the cell on second row is actually stored as a text string, not a number.

When does Excel store numbers as text?

When you type a value into a cell, Excel looks at what you’ve typed and decides whether it’s a valid number. If it is, the value is stored as a number, and if not it’s stored as text (a string of characters).

Considering this, how is it possible for Excel to store a value that looks like a number, as text? There are a few ways. Most common is when you copy-paste data from another application, and the application providing the data fools Excel into believing the values should be stored as text. Similarly, if you import data from a database field that contained numbers stored as text, the numbers will be imported as text. Finally, you can force Excel to store a number as text by prefixing it with an apostrophe (‘).

The side-effects of numbers stored as text

So what difference does it make? Venturing into computer science briefly, computers represent and store numbers and text values very differently – numbers are stored in a compact binary representation, and text strings are stored as a string of individual characters. The problem is that mathematical operators and functions can only be applied to values stored as numbers. Text strings, even those that look like numbers, cannot be operated on mathematically.

If you use Excel’s SUM function on the two rows, you can see the problem:

 Compare Numbers SUM

The SUM of the second row doesn’t match the first, because SUM works only on numeric values. The cell containing the text string 57 on the second row is ignored by SUM.

If you weren’t aware of this issue before, you might be surprised. Regardless of how Excel stores a value, if it looks like a number you might expect SUM and other worksheet functions to treat it as such!? Because Excel doesn't, this can lead to very subtle and difficult to spot errors.

Microsoft’s attempt to mitigate the problem

Microsoft recognises this problem and have tried to mitigate it since Excel 2002. Excel 2002, 2003 and 2007 now show a green triangular indicator in the top-left of any cell that contains a number stored as text. If you click the cell to activate it, a small pop-up menu appears so you can convert the cell content to a number. See below:

Excel's convert to number popup

For more information, see Convert numbers stored as text to numbers.

Analyse-it’s solution to the problem

We identified the problem shortly after releasing Analyse-it in 1997. In all versions of Analyse-it since, when Analyse-it reads your data from the Excel worksheet it treats any numbers stored as text as numbers, so they are included in the analysis.

We feel this is a better approach than Excel’s current solution, but the different approaches can lead to confusion. Recently a customer was validating Analyse-it and was surprised to find the Excel function CORREL gave a different answer to that shown by Analyse-it’s Pearson correlation. You can probably guess why. Some numbers on his worksheet were actually stored as text, and just like Excel’s SUM function, the CORREL function ignored the text values. That meant the correlation coefficient was wrong, and didn't match Analyse-it. Once we converted the numbers stored as text to actual numbers, Excel's CORREL function calculated the correlation coefficient properly. It then matched Analyse-it.

Previous post
Analyse-it speeds Method Validation at National Laboratory
Next post
Price change: VAT reduced to 15%

Comments

Nice explanation.

Quite usefull
study abroad
Friday, 27 February, 2009 5:32
If you need a quick and dirty method for forcing a numeric value in a formula on the fly, a great way to do it is to just add zero to it. For instance:

=SUM(0+A1,0+A13,0+A25,0+A37,0+A49)
or
=IF(B17="","",0+B17)
or simply
=0+MIN(A2:A21)

You can do something similar to force numbers to be text in a formula by concatenating a "" on to it:
=""&B4
Phillip
Wednesday, 1 February, 2012 0:57

Comments are now closed.

Tags

  • All (65)
  • Business (10) 
  • Case studies (2) 
  • Excel (6) 
  • In development (16) 
  • Method validation (19) 
  • Plots (2) 
  • Press releases (1) 
  • Publications (1) 
  • Releases (35) 
  • Statistics (17) 
  • Using Analyse-it (31) 

Latest posts

  • A New Year. A New Edition.
  • Analyse-it v6.10: Survival Analysis and other improvements
  • Analyse-it v5.90: Support for the updated CLSI EP6-Ed2 protocol and inverse predictions
  • Analyse-it 5.50 to 5.65: Recent improvements
  • COVID-19: Calculating the detection limit for a SARS-CoV-2 RT-PCR assay using Analyse-it
  • COVID-19: Calculating PPA/NPA agreement measures using Analyse-it
  • Diagnostic accuracy (sensitivity/specificity) versus agreement (PPA/NPA) statistics
  • COVID-19: Establishing the diagnostic accuracy (sensitivity/specificity) of a test using Analyse-it
  • Why the diagnostic test 'accuracy' statistic is useless
  • Sensitivity/Specificity and The Importance of Predictive Values for a COVID-19 test

Most popular posts

  • Announcing the Analyse-it Quality Control & Improvement Edition
  • Analyse-it 4.0 released: Support for CLSI guidelines, and Measurement Systems Analysis
  • Analyse-it 3.80 released: Principal Component Analysis (PCA)
  • Recent improvements in Analyse-it 3.76 and our first video tutorial!
  • Our software development and validation process
  • The numerical accuracy of Analyse-it against the NIST StRD
  • Quantiles, Percentiles: Why so many ways to calculate them?
  • Handbook of Parametric & Non-parametric Statistical procedures
  • A sombre note: Professor Rick Jones
Products
  • All editions
  • Standard Edition
  • Medical Edition
  • Quality Control & Improvement Edition
  • Method Validation Edition
  • Ultimate Edition
  • Compare Editions
  • Pricing
Solutions
  • IVD manufacturers
  • Clinical laboratories
  • Analytical & testing laboratories
  • Manufacturing & process quality
  • Biomedical & clinical research
Learn
  • All guides
  • Choosing a statistical test
  • Method validation roadmap
  • Choosing a method comparison
  • ROC curves & diagnostic performance
  • Choosing a control chart
Support
  • Support centre
  • Tutorials
  • Knowledge base
  • Numerical accuracy
  • Download latest version
  • Release history
Company
  • About us
  • Published research
  • Contact us
  • Development & validation
  • Blog
  • Privacy policy

Get started

  • Download free trial
  • Sign In

© 2026 Analyse-it® Software, Ltd. All rights reserved.
GBLeeds, England · Founded 1997 · Registered in England & Wales, company no. 3022685

Statistical analysis, method validation, diagnostic performance and quality control software for Microsoft Excel.

We value your privacy

We use essential cookies to run the site. With your permission we'd also like to use analytics and advertising cookies to see how visitors find and use Analyse-it, so we can keep improving it and reach more people like you.

You can change your mind at any time, see our Privacy policy.