
IF() only calculates the value chosen - in this case 1/0 would give a #DIV/0! error, but is not calculated. IF(1=2 1/0 SQRT(4)) returns 2, the square root of 4. IF(2>1) returns TRUE - because both value1 and value2 have been omitted and 2 is more than 1. IF(1>2 "nonsense") returns FALSE - because value2 has been omitted and 1 is not greater than 2. If a value equal or more than 51 and equal and less than 100, then 34.13 will show in the cell the formula is being entered. IF(A1>5 100 "too small") returns the number 100 if A1 is greater than 5, and the text "too small" otherwise. If value2 is omitted it is assumed to be FALSE if value1 is also omitted it is assumed to be TRUE. value2 is the value that is returned by the function if test yields FALSE.


Value1 is the value that is returned by the function if test yields TRUE.

Test is or refers to a logical value or expression that returns a logical value ( TRUE or FALSE). The first column will represent the name of the employee and the second column is how many guests the employee will bring.Returns one of two values, depending on a test condition. To make things easy if the person enters "0" that means they are not bringing a guest (the employee, however, IS required to come) and if they enter "1" that means they are which means that employee equals two attendees. We'll do a simple spreadsheet that deals with how many persons each employee will bring to a company picnic. The first example will illustrate a basic IF/ELSE statement that uses only two columns of data. Let's start out with a more simple example and move on to a more complex example. IF entry A is greater than B THEN C is X ELSE C is Y.īut how does one do this? It's actually quite easy. That third columns' entry will depend upon the information in the first two. Let's say you have two columns of numbers and you want to add a third column based on the other two data. For instance, did you know that Calc can do If/Else statements? In this spreadsheet tutorial you will learn how to use IF/ELSE statements in OpenOffice Calc. This spreadsheet and spreadsheets, you never get are less volatile than the format menu which. Openoffice Calc holds a lot more bang for the users' buck than you might think. Is zero if the spreadsheet entry in openoffice calc, in. Most people know the ins and outs of spreadsheets, but many don't realize just how powerful spreadsheets can be. And when I work in spreadsheets I work in OpenOffice.
