PC Review


Reply
Thread Tools Rate Thread

Cell Formatting to disp. ### numbers

 
 
tusamni
Guest
Posts: n/a
 
      31st Aug 2004
I am trying to format the cells so that it only allows three numbers t
be displayed.

To be more descriptive:

We work with zip codes quite often, but, we only use the first thre
digits.

Someone sent us a xls file with 12000 zip codes, in one column, and
need to know how to make the column show only the first three digits o
all the zip codes..

there is another problem, when I convert them to a numeric value, i
removes the zero in front...ex. 08245, becomes 8245, but i need to kee
that zero in front.

Thanks

-Eri

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
CarlosAntenna
Guest
Posts: n/a
 
      31st Aug 2004

Assuming your zip codes are in column A, you would put the following in
column B
=LEFT(A1,3)

"tusamni >" <<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am trying to format the cells so that it only allows three numbers to
> be displayed.
>
> To be more descriptive:
>
> We work with zip codes quite often, but, we only use the first three
> digits.
>
> Someone sent us a xls file with 12000 zip codes, in one column, and I
> need to know how to make the column show only the first three digits of
> all the zip codes..
>
> there is another problem, when I convert them to a numeric value, it
> removes the zero in front...ex. 08245, becomes 8245, but i need to keep
> that zero in front.
>
> Thanks
>
> -Erik
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
 
tusamni
Guest
Posts: n/a
 
      31st Aug 2004
Thanks!

I can make that work...

what about the removal of the first zero when I convert the zip code
to a numeric value?

Thanks again,

Eri

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
CarlosAntenna
Guest
Posts: n/a
 
      31st Aug 2004
Format column B: format/cells/number/custom/000

You can do both at once by changing the formula to =value(left(a1,3))


"tusamni >" <<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks!
>
> I can make that work...
>
> what about the removal of the first zero when I convert the zip codes
> to a numeric value?
>
> Thanks again,
>
> Erik
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      31st Aug 2004
Are they 5 digit codes that are entered as numbers (not text)?

=left(text(a1,"00000"),3)

so 8245 (= 08245) would return 082.





"tusamni <" wrote:
>
> I am trying to format the cells so that it only allows three numbers to
> be displayed.
>
> To be more descriptive:
>
> We work with zip codes quite often, but, we only use the first three
> digits.
>
> Someone sent us a xls file with 12000 zip codes, in one column, and I
> need to know how to make the column show only the first three digits of
> all the zip codes..
>
> there is another problem, when I convert them to a numeric value, it
> removes the zero in front...ex. 08245, becomes 8245, but i need to keep
> that zero in front.
>
> Thanks
>
> -Erik
>
> ---
> Message posted from http://www.ExcelForum.com/


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
formatting cell numbers DRKENNE Microsoft Excel Discussion 3 3rd Oct 2008 01:33 PM
[Excel '03] check-box menu items and cell context menus don't disp Jack Hoxley [MVP] Microsoft Excel Programming 4 2nd May 2008 05:08 PM
after entering a text in one cell, next cell should disp the entd =?Utf-8?B?U3JpZGhhcg==?= Microsoft Excel Misc 1 17th Aug 2007 02:18 AM
how to rec/disp. file name in a w/s cell with a funtion (Auto) =?Utf-8?B?TW9oYW4gRGUgU2lsdmE=?= Microsoft Excel Misc 1 21st Dec 2005 12:57 AM
formatting numbers in cell =?Utf-8?B?Rm9ybWF0Y2hhbGxlbmdlZA==?= Microsoft Excel Crashes 2 14th Nov 2004 11:23 PM


Features
 

Advertising
 

Newsgroups
 


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