Files
help/helpcontent2/source/text/scalc/guide/format_value_userdef.xhp
2004-08-26 11:59:36 +00:00

164 lines
7.8 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************************
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc..
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************-->
<helpdocument version="1.0">
<meta>
<topic id="textscalcguideformat_value_userdefxml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">User-defined Number Formats</title>
<filename>/text/scalc/guide/format_value_userdef.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
<lastedited date="2004-08-16T11:33:35">converted from old format - fpe
dedr: fixed #i30800#</lastedited>
</history>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3143268"><bookmark_value>numbers; user-defined formatting in tables</bookmark_value>
<bookmark_value>formatting; user-defined numbers</bookmark_value>
<bookmark_value>number formats; millions</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3143268" xml-lang="en-US" level="1" l10n="U" 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>
</variable></paragraph>
<paragraph role="paragraph" id="par_id3150400" xml-lang="en-US" l10n="U" oldref="1">You can define your own number formats to display numbers in <item type="productname">%PRODUCTNAME</item> Calc.</paragraph>
<paragraph role="paragraph" id="par_id3150767" xml-lang="en-US" l10n="U" oldref="2">As an example, to display the number 10,200,000 as 10.2 Million:</paragraph>
<list type="ordered">
<listitem>
<paragraph role="listitem" id="par_id3150868" xml-lang="en-US" l10n="U" oldref="3">Select the cells to which you want to apply a new, user-defined format.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3149664" xml-lang="en-US" l10n="U" oldref="4">Choose <emph>Format - Cells - Numbers</emph>.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3149260" xml-lang="en-US" l10n="U" oldref="5">In the <emph>Categories</emph> list box select "User-defined".</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3148646" xml-lang="en-US" l10n="U" oldref="6">In the <emph>Format code</emph> text box enter the following code:</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id3152596" xml-lang="en-US" l10n="U" oldref="7">0.0,, "Million"</paragraph>
<list type="ordered" startwith="5">
<listitem>
<paragraph role="listitem" id="par_id3144764" xml-lang="en-US" l10n="U" oldref="8">Click OK.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id3155417" xml-lang="en-US" l10n="U" oldref="9">The following table shows the effects of rounding, thousands delimiters (,), decimal delimiters (.) and the placeholders # and 0.</paragraph>
<table id="tbl_id3153157">
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3146971" xml-lang="en-US" l10n="U" oldref="10">Number</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3154757" xml-lang="en-US" l10n="U" oldref="11">.#,, "Million"</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3147338" xml-lang="en-US" l10n="U" oldref="12">0.0,, "Million"</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3146920" xml-lang="en-US" l10n="U" oldref="13">#,, "Million"</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3147344" xml-lang="en-US" l10n="U" oldref="14">10200000</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3147003" xml-lang="en-US" l10n="U" oldref="15">10.2 Million</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3166426" xml-lang="en-US" l10n="U" oldref="16">10.2 Million</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3155113" xml-lang="en-US" l10n="U" oldref="17">10 Million</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3150369" xml-lang="en-US" l10n="U" oldref="18">500000</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3145585" xml-lang="en-US" l10n="U" oldref="19">.5 Million</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3154486" xml-lang="en-US" l10n="U" oldref="20">0.5 Million</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3146114" xml-lang="en-US" l10n="U" oldref="21">1 Million</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3155810" xml-lang="en-US" l10n="U" oldref="22">100000000</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3153818" xml-lang="en-US" l10n="U" oldref="23">100. Million</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3151241" xml-lang="en-US" l10n="U" oldref="24">100.0 Million</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="paragraph" id="par_id3144771" xml-lang="en-US" l10n="U" oldref="25">100 Million</paragraph>
</tablecell>
</tablerow>
</table>
<embed href="text/shared/00/00000004.xhp#related"/>
<embed href="text/scalc/guide/format_value.xhp#format_value"/>
<embed href="text/scalc/guide/currency_format.xhp#currency_format"/>
<embed href="text/scalc/guide/text_numbers.xhp#text_numbers"/>
<embed href="text/shared/01/05020301.xhp#zahlenformatcodes"/>
</body>
</helpdocument>