Custom number formatting examples

The following table lists examples of custom number formats. It includes the formatting symbols, report data, and how that data is displayed using the formatting.

Format

Cell Data

Display

#.##

123.456

123.46

 

0.2

.2

#.0#

123.456

123.46

 

123

123.0

#,##0"CR";#,##0"DR";0

1234.567

1,235CR

 

0

0

#.

-123.45

123DR

 

10000

10

???.???

123.45,
45.90,
345.809

With aligned decimals

"Sales="0.0

123.45

Sales=123.5

 

-123.45

-Sales=123.5

"X="0.0;"x="-0.0

-12.34

x=12.3

$* #,##0.00;$* -#,##0.00

1234.567

$ 1,234.57

 

-12.34

$ -12.34

000-00-0000

123456789

123-45-6789

"Cust. No. " 0000

1234

Cust. No. 1234

;;:

Anything

(Not Displayed)

"The End"

123.45

The End

 

-123.45

-The End

 

text

text

ALT+0163 #.##

250.45

£ 250.45

#.##%

.08

8%

 

2.8

280%

m-d-yy

2/3/04

2-3-03

mm dd, yyyy

2/3/03

02 03 03

mmm d, yy

2/3/03

Feb 3, 03

mmmm d, yyyy

2/3/03

February 3, 2003

d mmmm yyyy

2/3/03

3 February 2003

hh"h" mm"m"

1:32 AM

01h 32m

h.mm AM/PM

14:56

2:56 PM

hhmm "hours"

3:15

0315 hours

#?/?

1.25

1 1/4

#?/8

1.25

1 2/8

0*-

250.45

250.45----

*-0

250.45

----250.45

0.00E+00

10000

1.00E+04

##0.0E+0

10000

10.0E+03

##0.0E-0

10000

100.0E-6

Note: Be careful to use the placeholders # and 0 correctly. The # placeholder is used to indicate optional preceding or following zeros, while 0 is used for mandatory zeros. For example, 0.0# is correct, ensuring that a zero is placed in the tenths place. The similar format 0.#0 is incorrect because a zero is mandatory if a hundredth is specified as in .01.

你可能感兴趣的:(mstr,MicroStrategy)