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