Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have ID numbers that are alpha numeric. Some are all numeric formatted as
text, others are actual alpha numeric combinations. Most all have leading "0s". I want to easily eliminate them. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Select the range
edit|replace what: 0 with: 0 replace all REST wrote: I have ID numbers that are alpha numeric. Some are all numeric formatted as text, others are actual alpha numeric combinations. Most all have leading "0s". I want to easily eliminate them. -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Enter this macro:
Sub zeroplucker() For Each r In Selection If Left(r.Value, 1) = "0" Then Do r.Value = Right(r.Value, Len(r.Value) - 1) If Left(r.Value, 1) < "0" Then Exit Do End If Loop End If Next End Sub Then select the cells you want to fix and run the macro. -- Gary's Student "REST" wrote: I have ID numbers that are alpha numeric. Some are all numeric formatted as text, others are actual alpha numeric combinations. Most all have leading "0s". I want to easily eliminate them. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text not continuing to wrap for large block of text in Excel cell | Charts and Charting in Excel | |||
Help with this conditional IF statement | Excel Discussion (Misc queries) | |||
How can I make an excel cell equal to the value of a frame object text box | Excel Worksheet Functions | |||
Formulas dealing with text data | Excel Worksheet Functions | |||
Possible Lookup Table | Excel Worksheet Functions |