easy way to change text in cell A1 055-9578005 to (055)957-8005 and vise versa..
Thanks!!
easy way to change text in cell A1 055-9578005 to (055)957-8005 and vise versa..
Thanks!!
If that really is what your cell contents look like, then they are text entries, not numeric, so that kind of formatting will have no affect on them. You will need to convert them back to numbers 1st
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Does this do what you are wanting? FYI: The apparent line feeds are what the code does to the below grid. The actual data is all one line in each cell.
Row\Col A B C 1055-9578005 (055)957-8005 In B1 :=TEXT(--LEFT(SUBSTITUTE($A1,"-",REPT(" ",99)),99),"(000)")&TEXT(--RIGHT(SUBSTITUTE($A1,"-",REPT(" ",99)),99),"000-0000") 2(055)957-8005 055-9578005 In B2 :=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($A2,"-",""),")","-"),"(","")
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks