52. About Calc Functions
44 About Calc Formulas 53 Enter Calc Functions Entering individual formulas can get tedious. Suppose you want to add all the values in a column of 100 cells. You would type a formula such as =F2+F3+F4+… and would likely run out of roomand patience!before you complete the formula. In addition, such long formulas are likely to produce errors when you have to type so much.arguments . A function might use zero, one, or more arguments, depending on how much information the function needs to do its job. When using multiple arguments in a function, separate the arguments with semicolons. If a function contains only a single argument, do not use a semicolon inside the parentheses. Functions generally manipulate data (numbers or text), and the arguments inside the parentheses supply the data to the functions. The Average() function, for example, computes an average of whatever list of values you pass in the argument. Therefore, all the following compute an average from the argument list:
=Average(18; 65; 299; $R$5; 10; -2; 102)
=Average(SalesTotals)
=Average(D4:D14)
Values appearing inside a function's parentheses that the function uses in some way to produce its result.
However, this formula does not compute an average! Remember that the operator hierarchy forces the division calculation first. If you use the Average() function, as shown next, you don't have to worry as much about the calculation's hierarchy:
=C2 + C4 + C6 / 3
The Sum() function is perhaps the most common function because you so often total columns and rows. Instead of adding each cell individually, you could more easily enter the following function:
=Average(C2; C4; C6)
=Sum(F2:F101)
=CostOfSales * Sum(Qtr1; Qtr2; Qtr3; Qtr4) / SalesFactor * 1.07