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"><variable id="format_value_userdef"><link href="text/scalc/guide/format_value_userdef.xhp" name="User-defined Number Formats">User-defined Number Formats</link> 39</variable></paragraph> 40<paragraph xml-lang="en-US" id="par_id3150400" role="paragraph" l10n="U">You can define your own number formats to display numbers in <item type="productname">%PRODUCTNAME</item> Calc.</paragraph> 41<paragraph xml-lang="en-US" id="par_id3150767" role="paragraph" l10n="U">As an example, to display the number 10,200,000 as 10.2 Million:</paragraph> 42<list type="ordered"> 43<listitem> 44<paragraph xml-lang="en-US" id="par_id3150868" role="listitem" l10n="U">Select the cells to which you want to apply a new, user-defined format.</paragraph> 45</listitem> 46<listitem> 47<paragraph xml-lang="en-US" id="par_id3149664" role="listitem" l10n="U">Choose <emph>Format - Cells - Numbers</emph>.</paragraph> 48</listitem> 49<listitem> 50<paragraph xml-lang="en-US" id="par_id3149260" role="listitem" l10n="U">In the <emph>Categories</emph> list box select "User-defined".</paragraph> 51</listitem> 52<listitem> 53<paragraph xml-lang="en-US" id="par_id3148646" role="listitem" l10n="U">In the <emph>Format code</emph> text box enter the following code:</paragraph> 54<paragraph xml-lang="en-US" id="par_id3152596" role="code" l10n="U">0.0,, "Million"</paragraph> 55</listitem> 56<listitem> 57<paragraph xml-lang="en-US" id="par_id3144764" role="listitem" l10n="U">Click OK.</paragraph> 58</listitem> 59</list> 60<paragraph xml-lang="en-US" id="par_id3155417" role="paragraph" l10n="U">The following table shows the effects of rounding, thousands delimiters (,), decimal delimiters (.) and the placeholders # and 0.</paragraph> 61<table id="tbl_id3153157"> 62<tablerow> 63<tablecell> 64<paragraph xml-lang="en-US" id="par_id3146971" role="tablehead" l10n="U">Number</paragraph> 65</tablecell> 66<tablecell> 67<paragraph xml-lang="en-US" id="par_id3154757" role="tablehead" l10n="U">.#,, "Million"</paragraph> 68</tablecell> 69<tablecell> 70<paragraph xml-lang="en-US" id="par_id3147338" role="tablehead" l10n="U">0.0,, "Million"</paragraph> 71</tablecell> 72<tablecell> 73<paragraph xml-lang="en-US" id="par_id3146920" role="tablehead" l10n="U">#,, "Million"</paragraph> 74</tablecell> 75</tablerow> 76<tablerow> 77<tablecell> 78<paragraph xml-lang="en-US" id="par_id3147344" role="paragraph" l10n="U">10200000</paragraph> 79</tablecell> 80<tablecell> 81<paragraph xml-lang="en-US" id="par_id3147003" role="paragraph" l10n="U">10.2 Million</paragraph> 82</tablecell> 83<tablecell> 84<paragraph xml-lang="en-US" id="par_id3166426" role="paragraph" l10n="U">10.2 Million</paragraph> 85</tablecell> 86<tablecell> 87<paragraph xml-lang="en-US" id="par_id3155113" role="paragraph" l10n="U">10 Million</paragraph> 88</tablecell> 89</tablerow> 90<tablerow> 91<tablecell> 92<paragraph xml-lang="en-US" id="par_id3150369" role="paragraph" l10n="U">500000</paragraph> 93</tablecell> 94<tablecell> 95<paragraph xml-lang="en-US" id="par_id3145585" role="paragraph" l10n="U">.5 Million</paragraph> 96</tablecell> 97<tablecell> 98<paragraph xml-lang="en-US" id="par_id3154486" role="paragraph" l10n="U">0.5 Million</paragraph> 99</tablecell> 100<tablecell> 101<paragraph xml-lang="en-US" id="par_id3146114" role="paragraph" l10n="U">1 Million</paragraph> 102</tablecell> 103</tablerow> 104<tablerow> 105<tablecell> 106<paragraph xml-lang="en-US" id="par_id3155810" role="paragraph" l10n="U">100000000</paragraph> 107</tablecell> 108<tablecell> 109<paragraph xml-lang="en-US" id="par_id3153818" role="paragraph" l10n="U">100. Million</paragraph> 110</tablecell> 111<tablecell> 112<paragraph xml-lang="en-US" id="par_id3151241" role="paragraph" l10n="U">100.0 Million</paragraph> 113</tablecell> 114<tablecell> 115<paragraph xml-lang="en-US" id="par_id3144771" role="paragraph" l10n="U">100 Million</paragraph> 116</tablecell> 117</tablerow> 118</table> 119<section id="relatedtopics"> 120<embed href="text/scalc/guide/format_value.xhp#format_value"/> 121<embed href="text/scalc/guide/currency_format.xhp#currency_format"/> 122<embed href="text/scalc/guide/text_numbers.xhp#text_numbers"/> 123<embed href="text/shared/01/05020301.xhp#zahlenformatcodes"/> 124</section> 125</body> 126</helpdocument> 127