ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Insert colon in text in cell (https://www.excelbanter.com/excel-discussion-misc-queries/69247-insert-colon-text-cell.html)

Phoenix

Insert colon in text in cell
 

didnt't know what to search to find it on the forum, so here is the
problem.


I need to insert colon to places to the left, like "X12345"="X123:45",

and "X1234"="X12:34" etc.

I'm sure it's a simple answer for you guys, but not for me :confused:


--
Phoenix
------------------------------------------------------------------------
Phoenix's Profile: http://www.excelforum.com/member.php...fo&userid=2921
View this thread: http://www.excelforum.com/showthread...hreadid=507993


Max

Insert colon in text in cell
 
One way, assuming source data in A1 down
put in B1: =LEFT(A1,LEN(A1)-2)&":"&RIGHT(A1,2)
Copy B1 down

Freeze col B with an in-place: Copy Paste special Check "Values" OK
Then delete col A
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Phoenix" wrote in
message ...

didnt't know what to search to find it on the forum, so here is the
problem.


I need to insert colon to places to the left, like "X12345"="X123:45",

and "X1234"="X12:34" etc.

I'm sure it's a simple answer for you guys, but not for me :confused:


--
Phoenix
------------------------------------------------------------------------
Phoenix's Profile:

http://www.excelforum.com/member.php...fo&userid=2921
View this thread: http://www.excelforum.com/showthread...hreadid=507993




Ken Johnson

Insert colon in text in cell
 
Hi Phoenix,
If A1 contains X12345 then =LEFT(A1,LEN(A1)-2) & ":" & RIGHT(A1,2)
pasted into any other cell will result in that cell displaying X123:45

Ken Johnson


Phoenix

Insert colon in text in cell
 

Thanx guys!

Phoenix


--
Phoenix
------------------------------------------------------------------------
Phoenix's Profile: http://www.excelforum.com/member.php...fo&userid=2921
View this thread: http://www.excelforum.com/showthread...hreadid=507993


Max

Insert colon in text in cell
 
You're welcome !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Phoenix" wrote in
message ...

Thanx guys!

Phoenix





All times are GMT +1. The time now is 02:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com