summaryrefslogtreecommitdiffstats
path: root/source/text/scalc/01/05120100.xhp
blob: 6481acc51f50ab76d829e3f31e1ec7e677b97958 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<?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="conditionalformattingcellis" indexer="include" status="PUBLISH">
            <title id="tit" xml-lang="en-US">Conditional Formatting - Cell value is</title>
            <filename>/text/scalc/01/05120100.xhp</filename>
        </topic>
    </meta>
    <body>

    <bookmark xml-lang="en-US" branch="hid/modules/scalc/ui/conditionalentry/typeis" id="bm_id941662938267119" localize="false"/>
    <bookmark xml-lang="en-US" branch="hid/modules/scalc/ui/conditionalentry/val1" id="bm_id811662938541882" localize="false"/>
    <section id="cellvalueis">
        <h1 id="hd_id431662935550205"><variable id="h1"><link href="text/scalc/01/05120100.xhp" name="Cell Value">Condition - Cell value is</link></variable></h1>
        <paragraph role="paragraph" id="par_id11662915615351">Applies a cell style on the cell or cell range controlled by the condition set in the drop down list. The formatting is applied to each cell individually and the condition may depend on other cells values of the selected range.</paragraph>
    </section>
    <section id="howtoget">
        <embed href="text/scalc/00/00000405.xhp#s_conditionalcondition"/>
    </section>
    <h2 id="hd_id951665406076405">Conditions for Text and Numbers</h2>
    <table id="tab_id211662913907277">
        <tablerow>
            <tablecell>
                <paragraph id="par_id181662913907279" role="tablehead" xml-lang="en-US">Condition</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id941662913907280" role="tablehead" xml-lang="en-US">Description</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id31662913907282" role="tablecontent" xml-lang="en-US">is equal to</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id881662913907284" role="tablecontent" xml-lang="en-US">The cell value equals the user defined value in text box in the right. Use text inside quotes if you compare text values.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id831662914760085" role="tablecontent" xml-lang="en-US" >is not equal to</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id301662914760087" role="tablecontent" xml-lang="en-US" >The cell value is not equal (different) to the user defined value in the text box in the right. Use text inside quotes if you compare text values.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id151662920861587" role="tablecontent" xml-lang="en-US" >begins with</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id341662920861588" role="tablecontent" xml-lang="en-US" >The cell contents begins with the text or number defined in the text box on the right.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id361662922600585" role="tablecontent" xml-lang="en-US" >ends with</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id801662922600586" role="tablecontent" xml-lang="en-US" >The cell contents ends with the text or number defined in the right text box.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id151662922939292" role="tablecontent" xml-lang="en-US" >contains</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id251662922939293" role="tablecontent" xml-lang="en-US" >The cell contents contains the text or number defined in the right text box.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id291662923021542" role="tablecontent" xml-lang="en-US" >does not contain</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id541662923021543" role="tablecontent" xml-lang="en-US" >The cell contents does not contain the text or number defined in the text box on the right.</paragraph>
            </tablecell>
        </tablerow>
    </table>
    <note id="par_id801662922586796"><variable id="text_comparison">The condition applies to the internal text conversion of the cell contents. Numeric values are compared with their equivalent text representation. Numeric cell formats (currency, scientific, user-defined ... ) are not considered for comparisons.</variable></note>

    <h2 id="hd_id111665406111372">Conditions on Numbers only</h2>
    <table id="tab_id321665406132471">
        <tablerow>
            <tablecell>
                <paragraph id="par_id991665406132471" role="tablehead">Condition</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id191665406132471" role="tablehead">Description</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id271662914239763" role="tablecontent" xml-lang="en-US" >is less than</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id501662914239764" role="tablecontent" xml-lang="en-US" >The cell value is strictly less than the user defined value in the text box in the right.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id701662914433053" role="tablecontent" xml-lang="en-US" >is greater than</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id461662914433054" role="tablecontent" xml-lang="en-US" >The cell value is strictly greater than the user defined value in the text box in the right.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id421662914480517" role="tablecontent" xml-lang="en-US" >is less than or equal to</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id631662914480518" role="tablecontent" xml-lang="en-US" >The cell value is less than or equal to the user defined value in the text box in the right.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id651662914713102" role="tablecontent" xml-lang="en-US" >is greater than or equal to</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id251662914713103" role="tablecontent" xml-lang="en-US" >The cell value is greater than or equal to the user defined value in the text box in the right.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id81662914901503" role="tablecontent" xml-lang="en-US" >is between</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id21662914901504" role="tablecontent" xml-lang="en-US" >The cell value is between the two values defined in the text boxes on the right - lower and upper values - including the boundary values themselves.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id411662915178872" role="tablecontent" xml-lang="en-US" >is not between</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id861662915178873" role="tablecontent" xml-lang="en-US" >The cell value is not between the two values defined in the text boxes on the right - lower and upper values - including the boundary values themselves.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id731662915275926" role="tablecontent" xml-lang="en-US" >is duplicate</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id881662915275927" role="tablecontent" xml-lang="en-US" >The cell and at least one other cell in the range have equal contents.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id381662915857686" role="tablecontent" xml-lang="en-US" >is not duplicate</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id341662915857687" role="tablecontent" xml-lang="en-US" >The cell contents is unique in the range.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id1001662915996409" role="tablecontent" xml-lang="en-US" >is in top N  elements</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id571662915996410" role="tablecontent" xml-lang="en-US" >The cell value is between the maximum value in the range and the N<sup>th</sup> greater element of the same. Enter the value of N in the text box on the right.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id341662916338175" role="tablecontent" xml-lang="en-US" >is in bottom N  elements</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id11662916338177" role="tablecontent" xml-lang="en-US" >The cell value is between the minimum value in the range and the N<sup>th</sup> lower element of the same. Enter the value of N in the text box on the right.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id181662916407095" role="tablecontent" xml-lang="en-US" >is in top N percent</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id911662916407097" role="tablecontent" xml-lang="en-US" >The <emph>cell range index value is in the top N percent</emph> of the number of cells in the range. For example, in a 20 cells range and N equals 20, the style is applied to the 4 last cells of the range. Enter the value of N in the text box on the right.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id421662917285432" role="tablecontent" xml-lang="en-US" >is in bottom N percent</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id111662917285433" role="tablecontent" xml-lang="en-US" >The <emph>cell range index value is in the bottom N percent</emph> of the number of cells in the range. For example, in a 20 cells range and N equals 20, the style is applied to the 4 first cells of the range. Enter the value of N in the text box on the right.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id861662917382735" role="tablecontent" xml-lang="en-US" >is above average</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id811662917382736" role="tablecontent" xml-lang="en-US" >The cell value is strictly greater than the average of the cell range values.</paragraph>
                <paragraph role="paragraph" id="par_id701665407334603"><variable id="seenotebelow">See note below.</variable></paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id421662919561954" role="tablecontent" xml-lang="en-US" >is below average</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id661662919561956" role="tablecontent" xml-lang="en-US" >The cell value is strictly less than the average of the cell range values.</paragraph>
                <paragraph role="paragraph" id="par_id871665407380004" localize="false"><embedvar href="text/scalc/01/05120100.xhp#seenotebelow" markup="ignore"/></paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id831662919693474" role="tablecontent" xml-lang="en-US" >is above or equal average</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id71662919693475" role="tablecontent" xml-lang="en-US" >The cell value is greater or equal than the average of the cell range values.</paragraph>
                <paragraph role="paragraph" id="par_id871665407380005" localize="false"><embedvar href="text/scalc/01/05120100.xhp#seenotebelow" markup="ignore"/></paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id521662919771410" role="tablecontent" xml-lang="en-US" >is below or equal average</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id131662919771411" role="tablecontent" xml-lang="en-US" >The cell value is less or equal than the average of the cell range values.</paragraph>
                <paragraph role="paragraph" id="par_id871665407380006" localize="false"><embedvar href="text/scalc/01/05120100.xhp#seenotebelow" markup="ignore"/></paragraph>

            </tablecell>
        </tablerow>
    </table>
    <embed href="text/scalc/01/common_func.xhp#datenumbersequencenote"/>

    <h2 id="hd_id301665406258582">Conditions on Errors in Cells.</h2>
    <table id="tab_id1001665406273943">
        <tablerow>
            <tablecell>
                <paragraph id="par_id451665406273943" role="tablehead">Condition</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id71665406273943" role="tablehead">Description</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id451662919849856" role="tablecontent" xml-lang="en-US" >is error</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id911662919849857" role="tablecontent" xml-lang="en-US" >The cell is in the error condition defined in the text box on the right. See <link href="text/scalc/05/02140000.xhp" name="calc errors">List of Calc errors</link>.</paragraph>
            </tablecell>
        </tablerow>
        <tablerow>
            <tablecell>
                <paragraph id="par_id961662920774180" role="tablecontent" xml-lang="en-US" >is not error</paragraph>
            </tablecell>
            <tablecell>
                <paragraph id="par_id381662920774181" role="tablecontent" xml-lang="en-US" >The cell is not in the error condition defined in the text box on the right. See <link href="text/scalc/05/02140000.xhp" name="calc errors">List of Calc errors</link></paragraph>
            </tablecell>
        </tablerow>
    </table>
    <tip id="par_id61662920733334">A cell that references another cell with an error condition is not in error itself.</tip>
    <section id="relatedtopics">
        <paragraph role="paragraph" id="par_id471665407993996"><embedvar href="text/scalc/01/05120000.xhp#ConditionalFormattingh1" markup="ignore"/></paragraph>
    </section>
</body>
</helpdocument>