0% found this document useful (0 votes)
34 views

Excel Missing Values PDF

Empty cells are treated as 0 in calculations but as missing in statistical functions like average. To handle blanks in calculations, use the IF function to check for numbers and return "" or NA() for blanks rather than having them display as 0. Using NA() prevents blanks from plotting as 0 on graphs. Copying cells with "" to values will still show blanks as 0 on graphs, so find and delete those cells using Edit > Go To Special.

Uploaded by

septian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Excel Missing Values PDF

Empty cells are treated as 0 in calculations but as missing in statistical functions like average. To handle blanks in calculations, use the IF function to check for numbers and return "" or NA() for blanks rather than having them display as 0. Using NA() prevents blanks from plotting as 0 on graphs. Copying cells with "" to values will still show blanks as 0 on graphs, so find and delete those cells using Edit > Go To Special.

Uploaded by

septian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Missing Values In Excel

Empty cells are treated as 0 when:


• you do simple arithmetic, eg 9 – blank = 9 9

Empty cells are treated as missing when: 9 =A1-A2


• you do calculations using Excel statistical 9 =average(A1:A2)
functions, eg average(9,blank) = 9
• you do graphs (this default option can be changed to graph blanks as zero
(Tools/Options/Chart/Plot empty cells as ..)

How to ensure you get the right answer when doing arithmetic on data that may
contain blanks:

If the arithmetic x =log(x) =if(isnumber(x),log(x),"") =if(iserror(log(x)),"",log(x))


involves just 1 cell 3 0.4771 0.4771 0.4771
(eg =log(cell)), then 5 0.6990 0.6990 0.6990
you can check the #NUM!
contents of this cell 7 0.8451 0.8451 0.8451
with the “If” function
and one of several choices of information functions which return a true of false result, eg
=if(isnumber(cell),log(cell),””)
The if function has the form
=if(condition, calculation if condition is true, calculation if condition is false).
Useful information functions are: isblank, isnumber, iserror (there are several others).

If the arithmetic involves several cells


(eg = A2/B2 – C2), x y z =x/y-z =if(count(x,y,z)=3,x/y-z,"")
it is usually best to 2 8 4 -3.75 -3.75
check that all cells 3 5 #DIV/0!
have a value using 3 8 0.375
the count function.

Two double quotes (“”) na()


displays a blank in the cell displays #N/A in the cell
is treated as a blank cell in arithmetic and results in an error in arithmetic and
statistical functions statistical functions
Plots as zero on graphs for y variable does not show on graphs
(unfortunately!)
And for x variable in a scatterplot, treats “”
as text and so x axis becomes observation
number

To get a missing value resulting from a formula to NOT display as 0 on graphs


You can replace “” in the “if” formula with na() eg =if(isnumber(cell),log(cell),na()).

Note that if you copy the calculated cells and paste as values, the cells that had the “”
result appear to be empty but still show on graphs as zeros!! You can find these cells by
selecting the range containing the calculated cells, choosing Edit/Goto/Special and
selecting Constants and Text then hitting the Delete key. (Let’s hope it is better in the
next version!)

Neil Cox, Statistics, AgResearch Ruakura

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy