Sie sind auf Seite 1von 18

Mathematical Functions

Freeze function
If you have long rows or columns of data that extend
beyond the viewable area of the spreadsheet, you can freeze them, which allows you to see the columns or rows as you scroll through the rest of the data. Select the row below, or the column to the right of the row or column that you want to be in the frozen region. All rows above, or all columns to the left of the selection are frozen.

Round (23.56)
=ROUND(NUMBER,COUNT) =ROUND(F12,0) will return 24 =ROUND(F12,1) will return 23.6 =ROUND(23.3,1) will return 23.3 =ROUND(23.3,0) will return 23 =ROUND(26.5,0) will return 27 =ROUND(26.3,0) will return 26 ROUNDDOWN FUNCTION

Ceil
CEILING(Number; Significance; Mode) Number is the number that is to be rounded up. Significance is the number to whose multiple the value is to be rounded up. Mode is an optional value. If the Mode value is given and not equal to zero, and if Number and Significance are negative, then rounding is done based on the absolute value of Number. =CEILING(12.8,1) WILL RETURN 13 =CEILING(30.2,1) WILL RETURN 31

FLOOR
Rounds number down, toward zero, to the nearest multiple of significance. FLOOR(2.5,1)= 2 FLOOR(-2.5,-2)= -4 FLOOR(1.56,2)= 0

ODD
It rounds a positive number up and negative number down to the nearest ODD integer =ODD(1.2) returns 3. =ODD(1) returns 1. =ODD(0) returns 1. =ODD(-3.1) returns -5. =ODD(23.2) RETURNS 25 =ODD(23.6) RETURNS 25 CEILING (-2.5,2) CEILING (-2.5,-2)

EVEN
It rounds a positive number up and negative number down to the nearest EVEN integer =EVEN(2.3) returns 4. =EVEN(2) returns 2. =EVEN(0) returns 0. =EVEN(-0.5) returns -2. =EVEN(22.2) RETURNS 24 =EVEN(23.6) RETURNS 24

fact
Returns the factorial of a number. FACT(Number) Returns Number!, the factorial of Number, calculated as 1*2*3*4* ... * Number. =FACT(0) returns 1 by definition. The factorial of a negative number returns the "invalid argument" error. Example =FACT(3) returns 6. =FACT(0) returns 1.

Trunc
TRUNC(Number; Count) Returns Number with at most Count decimal places. Excess decimal places are simply removed, irrespective of sign. =TRUNC(1.239;2) returns 1.23. =TRUNC(-1.234999;3) returns -1.234. =TRUNC(23.3698,2) returns 23.36

Application of Mathematical Functions to following set of data: ceil and floor for (60.1) and odd and even for (26.8). Write steps and point of differences for them.

Calc Logical Functions


AND FALSE returns TRUE if all the arguments are TRUE. returns the logical value FALSE.

IF
NOT OR

returns one of two values, depending on a test condition.


returns TRUE if the argument is FALSE, and FALSE if the argument is TRUE. returns TRUE if any of the arguments are TRUE.

TRUE

returns the logical value TRUE.

In Calc, logical values are represented by numbers: 0 is FALSE and 1 is TRUE. We may enter 1 in a cell, and then (selecting Format - Cells...) choose the 'Boolean Value' format to display the number as TRUE.

Logical Functions
AND-Returns TRUE if all arguments are TRUE. If one of the elements is FALSE, this function returns the FALSE value.
The Data A1-15,A2-39,A3-48

1)Write an AND formula to determine if A2>A3 and A2<A4 is a true or false statement
2)Write an OR formula to determine if A2>A3 or A2<A4 is a true or false statement. 3) Write a formula that expresses that A2+A3=24 is a false statement The arguments are either logical expressions themselves (TRUE, 1<5, 2+3=7, B8<10)

Returns TRUE if at least one argument is TRUE. This function returns the value FALSE, if all the arguments have the logical value FALSE. OR(12<11;13>22;45=45) returns TRUE.

False
FALSE Returns the logical value FALSE. The FALSE() function does not require any arguments, and always returns the logical value FALSE. Syntax FALSE()
=FALSE() returns FALSE

=NOT(FALSE()) returns TRUE

Excercise
Using Excels AND, OR, and NOT Functions

A. =AND(A2>A3, A2<A4) B. =OR(A2>A3, A2<A4) C. =NOT(A2+A3=24)

Using Excels IF function A. =IF(A2<=100,"Within budget","Over budget") Using IF Functions to Determine Grades =IF(A2>89,"A",IF(A2>79,"B",IF(A2>69,"C", IF(A2>59,"D","F"))))

Create worksheet for student. Enter Student Name, Exam1, Exam 2 and Exam3. Marks to be on the scale of 1-20. Calculate average. Print following using conditional if statement: - "Failed" if the average is less than 10 - "Accepted" if the result is between 10 and 12 - "Good" if the result is between 12 and 14 - "Very Good" if the result is between 14 and 16 - "Excellent" if the result is greater than 16

Das könnte Ihnen auch gefallen