Formatting numbers, dates, etc

Formatting data is very straightforward. You create a 'formatter' and a style to take advantage of that formatter, then apply that style to any cells that need it.

If you don't know what a 'format' should contain, open Excel and go to the cell formatter.

There you should see a list of different predefined formats - choose or create as you feel necessary.

Once you have the format how you'd like, click on the 'Custom' option. This will have the code that youhad selected/setup in the 'Type' box. Just copy and paste that code into the 'format' property.

Note that the currency formatter could also have been done as follows:

This would allow the reuse of the currency number format by multiple formatters.

Last updated