Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default I need to drop some leading zeros

I have a spreadsheet with ID numbers. We only use 6 numbers but the IDs send
to me contain 3 zeros in front I don't need (000051585) How can I format the
numbers to drop off those first 3 zeros?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default I need to drop some leading zeros

Insert a column to the right of your id numbers, and use the following
formula to modify the ID Numbers (Assuming that all the ID's are labels and
not values). Change cell A1 to the starting ID value cell:

=RIGHT(A1,LEN(A1)-3)

Copy the formula down the column to the last ID. Then copy the formula
column and do a PASTE/SPECIAL/VALUES over the original ID column.

Delete the inserted column with the formulas when done.

--
Kevin Backmann


"Cheri" wrote:

I have a spreadsheet with ID numbers. We only use 6 numbers but the IDs send
to me contain 3 zeros in front I don't need (000051585) How can I format the
numbers to drop off those first 3 zeros?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default I need to drop some leading zeros

Isn't there an easier way. I've done the copy cut and paste thing. The
column is formatted as "general"

"Kevin B" wrote:

Insert a column to the right of your id numbers, and use the following
formula to modify the ID Numbers (Assuming that all the ID's are labels and
not values). Change cell A1 to the starting ID value cell:

=RIGHT(A1,LEN(A1)-3)

Copy the formula down the column to the last ID. Then copy the formula
column and do a PASTE/SPECIAL/VALUES over the original ID column.

Delete the inserted column with the formulas when done.

--
Kevin Backmann


"Cheri" wrote:

I have a spreadsheet with ID numbers. We only use 6 numbers but the IDs send
to me contain 3 zeros in front I don't need (000051585) How can I format the
numbers to drop off those first 3 zeros?

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
Leading Zeros [email protected] Excel Discussion (Misc queries) 6 August 3rd 06 06:15 PM
Leading zeros mary Excel Discussion (Misc queries) 1 January 18th 06 01:56 PM
Leading Zeros Karen Excel Discussion (Misc queries) 3 January 10th 06 09:50 PM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM
Leading zeros JC Excel Discussion (Misc queries) 9 February 1st 05 02:33 PM


All times are GMT +1. The time now is 12:19 AM.

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

About Us

"It's about Microsoft Excel"