The help explains the construct of the number format better than I can.

Press F1 and search for the term "Create or delete a custom number format"