Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Leading Zero with Function

I have a column that displays zipcodes in the Zip Code format, but I am
trying to create a column to the left of that column that will display the
first three digits of the zip code and I am having issues bringing forward
the leading zeros. I have tried custom formatting and am using the following
formula to bring the first three digits over =LEFT(B4005,3); this formula
brings over the first three digits in all cases except the leading zeros. I
am at a loss. Any assistance would be greatly appreciated.

Karen
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Leading Zero with Function

Thank you so much, you guys are great.

"John Bundy" wrote:

You need to add the zeroes with the test statement or format, her is an example
=LEFT(TEXT(A1,"00000"),3)

--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"klmiura" wrote:

I have a column that displays zipcodes in the Zip Code format, but I am
trying to create a column to the left of that column that will display the
first three digits of the zip code and I am having issues bringing forward
the leading zeros. I have tried custom formatting and am using the following
formula to bring the first three digits over =LEFT(B4005,3); this formula
brings over the first three digits in all cases except the leading zeros. I
am at a loss. Any assistance would be greatly appreciated.

Karen

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default Leading Zero with Function

If you check, I think you will find that the zeros are not really there, but
that those cells have a custom format of 00000, which is telling the cell to
make 123 look like 00123. You just need to do the same thing:
=LEFT(TEXT(B2,"00000"),3)


"klmiura" wrote:

I have a column that displays zipcodes in the Zip Code format, but I am
trying to create a column to the left of that column that will display the
first three digits of the zip code and I am having issues bringing forward
the leading zeros. I have tried custom formatting and am using the following
formula to bring the first three digits over =LEFT(B4005,3); this formula
brings over the first three digits in all cases except the leading zeros. I
am at a loss. Any assistance would be greatly appreciated.

Karen

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Leading Zero with Function

Thank you so much!

"BoniM" wrote:

If you check, I think you will find that the zeros are not really there, but
that those cells have a custom format of 00000, which is telling the cell to
make 123 look like 00123. You just need to do the same thing:
=LEFT(TEXT(B2,"00000"),3)


"klmiura" wrote:

I have a column that displays zipcodes in the Zip Code format, but I am
trying to create a column to the left of that column that will display the
first three digits of the zip code and I am having issues bringing forward
the leading zeros. I have tried custom formatting and am using the following
formula to bring the first three digits over =LEFT(B4005,3); this formula
brings over the first three digits in all cases except the leading zeros. I
am at a loss. Any assistance would be greatly appreciated.

Karen

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 Zero with Function John Bundy Excel Discussion (Misc queries) 0 March 27th 07 11:58 PM
keep leading zeros when using the paste spec. multiply function Debi Excel Discussion (Misc queries) 4 February 22nd 07 05:41 PM
Keep Leading Zero Sean Timmons Excel Discussion (Misc queries) 11 December 28th 06 05:42 PM
Leading 0's exsam21 Excel Discussion (Misc queries) 5 January 20th 06 06:31 PM
leading 0 cb Excel Worksheet Functions 2 March 13th 05 01:50 PM


All times are GMT +1. The time now is 10:28 AM.

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"