Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
00456 Tickford Dr.----456 Tickford Dr.
0785 Fort St.----------785 Fort St. 000309 Old Rock Dr.--309 Old Rock Dr. How do I remove the leading zeros for these addresses? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Say your first address is in A1. Use this formula:
=SUBSTITUTE(SUBSTITUTE(TRIM(SUBSTITUTE(SUBSTITUTE( A1," ","%"),"0"," "))," ","0"),"%"," ") This will convert existing spaces to percent signs, then convert zeros to spaces so it can trim the leading spaces. Then it replaces the spaces with zeros and the percent signs with spaces. Therefore, if any of your addresses have percent signs in them for any reason, this wouldn't work. You'd have to choose another character to change the original spaces to, like ~ or ^ or somesuch. There might be an easier way to do this, but this should work. -- Mike Lee McKinney,TX USA "ichihina" wrote: 00456 Tickford Dr.----456 Tickford Dr. 0785 Fort St.----------785 Fort St. 000309 Old Rock Dr.--309 Old Rock Dr. How do I remove the leading zeros for these addresses? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=VALUE(LEFT(A2,FIND(" ",A2)-1))&MID(A2,FIND(" ",A2),255)
"ichihina" wrote: 00456 Tickford Dr.----456 Tickford Dr. 0785 Fort St.----------785 Fort St. 000309 Old Rock Dr.--309 Old Rock Dr. How do I remove the leading zeros for these addresses? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Remove leading zeros from column | Excel Discussion (Misc queries) | |||
How to remove leading zeros using excel 2000 | Excel Discussion (Misc queries) | |||
remove leading zeros from text strings | Excel Worksheet Functions | |||
Leading zeros | Excel Discussion (Misc queries) | |||
save text field w/ leading zeros in .csv format & not lose zeros? | Excel Discussion (Misc queries) |