Forum Discussion
Andrew Meldrum
Aug 16, 2018Copper Contributor
Formatting in Excel
I am trying to format a cell so the output looks like C23-569-789 when the following is entered into the cell c23569789. I can't seem to get it to work because of the leading Alpha. Help.
SergeiBaklan
Aug 16, 2018Diamond Contributor
Yes, you can't format the text such way
Andrew Meldrum
Aug 16, 2018Copper Contributor
I am really surprised it is a NO.
- SergeiBaklanAug 16, 2018Diamond Contributor
You may use VBA to transform the text and return result into the same cell
- Andrew MeldrumAug 16, 2018Copper Contributor
do you have a suggestion on VBA?
- SergeiBaklanAug 16, 2018Diamond Contributor
Andrew, I'm not an expert in VBA. On the other hand if nobody else suggests the code I believe you may google for something similar, it shall be relatively simple code.