Hello - I want to format this string in a cell to go from DAAB0708DD001 to DAAB07-08-D-D001 How can I do this using a formula.
Thank you!
Hello - I want to format this string in a cell to go from DAAB0708DD001 to DAAB07-08-D-D001 How can I do this using a formula.
Thank you!
I started with your string (DAAB0708DD001) in Cell A1, then in B1 I used the formula " =LEFT(A1,6)&"-"&MID(A1,7,2)&"-"&MID(A1,9,1)&"-"&MID(A1,10,5)" [without the quotes]. you use the apersand character "&" as concatenating, the create string forumlas to connect the rest with the dash "-" character in between.
Or a shorter version.
=REPLACE(REPLACE(REPLACE(A1,7,0,"-"),10,0,"-"),12,0,"-")