1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--***********************************************************
4 *
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements.  See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership.  The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License.  You may obtain a copy of the License at
12 *
13 *   http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied.  See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 *
22 ***********************************************************-->
23
24<helpdocument version="1.0">
25<meta>
26<topic id="textscalcguideformat_value_userdefxml" indexer="include" status="PUBLISH">
27<title xml-lang="en-US" id="tit">User-defined Number Formats</title>
28<filename>/text/scalc/guide/format_value_userdef.xhp</filename>
29</topic>
30</meta>
31<body>
32<bookmark xml-lang="en-US" branch="index" id="bm_id3143268">
33<bookmark_value>numbers;user-defined formatting</bookmark_value>
34<bookmark_value>formatting; user-defined numbers</bookmark_value>
35<bookmark_value>number formats; millions</bookmark_value>
36<bookmark_value>format codes; user-defined number formats</bookmark_value>
37</bookmark><comment>mw changed "numbers;"</comment>
38<paragraph xml-lang="en-US" id="hd_id3143268" role="heading" level="1" l10n="U"
39oldref="26"><variable id="format_value_userdef"><link href="text/scalc/guide/format_value_userdef.xhp" name="User-defined Number Formats">User-defined Number Formats</link>
40</variable></paragraph>
41<paragraph xml-lang="en-US" id="par_id3150400" role="paragraph" l10n="U" oldref="1">You can define your own number formats to display numbers in <item type="productname">%PRODUCTNAME</item> Calc.</paragraph>
42<paragraph xml-lang="en-US" id="par_id3150767" role="paragraph" l10n="U" oldref="2">As an example, to display the number 10,200,000 as 10.2 Million:</paragraph>
43<list type="ordered">
44<listitem>
45<paragraph xml-lang="en-US" id="par_id3150868" role="listitem" l10n="U" oldref="3">Select the cells to which you want to apply a new, user-defined format.</paragraph>
46</listitem>
47<listitem>
48<paragraph xml-lang="en-US" id="par_id3149664" role="listitem" l10n="U" oldref="4">Choose <emph>Format - Cells - Numbers</emph>.</paragraph>
49</listitem>
50<listitem>
51<paragraph xml-lang="en-US" id="par_id3149260" role="listitem" l10n="U" oldref="5">In the <emph>Categories</emph> list box select "User-defined".</paragraph>
52</listitem>
53<listitem>
54<paragraph xml-lang="en-US" id="par_id3148646" role="listitem" l10n="U" oldref="6">In the <emph>Format code</emph> text box enter the following code:</paragraph>
55<paragraph xml-lang="en-US" id="par_id3152596" role="code" l10n="U" oldref="7">0.0,, "Million"</paragraph>
56</listitem>
57<listitem>
58<paragraph xml-lang="en-US" id="par_id3144764" role="listitem" l10n="U" oldref="8">Click OK.</paragraph>
59</listitem>
60</list>
61<paragraph xml-lang="en-US" id="par_id3155417" role="paragraph" l10n="U" oldref="9">The following table shows the effects of rounding, thousands delimiters (,), decimal delimiters (.) and the placeholders # and 0.</paragraph>
62<table id="tbl_id3153157">
63<tablerow>
64<tablecell>
65<paragraph xml-lang="en-US" id="par_id3146971" role="tablehead" l10n="U" oldref="10">Number</paragraph>
66</tablecell>
67<tablecell>
68<paragraph xml-lang="en-US" id="par_id3154757" role="tablehead" l10n="U" oldref="11">.#,, "Million"</paragraph>
69</tablecell>
70<tablecell>
71<paragraph xml-lang="en-US" id="par_id3147338" role="tablehead" l10n="U" oldref="12">0.0,, "Million"</paragraph>
72</tablecell>
73<tablecell>
74<paragraph xml-lang="en-US" id="par_id3146920" role="tablehead" l10n="U" oldref="13">#,, "Million"</paragraph>
75</tablecell>
76</tablerow>
77<tablerow>
78<tablecell>
79<paragraph xml-lang="en-US" id="par_id3147344" role="paragraph" l10n="U" oldref="14">10200000</paragraph>
80</tablecell>
81<tablecell>
82<paragraph xml-lang="en-US" id="par_id3147003" role="paragraph" l10n="U" oldref="15">10.2 Million</paragraph>
83</tablecell>
84<tablecell>
85<paragraph xml-lang="en-US" id="par_id3166426" role="paragraph" l10n="U" oldref="16">10.2 Million</paragraph>
86</tablecell>
87<tablecell>
88<paragraph xml-lang="en-US" id="par_id3155113" role="paragraph" l10n="U" oldref="17">10 Million</paragraph>
89</tablecell>
90</tablerow>
91<tablerow>
92<tablecell>
93<paragraph xml-lang="en-US" id="par_id3150369" role="paragraph" l10n="U" oldref="18">500000</paragraph>
94</tablecell>
95<tablecell>
96<paragraph xml-lang="en-US" id="par_id3145585" role="paragraph" l10n="U" oldref="19">.5 Million</paragraph>
97</tablecell>
98<tablecell>
99<paragraph xml-lang="en-US" id="par_id3154486" role="paragraph" l10n="U" oldref="20">0.5 Million</paragraph>
100</tablecell>
101<tablecell>
102<paragraph xml-lang="en-US" id="par_id3146114" role="paragraph" l10n="U" oldref="21">1 Million</paragraph>
103</tablecell>
104</tablerow>
105<tablerow>
106<tablecell>
107<paragraph xml-lang="en-US" id="par_id3155810" role="paragraph" l10n="U" oldref="22">100000000</paragraph>
108</tablecell>
109<tablecell>
110<paragraph xml-lang="en-US" id="par_id3153818" role="paragraph" l10n="U" oldref="23">100. Million</paragraph>
111</tablecell>
112<tablecell>
113<paragraph xml-lang="en-US" id="par_id3151241" role="paragraph" l10n="U" oldref="24">100.0 Million</paragraph>
114</tablecell>
115<tablecell>
116<paragraph xml-lang="en-US" id="par_id3144771" role="paragraph" l10n="U" oldref="25">100 Million</paragraph>
117</tablecell>
118</tablerow>
119</table>
120<section id="relatedtopics">
121<embed href="text/scalc/guide/format_value.xhp#format_value"/>
122<embed href="text/scalc/guide/currency_format.xhp#currency_format"/>
123<embed href="text/scalc/guide/text_numbers.xhp#text_numbers"/>
124<embed href="text/shared/01/05020301.xhp#zahlenformatcodes"/>
125</section>
126</body>
127</helpdocument>
128