11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

106<br />

Part II: Using Functions in Your <strong>Formula</strong>s<br />

Function Argument Types<br />

If you examine the preceding examples in this chapter, you’ll notice that all the functions use a<br />

set of parentheses. The information within the parentheses is the function’s arguments. Functions<br />

vary in how they use arguments. A function may use<br />

No arguments<br />

One argument<br />

A fixed number of arguments<br />

An indeterminate number of arguments<br />

Optional arguments<br />

For example, the RAND function, which returns a random number between 0 and 1, doesn’t use<br />

an argument. Even if a function doesn’t require an argument, you must provide a set of empty<br />

parentheses, like this:<br />

=RAND()<br />

If a function uses more than one argument, a comma separates the arguments. For example, the<br />

LARGE function, which returns the nth largest value in a range, uses two arguments. The first<br />

argument represents the range; the second argument represents the value for n. The formula<br />

below returns the third-largest value in the range A1:A100:<br />

=LARGE(A1:A100,3)<br />

In some non-English versions of Excel, the character used to separate function arguments<br />

can be something other than a comma — for example, a semicolon. The examples<br />

in this book use a comma as the argument separator character.<br />

The examples at the beginning of the chapter use cell or range references for arguments. Excel<br />

proves quite flexible when it comes to function arguments, however. The following sections demonstrate<br />

additional argument types for functions.<br />

Names as arguments<br />

As you’ve seen, functions can use cell or range references for their arguments. When Excel calculates<br />

the formula, it simply uses the current contents of the cell or range to perform its calculations.<br />

The SUM function returns the sum of its argument(s). To calculate the sum of the values in<br />

A1:A20, you can use<br />

=SUM(A1:A20)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!