A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Leading zero's in text join



 
 
Thread Tools Display Modes
  #1  
Old March 24th, 2004, 09:24 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Leading zero's in text join

Hi
if your zip code has 5 digits try
=A1 & " " & B1 & ", " & TEXT(C1,"00000")

--
Regards
Frank Kabel
Frankfurt, Germany


Raymond Pistey Jr wrote:
I have 4 colums a,b,c,d

I use A1&" "&B1&", "&C1 in colum d to combine the text into one cell.
(city, state and zip) My problem is that colum c is the zip code cell
and it's formatted that way, when it combines to colum d it strips
the leading zero off the zips. is there a way to format the '
apostrophe in and where?

thanks

ray pistey


  #2  
Old March 24th, 2004, 09:25 PM
Arvi Laanemets
external usenet poster
 
Posts: n/a
Default Leading zero's in text join

Hi

Try something like
=A1&" "&B1&" "&TEXT(C1,"0000000000")


--
(Don't use my reply address - it's spam-trap)

Arvi Laanemets


"Raymond Pistey Jr" wrote in message
...
I have 4 colums a,b,c,d

I use A1&" "&B1&", "&C1 in colum d to combine the text into one cell.

(city,
state and zip) My problem is that colum c is the zip code cell and it's
formatted that way, when it combines to colum d it strips the leading zero
off the zips. is there a way to format the ' apostrophe in and where?

thanks

ray pistey




  #3  
Old March 24th, 2004, 10:22 PM
Harald Staff
external usenet poster
 
Posts: n/a
Default Leading zero's in text join

Hi Ray

Crossposting from a pre-dated computer is not nice. Simple stuff like this
is easily solved in a single newsgroup. Now we have to watch this thread on
top of our newsreaders in all groups the next two days, or spend lots of
time removing it, each one of us. Don't do it again please.

Best wishes Harald


  #4  
Old March 24th, 2004, 11:18 PM
Robert McCurdy
external usenet poster
 
Posts: n/a
Default Leading zero's in text join

Ray, how did you get Time Travel?


"Raymond Pistey Jr" wrote in message ...
I have 4 colums a,b,c,d

I use A1&" "&B1&", "&C1 in colum d to combine the text into one cell. (city,
state and zip) My problem is that colum c is the zip code cell and it's
formatted that way, when it combines to colum d it strips the leading zero
off the zips. is there a way to format the ' apostrophe in and where?

thanks

ray pistey




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.631 / Virus Database: 404 - Release Date: 17/03/2004


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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