Hi there, is it possible to have a VBA code to format numbers to 2 different formats depending on the first digit, I did some basic coding 40 odd years ago, and would probably have used something like the following, If first character is 0, then use format 0000-000-000 else use format 0000-0000, not sure how or if possible to do this with VBA any help greatly appreciated. As an aside, these are phone number formats that we use in an Excel spreadsheet, some customers don't have a mobile number so we have to use a land line number. Thank you for you time