Format text in cell from XY to X-Y
You can't do this with formatting, but you can use another column with formulas
like:
=if(len(a2)<2,a2,left(a2,1)&"-"&right(a2,1))
ELS wrote:
Hi all,
I have a bunch of cells in a column with two letters. I want to put a dash
(-) inbetween these two letters. Does anyone know how I can do that?? Please
help!
(These are for initials, so, i want to add a dash in place of a middle
initial for those initials that were entered with only two characters.)
So, basically, I want to format the column so that when there are only 2
characters in a cell, a dash will be inserted in the middle. When there are
3 characters in the cell, they will be left alone.
thanks!
--
ELS
--
Dave Peterson
|