Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=LEFT(A1,LEN(A1)-1)
-- David Biddulph "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! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=--LEFT(A1,LEN(A1)-1) and copy down
-- Gary''s Student - gsnu200802 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
You can have a macri if you want but put this in an adjacent column and double clivk the fill handle and it will fill down as far as there are data in an adjacent column and remove the last character. =LEFT(A1,LEN(A1)-1)+0 Mike "K Drier" wrote: 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! |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This worked Perfectly!!! Thank you so much!
"Mike H" wrote: Hi, You can have a macri if you want but put this in an adjacent column and double clivk the fill handle and it will fill down as far as there are data in an adjacent column and remove the last character. =LEFT(A1,LEN(A1)-1)+0 Mike "K Drier" wrote: 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! |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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! |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Given that the values being modified are numbers with any alpha characters
only at the end, you can shorten your code to this... 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(.Cells(i, "A").Value) Next End With -- Rick (MVP - Excel) "Bob Phillips" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
removing alpha | Excel Discussion (Misc queries) | |||
add alpha letter to column of numbers | New Users to Excel | |||
How do I change my column headings from numbers to alpha | Excel Discussion (Misc queries) | |||
change column heading names from numbers to alpha characters | Excel Discussion (Misc queries) | |||
change Excel column headings from numbers to alpha characters | Excel Worksheet Functions |