Custom Cell Format Examples

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 2

Custom Numeric Formats

Example Custom Format Cell Entry Result


1 0,.0 12500 12.5
0,,.0 "million" 12500000 12.5 million
2 #.## .5 .5
3 #,##0;-#,##0;0;"Enter a number" 1234 1,234
#,##0;-#,##0;0;"Enter a number" -1234 -1,234
#,##0;-#,##0;0;"Enter a number" 0 0
#,##0;-#,##0;0;"Enter a number" text Enter a number
4 0¢ 25 25¢
5 #,##0 "Dollars" 1234 1,234 Dollars
6 #.## \M 1 1.44M
7 #,##0.0°F 98.6 98.6°F
8 ;;; 1234
9 "Acct"\# 00-0000;;;"Don't enter dash" 123456 Acct# 12-3456
"Acct"\# 00-0000;;;"Don't enter dash" 12-3456 Don't enter dash
10 #*. 1234 1234.....................
;;;@*. March March...................
11 ;;;*.@ March ...................March
12 +?? ?/?;[Red]-?? /? -12.75 -12 3/4

Page 1
Custom Date and Time Formats

Custom Format Cell Entry Result


dddd, mmmm d, yyyy 8/23/2007 Thursday, August 23, 2007
mmmm, yyyy 8/23/2007 August, 2007
dddd 8/23/2007 Thursday
mm.dd.yy 8/23/2007 08.23.07
mmddyy 8/23/2007 082307
yymmdd 8/23/2007 070823
[>8/15/05]"OVERDUE!";mm/dd/yy 8/23/2007 OVERDUE!

hhmm "hours" 3:10 PM 1510 hours


hh"h" mm"m" 3:10 PM 15h 10m
[=.5]"12 Noon";[=0]"12 Midnight";h:mm AM/PM 0 12 Midnight
[=.5]"12 Noon";[=0]"12 Midnight";h:mm AM/PM 12:00 12 Noon
[=.5]"12 Noon";[=0]"12 Midnight";h:mm AM/PM 3:10 PM 3:10 PM

Page 2

You might also like