Edit

Excel.NumberFormatCategory enum

Represents a category of number formats.

Remarks

[Api set: ExcelApi 1.12]

Fields

accounting = "Accounting"

Accounting formats line up the currency symbols and decimal points in a column.

  • [Api set: ExcelApi 1.12]
currency = "Currency"

Currency formats are used for general monetary values. Use Accounting formats to align decimal points in a column.

  • [Api set: ExcelApi 1.12]
custom = "Custom"

A custom format that is not a part of any category.

  • [Api set: ExcelApi 1.12]
date = "Date"

Date formats display date and time serial numbers as date values. Date formats that begin with an asterisk (*) respond to changes in regional date and time settings that are specified for the operating system. Formats without an asterisk are not affected by operating system settings.

  • [Api set: ExcelApi 1.12]
fraction = "Fraction"

Fraction formats display the cell value as a whole number with the remainder rounded to the nearest fraction value.

  • [Api set: ExcelApi 1.12]
general = "General"

General format cells have no specific number format.

  • [Api set: ExcelApi 1.12]
number = "Number"

Number is used for general display of numbers. Currency and Accounting offer specialized formatting for monetary value.

  • [Api set: ExcelApi 1.12]
percentage = "Percentage"

Percentage formats multiply the cell value by 100 and displays the result with a percent symbol.

  • [Api set: ExcelApi 1.12]
scientific = "Scientific"

Scientific formats display the cell value as a number between 1 and 10 multiplied by a power of 10.

  • [Api set: ExcelApi 1.12]
special = "Special"

Special formats are useful for tracking list and database values.

  • [Api set: ExcelApi 1.12]
text = "Text"

Text format cells are treated as text even when a number is in the cell. The cell is displayed exactly as entered.

  • [Api set: ExcelApi 1.12]
time = "Time"

Time formats display date and time serial numbers as date values. Time formats that begin with an asterisk (*) respond to changes in regional date and time settings that are specified for the operating system. Formats without an asterisk are not affected by operating system settings.

  • [Api set: ExcelApi 1.12]