Excel number format strings (e.g. "@", "$-409]d-mmm-yy;@") - Complete reference availability?

gb2d picture gb2d · Feb 24, 2011 · Viewed 29.4k times · Source

I'm using Spreadsheet Gear to do some Excel programming. I want more control over number formats and it appears that I need to use the NumberFormat property to achieve this.

I've seen suggestions that you can use "@" to specify a string for example, but can't find a complete reference on this.

I'm guessing it's Excel specific as opposed to Spreadsheet Gear specific.

Can anyone help me to find a full reference, or at least a decent list?

Answer

Thomas picture Thomas · Feb 24, 2011

Here's a list of the Number Format Codes for Excel.