Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
clegge
 
Posts: n/a
Default remove leading zero from a string..


just getting back into excel formulas... this is probally an easy
question....

i basically have a collumn full of account numbers that represent
numeric strings....

if the first position of the string is a zero, i would like to pull it
out... so 01147548 would become 1147548 -- thanks!


--
clegge
------------------------------------------------------------------------
clegge's Profile: http://www.excelforum.com/member.php...o&userid=29927
View this thread: http://www.excelforum.com/showthread...hreadid=496235

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default remove leading zero from a string..

Copy an empty cell, select the numbers and do editpaste special and select
add, then use a format like
General and leading zeros won't show, if you need the numbers to be text you
can use a help column, assume they start in A1 in the first cell use

=IF(LEFT(TRIM(A1))="0",RIGHT(TRIM(A1),LEN(TRIM(A1) )-1),A1)

copy down as long as needed then paste special as values in place, now you
can remove the original column

--
Regards,

Peo Sjoblom

(No private emails please)


"clegge" wrote in
message ...

just getting back into excel formulas... this is probally an easy
question....

i basically have a collumn full of account numbers that represent
numeric strings....

if the first position of the string is a zero, i would like to pull it
out... so 01147548 would become 1147548 -- thanks!


--
clegge
------------------------------------------------------------------------
clegge's Profile:
http://www.excelforum.com/member.php...o&userid=29927
View this thread: http://www.excelforum.com/showthread...hreadid=496235


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
wjohnson
 
Posts: n/a
Default remove leading zero from a string..


If your cell is formated as "General" the leading "0" should disappear
automatically.


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=496235

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
clegge
 
Posts: n/a
Default remove leading zero from a string..


the formula worked great... thanks!!!!!


--
clegge
------------------------------------------------------------------------
clegge's Profile: http://www.excelforum.com/member.php...o&userid=29927
View this thread: http://www.excelforum.com/showthread...hreadid=496235

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I remove leading apostrophes in Excel? Nino Excel Discussion (Misc queries) 8 December 13th 05 12:14 PM
Remove leading space Karidre Excel Worksheet Functions 4 October 24th 05 03:39 PM
Remove last character of text string Grant Excel Worksheet Functions 2 September 29th 05 05:17 PM
Remove text leading zero in text string Cheryl B. Excel Worksheet Functions 5 May 29th 05 07:46 PM
Remove text leading zero in text string Peo Sjoblom Excel Worksheet Functions 0 May 27th 05 09:59 PM


All times are GMT +1. The time now is 07:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"