Forum Discussion

wcollette5's avatar
wcollette5
Copper Contributor
Nov 08, 2018
Solved

Problems with formatting text within a cell.

I am trying to take a location number ( example L4027) and have it appear in the cell as L4-027. Is there a formula that I could use to do this? 
  • Detlef_Lewin's avatar
    Detlef_Lewin
    Nov 08, 2018

    Then it would be:

    =REPLACE(IF(LEN(A2)=6,REPLACE(A2,6,0,"-"),A2),3,0,"-")