Thread
:
Removing an alpha characture from a column of numbers
View Single Post
#
5
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_]
external usenet poster
Posts: 2,420
Removing an alpha characture from a column of numbers
Dim LastRow As Long
Dim i As Long
With ActiveSheet
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = 2 To LastRow
.Cells(i, "A").Value = Val(Left$(.Cells(i, "A").Value,
Len(.Cells(i, "A").Value) - 1))
Next i
End With
--
__________________________________
HTH
Bob
"K Drier" <K
wrote in message
...
I have a column of numbers that end with an alpha character. I need to
remove the alpha character and I'd like to write a macro or formula to do
it
automatically since the column is about 1000 numbers long.
I got the macro to work once, but it won't work again on the balance of
the
column. Would someone please help me figure out what I need to do to make
this an automatic process so I can reuse it at a later date?
Thanks so much!
Reply With Quote
Bob Phillips[_3_]
View Public Profile
Find all posts by Bob Phillips[_3_]