
#Excel vba tutorial 114 less code#

Ok, without further confusion, this is probably how you can use the custom cell formatting feature in Microsoft excel. If your formatting codes have less number of parts (say 1 or 2 or 3) excel will use some common sense to find out which ones are for what. Any cell custom format code will be divided in to 4 parts : positive numbers negative numbers zeros text. This is a bit like regular expressions but in entire microsoftish way. for US they would be phone number, ssn, zipcode.Ĭustom: Used for creating your own cell formatting structure. Special: Used for phone number, zipcode, social security number formats depending on the locale you select. Now apart from the built in types General (leave excel to guess the data format), number, currency, accounting (uses the separators, () notation etc.), date, time, percentage, fraction, scientific, text there are 2 interesting types of formating. I thought it would be nice to share them to you all.įirst take a look at how the cell formatting dialog box – number tab looks like: So I started looking for a custom cell format and dug a little deeper to understand those.

Now I do not want to type “0001” in excel, instead I wanted to type 1 and I want excel to convert that to 0001 for me. We wanted to use a consistent message id format.

The other day I had to make an excel sheet for tracking all errors across one of the applications we are doing for our customer.
