Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
spreadsheet
if C6 is your number, then in another cell =SUBSTITUTE(C6,RIGHT(C6,2),":" & RIGHT(C6,2)) VBA Sub Adjust() Dim cell As Range Dim text As String For Each cell In Range("A:A").SpecialCells(xlCellTypeConstants) text = cell.Value cell.Value = Replace(text, Right(text, 2), ":" & Right(text, 2)) Next End Sub "Carol Wolfe" wrote: I have a column of 3 and 4 digit numbers. I would like to insert a colon : to the immediate left of the 2 numbers on the far right of the cell. Is there a way to do this easily? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I reformat a 6-digit date to general & look the same? | Excel Discussion (Misc queries) | |||
How to validate a cell to insert from 9 digit number to 13 digit number. | Excel Worksheet Functions | |||
How to validate a cell to insert from 9 digit number to 13 digit number. | Excel Worksheet Functions | |||
Color a single digit in a mult-digit number cell | Excel Discussion (Misc queries) | |||
When we enter a 16 digit number (credit card) the last digit chan. | Excel Discussion (Misc queries) |