Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default removal of first digit on left in cell

I have a row of numbers that have one to many zero's. I need to remove the
first
zero on the left. Can this be done by a formula?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default removal of first digit on left in cell

Penny,

With leading zeroes I assume these must be text. If they er try this

=MID(A1,2,LEN(A1))

Mike

"Penny" wrote:

I have a row of numbers that have one to many zero's. I need to remove the
first
zero on the left. Can this be done by a formula?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default removal of first digit on left in cell

Sure, just use the following formula in another column, then copy from there
and paste special as values in the column with the error.

If A5:A3897 is the column with one too many zero on the left side, and
column I is empty, use the following formula in I5, then fill down to I3897.

=RIGHT(TRIM(A5),LEN(TRIM(A5))-1)

The TRIM function is included in case there's any leading/trailing spaces in
the values.

--
Thanks,

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
"Penny" wrote in message
...
I have a row of numbers that have one to many zero's. I need to remove the
first
zero on the left. Can this be done by a formula?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default removal of first digit on left in cell

Numbers don't have leading zeros unless they are text.

Maybe they are numbers just formatted that way like Custom format of 000000

will return 001234 if 4 digits in cell. Remove one 0 from the formatting.



Gord Dibben MS Excel MVP

On Tue, 20 Jan 2009 13:48:04 -0800, Penny
wrote:

I have a row of numbers that have one to many zero's. I need to remove the
first
zero on the left. Can this be done by a formula?


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
conditional format on first & last digit on 3 digit cell data caprey New Users to Excel 3 December 17th 08 05:24 PM
OF A 4 DIGIT NUMBER - RETURN THE SECOND CHARACTER FROM LEFT BIGE Excel Programming 7 April 4th 08 06:32 AM
Use 2nd digit from the left in cell contents for vlookup Pierre Excel Worksheet Functions 4 December 5th 06 06:40 PM
sorting alpha numeric list by first left digit kaduna New Users to Excel 6 January 13th 06 11:10 PM
Color a single digit in a mult-digit number cell Phyllis Excel Discussion (Misc queries) 6 November 17th 05 12:46 AM


All times are GMT +1. The time now is 11:04 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"