Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default combine text and number with preceeding zeroes

Mac, here is one way
=A1&" 000"&B1&"; "&C1
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 97 & 2000
** remove news from my email address to reply by email **

"mac52187" wrote in message
...
I wish to combine text "ABCD" from first cell with "123" from other cell

and "XYZ" from third cell to display as "ABCD 000123; XYZ"
Can somebody help?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default combine text and number with preceeding zeroes

=A1&" "&TEXT(B1,"0000")&" "&C1

Vaya con Dios,
Chuck, CABGx3


"mac52187" wrote in message
...
Thanks for the reply Paul. But the problem is
I used CONCATENATE(A1," ",B1,"; ",C1) Where B1 is formatted as"000000"
the problem is that the result is ABCD 123; XYZ Where as is need it to be

ABCD 000123; XYZ.( here 123 can be any 6 digit number with preceeding
zeroes)


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default combine text and number with preceeding zeroes

Sorry mac.............

Some musta got lost in the translation............
=A1&" "&TEXT(B1,"000000")&"; "&C1

Vaya con Dios,
Chuck, CABGx3



"CLR" wrote in message
...
=A1&" "&TEXT(B1,"0000")&" "&C1

Vaya con Dios,
Chuck, CABGx3


"mac52187" wrote in message
...
Thanks for the reply Paul. But the problem is
I used CONCATENATE(A1," ",B1,"; ",C1) Where B1 is formatted as"000000"
the problem is that the result is ABCD 123; XYZ Where as is need it to

be
ABCD 000123; XYZ.( here 123 can be any 6 digit number with preceeding
zeroes)




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
convert number to text without losing zeroes DaveK Excel Discussion (Misc queries) 20 May 13th 11 12:07 PM
first number after zeroes in sequence [email protected] Excel Worksheet Functions 4 January 17th 07 06:38 PM
EXCEL DROPS OFF ALL ZEROS PRECEEDING A NUMBER ARTHURG Excel Discussion (Misc queries) 3 July 25th 06 06:10 AM
Combine 2 spreadsheets w/1 common column of data, text and number Ginger Excel Worksheet Functions 0 March 26th 06 11:45 PM
single quote 10-digit number that has leading zeroes & then conca. lorelei739 Excel Worksheet Functions 1 November 5th 04 12:02 AM


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

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"