CUSTOM NUMBER FORMA
Number Code
General
Text Code
_
$ - + / ( ) : space
\character
"text"
"text"
Date Code
d
dd
ddd
dddd
mm
mmm
mmmm
mmmmm
yy
yyyy
Time Code
h
hh
mm
ss
[h]
[mm]
[ss]
AM/PM am/pm
Color Code
[Black]
[Red]
[Green]
[White]
[Blue]
[Magenta]
[Cyan]
[Yelllow]
[Color n]
CUSTOM NUMBER FORMAT CODES
Description
General number format
Digit placeholder. This code does not display extra zeros
Digit placeholder. Whether or not the digit is relevant to the value, it will be shown
Thousands separator. A comma followed by a placeholder scales the number by a thousand
This digit placeholder displays the decimal point in a number
Display the number into percentage format. Numbers are multipled by 100 and added % sign at start
Description
Space character modifier. A character to display an empty space equal in size to the specified character
To display the characters in the number. To display any character, enclose the character in quotation marks or precede it with
backslash
Text placeholder
Insert single character around numbers with number format codes
Insert multiple characters around the number with number format codes
Insert multiple characters around the number with number format codes
Display a repeating digit that fills the empty space or column width before actual number in a cell
Description
Day as number without leading zeros (1 - 31)
Day as number with leading zeroes (01 - 31)
Week day as an abbreviation (Mon - Sun)
Displays the day as a full name (Monday - Sunday)
Month as a number without leading zeros (1 - 12)
Month as a number with leading zeroes (01 - 12)
Month as an abbreviation (Jan - Dec)
Display full month name (January - December)
Display months as just their first letter (J - D)
Display last two digit of year (00 - 99)
Display year as a four digit number (1900- 9999)
Description
Hours as a number without leading zeros (0 - 23)
Hours as a number with leading zeros (00 - 23)
Minutes as a number without leading zeros (0 - 59)
Minutes as a number with leading zeros (00 - 59)
Seconds as a number without leading zeros (0 - 59)
Seconds as a number with leading zeros (00 - 59)
Display elapsed time (hours) 1:52 PM as 13
Display elapsed time (minutes) 1:52 PM as 832
Display elapsed time (seconds) 1:52 PM as 49920
Display time based on the twelve hour clock (1:52 PM)
Description
Format characters in the specified colors.
Note that, [Color n] 'n' is a value between 1 and 56 and refers to the nth color in the color plate
S
Sample Format Code Sample Sample Output
General 9879.2 9879.2
# 9879.2 9879
0.00 9879.2 9879.20
#,# 9879.2 9,879
#.## 9879.2 9879.2
0.00% 0.9879 98.79%
Sample Format Code Sample Sample Output
_(#_);(#) -9879.2232 (9879)
$#,# 9879.2232 $9,879
@General 9879.2232 9879.2232
\!General 9879.2232 !9879.2232
# "meters" 400.232 400 meters
General "meters" 400.323 400.323 meters
*-# 9879.2232 ---------------------9879
Sample Format Code Sample Sample Output
d 1-Aug-23 18
dd 1-Aug-23 01
ddd 1-Aug-23 Tue
dddd 1-Aug-23 Tuesday
m 1-Aug-23 8
mm 1-Aug-23 08
mmm 1-Aug-23 Aug
mmmm 1-Aug-23 August
mmmmm 1-Aug-23 A
yy 1-Aug-23 23
yyyy 1-Aug-23 2023
Sample Format Code Sample Sample Output
h 10:08 PM 22
hh 10:08 PM 22
h:m 10:08 PM 22:08
hh:mm 10:08 PM 22:08
h:m:s 10:08 PM 22:8:0
h:mm:ss 10:08 PM 22:08:00
[h]:mm 62:16:39 62:16
[mm]:ss 62:16:39 3736:39
[ss] 62:16:39 224199
h:mm:ss AM/PM 10:08 PM 10:08:00 PM
Sample Format Code Sample Sample Output
[Black]General Sample Text Sample Text
[Red]General Sample Text Sample Text
[Green]General Sample Text Sample Text
[White]General Sample Text Sample Text
[Blue]General Sample Text Sample Text
[Magenta]General Sample Text Sample Text
[Cyan]General Sample Text Sample Text
[Yellow]General Sample Text Sample Text
[Color10]General Sample Text Sample Text
Examples:
To display Date in different Date Formats
8/1/2024 <---------- Date
m/d/yyyy <---------- Date Format Type
Format Output
mdyy 8124
dd-mmm-yyyy 01-Aug-2024
mmm dd, yy Aug 01, 24
dddd, dd mmm, yyyy Thursday, 01 Aug, 2024
mmmm mm-dd-yyyy August 08-01-2024
Examples:
To display Time in different Time Formats
1:12:28 PM <---------- Time
h:mm:ss AM/PM <---------- Time Format Type
Format Output
hmmss 131228
hh:mm:ss 13:12:28
hh:mm "hours" 13:12 hours
hh "hours &" mm "minutes" 13 hours 12 minutes, and 28 seconds
hh:mm AM/PM 01:12 PM