1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
-->
<meta>
<topic id="ifs01" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">IFS function</title>
<filename>/text/scalc/01/func_ifs.xhp</filename>
</topic>
</meta>
<body>
<section id="ifsfunction01">
<bookmark id="bm_id721556234923653" xml-lang="en-US" branch="hid/SC_HID_FUNC_IFS_MS" localize="false"/>
<bookmark xml-lang="en-US" branch="index" id="bm_id901556242230198">
<bookmark_value>IFS function</bookmark_value>
</bookmark>
<h1 id="hd_id271556234923654"><variable id="ifsfunct"><link href="text/scalc/01/func_ifs.xhp">IFS</link></variable></h1>
<paragraph id="par_id171556234923655" role="paragraph" xml-lang="en-US"><variable id="variable name"><ahelp hid=".">IFS is a multiple IF-function.</ahelp></variable></paragraph>
</section>
<embed href="text/scalc/01/ful_func.xhp#func_head_syntax"/>
<paragraph role="code" id="par_id271556235333493">IFS(expression1; result1[; expression2; result2][; ... ; [expression127; result127]])</paragraph>
<paragraph role="paragraph" id="par_id31556235655212"><emph>expression1, expression2, ...</emph> are any boolean values or expressions that can be TRUE or FALSE</paragraph>
<paragraph role="paragraph" id="par_id441556235649549"><emph>result1, result2, ... </emph> are the values that are returned if the logical test is TRUE</paragraph>
<paragraph role="paragraph" id="par_id641556235704257">IFS( expression1, result1, expression2, result2, expression3, result3 ) is executed as</paragraph>
<paragraph role="paragraph" id="par_id551556235712759">IF expression1 is TRUE</paragraph>
<paragraph role="paragraph" id="par_id1001556235718948">THEN result1</paragraph>
<paragraph role="paragraph" id="par_id571556235725969">ELSE IF expression2 is TRUE</paragraph>
<paragraph role="paragraph" id="par_id581556235731982">THEN result2</paragraph>
<paragraph role="paragraph" id="par_id961556235738258">ELSE IF expression3 is TRUE</paragraph>
<paragraph role="paragraph" id="par_id951556235743954">THEN result3</paragraph>
<paragraph role="paragraph" id="par_id671556235758504">To get a default result should no expression be TRUE, add a last expression that is always TRUE, like TRUE or 1=1 followed by the default result.</paragraph>
<paragraph role="paragraph" id="par_id541556235771022">If there is a result missing for an expression or is no expression is TRUE, a #N/A error is returned.</paragraph>
<paragraph role="paragraph" id="par_id181556235788473">If expression is neither TRUE or FALSE, a #VALUE error is returned.</paragraph>
<embed href="text/scalc/01/common_func.xhp#sectiontechinfo"/>
<embed href="text/scalc/00/avail_release.xhp#5.2"/>
<embed href="text/scalc/01/common_func.xhp#notODFF"/>
<paragraph role="paragraph" id="par_id341640873986703" localize="false"><literal>COM.MICROSOFT.IFS</literal></paragraph>
<section id="relatedtopics">
<tip id="par_id971677015751595"><link href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/IFS">IFS wiki page</link>.</tip>
<embed href="text/scalc/01/func_switch.xhp#switchfunct"/>
<paragraph role="paragraph" id="par_id781556244709752"><link href="text/scalc/01/04060105.xhp#Section4">IF</link></paragraph>
</section>
</body>
</helpdocument>
|