Professional Documents
Culture Documents
This exercise is actually more useful than one might think, because it shows us that: - formulas are entered into cells - formulas begin with "=" - formulas are used to return something different than what we put in
Please remember what they tried to teach us at school, because the same rules apply in Calc; multiplication and division are done before adding and subtraction! Which means that =2+3*4 results in 14, not 20..
SUM() Formula
Now well try to sum these numbers, enter the formula as following: =sum(A1:A5) Start entering the forumula =sum( and nothing else! Nowclick onthe top most cell that contains the numbers, and hold the mouse button down while you drag down until you have marked the entire area you want to evaluate. Enter ), the ending paranthesis.
What happened now? Calc actually entered the cell addresses for you! Now, try changing the uppmost value. Do that by clicking once on the cell, and start typing the number you want entered: Calc automatically updates the sum to reflect the changes: Do the same by deleting last number. TRY AVERAGE() which is similar to sum formula
Autoformat
The Autoformat feature in Calc is used to assign preset formats to a range of cells - creating attractive, professional-looking table designs at the press of a button.First, select the cells you want to format. From the menu, select Format - AutoFormat In the Autoformat dialog box, select the desired Autoformat
For example, to calculate someones age (in years)In OpenOffice CALC, we can use =YEARS(A1;NOW();0) For calculating number of monthsIn OpenOffice CALC, we use = MONTHS(A1;NOW();0) For calculating number of daysIn Openoffice CALC, we can use.. =INT(DAYS(now();A1))
Data Validation:
For each cell, you can define in advance what type of contents is valid for that cell. This allows you to guide users through data entry in OpenOffice.org Calc by restricting cells to receive specific values and ranges.
For selected cells, a drop-down list of possible values can be defined. In this tutorial, we show how this is done. Step1: Select the required cell and open the data validation dialog as shown below.
Step2: In the Criteria tab of the validation dialog, the Allow option is itself a dropdown list. We select List.