1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*a213f9d9Smseidel
302dbb15cSAndrew Rist<!--***********************************************************
4*a213f9d9Smseidel *
502dbb15cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
602dbb15cSAndrew Rist * or more contributor license agreements.  See the NOTICE file
702dbb15cSAndrew Rist * distributed with this work for additional information
802dbb15cSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
902dbb15cSAndrew Rist * to you under the Apache License, Version 2.0 (the
1002dbb15cSAndrew Rist * "License"); you may not use this file except in compliance
1102dbb15cSAndrew Rist * with the License.  You may obtain a copy of the License at
12*a213f9d9Smseidel *
1302dbb15cSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14*a213f9d9Smseidel *
1502dbb15cSAndrew Rist * Unless required by applicable law or agreed to in writing,
1602dbb15cSAndrew Rist * software distributed under the License is distributed on an
1702dbb15cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1802dbb15cSAndrew Rist * KIND, either express or implied.  See the License for the
1902dbb15cSAndrew Rist * specific language governing permissions and limitations
2002dbb15cSAndrew Rist * under the License.
21*a213f9d9Smseidel *
2202dbb15cSAndrew Rist ***********************************************************-->
2302dbb15cSAndrew Rist
24*a213f9d9Smseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26*a213f9d9Smseidel<topic id="textscalcguidecellstyle_minusvaluexml" indexer="include" status="PUBLISH">
27*a213f9d9Smseidel<title xml-lang="en-US" id="tit">Highlighting Negative Numbers</title>
28*a213f9d9Smseidel<filename>/text/scalc/guide/cellstyle_minusvalue.xhp</filename>
29*a213f9d9Smseidel</topic>
30*a213f9d9Smseidel</meta>
31*a213f9d9Smseidel<body>
32*a213f9d9Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3147434">
33*a213f9d9Smseidel<bookmark_value>negative numbers</bookmark_value>
34*a213f9d9Smseidel<bookmark_value>numbers; highlighting negative numbers</bookmark_value>
35*a213f9d9Smseidel<bookmark_value>highlighting;negative numbers</bookmark_value>
36*a213f9d9Smseidel<bookmark_value>colors;negative numbers</bookmark_value>
37*a213f9d9Smseidel<bookmark_value>number formats;colors for negative numbers</bookmark_value>
38cdf0e10cSrcweir</bookmark><comment>MW made "negative numbers;" a one level entry</comment><comment>MW changed "numbers formats;" and "colors;"</comment>
39cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3147434" role="heading" level="1" l10n="U"
40*a213f9d9Smseideloldref="31"><variable id="cellstyle_minusvalue"><link href="text/scalc/guide/cellstyle_minusvalue.xhp" name="Highlighting Negative Numbers">Highlighting Negative Numbers</link>
41cdf0e10cSrcweir</variable></paragraph>
42*a213f9d9Smseidel<paragraph xml-lang="en-US" id="par_id3153878" role="paragraph" l10n="U" oldref="33">You can format cells with a number format that highlights negative numbers in red. Alternatively, you can define your own number format in which negative numbers are highlighted in other colors.</paragraph>
43*a213f9d9Smseidel<list type="ordered">
44*a213f9d9Smseidel<listitem>
45*a213f9d9Smseidel<paragraph xml-lang="en-US" id="par_id3155600" role="listitem" l10n="U" oldref="34">Select the cells and choose <emph>Format - Cells</emph>.</paragraph>
46*a213f9d9Smseidel</listitem>
47*a213f9d9Smseidel<listitem>
48*a213f9d9Smseidel<paragraph xml-lang="en-US" id="par_id3146969" role="listitem" l10n="U" oldref="35">On the <emph>Numbers</emph> tab, select a number format and mark <emph>Negative numbers red</emph> check box. Click <emph>OK</emph>.</paragraph>
49*a213f9d9Smseidel</listitem>
50*a213f9d9Smseidel</list>
51*a213f9d9Smseidel<paragraph xml-lang="en-US" id="par_id3145640" role="paragraph" l10n="U" oldref="36">The cell number format is defined in two parts. The format for positive numbers and zero is defined in front of the semicolon; after the semicolon the formula for negative numbers is defined. You can change the code (RED) under <item type="menuitem">Format code</item>. For example, instead of RED, enter <item type="literal">YELLOW</item>. If the new code appears in the list after clicking the <item type="menuitem">Add</item> icon, this is a valid entry.</paragraph>
52*a213f9d9Smseidel<section id="relatedtopics">
53*a213f9d9Smseidel<embed href="text/scalc/guide/cellstyle_conditional.xhp#cellstyle_conditional"/>
54*a213f9d9Smseidel<embed href="text/scalc/guide/cellstyle_by_formula.xhp#cellstyle_by_formula"/>
55*a213f9d9Smseidel</section>
56*a213f9d9Smseidel</body>
57*a213f9d9Smseidel</helpdocument>
58