Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
|| cypher ||
 
Posts: n/a
Default How to Concatenate with a text & number

A1 will have a 4 digit number and letter (ex: 1332s)
B1 will have a number between 1 & 999

I am trying to get C1 to concatenate the two, taking the B1 value and
forcing it to take up 3 spaces
EXAMPLE: 1322s002 or 1322s097 or 1322s433

So basically I need to get the number portion from B1 to have 3 place
holders

currently if B1 is less than 100, ie 99 or 72 or 3 or something, C1 shows up
as:
1322s99, or 1322s72, or 1322s3 instead of:
1322s099, 1322s072, and 1322s003

Any ideas out there?

Thanks!!


  #2   Report Post  
Damon Longworth
 
Posts: n/a
Default

Try using the text function:

=a1&TEXT(b1,"000")

--
Damon Longworth

Don't miss out on the 2005 Excel User Conference
www.ExcelUserConference.com


"|| cypher ||" wrote in message
news:1119656441.59adc4a2a6ee8d9e4d973b9a17d55fe0@t eranews...
A1 will have a 4 digit number and letter (ex: 1332s)
B1 will have a number between 1 & 999

I am trying to get C1 to concatenate the two, taking the B1 value and
forcing it to take up 3 spaces
EXAMPLE: 1322s002 or 1322s097 or 1322s433

So basically I need to get the number portion from B1 to have 3 place
holders

currently if B1 is less than 100, ie 99 or 72 or 3 or something, C1 shows
up
as:
1322s99, or 1322s72, or 1322s3 instead of:
1322s099, 1322s072, and 1322s003

Any ideas out there?

Thanks!!




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
How do I concatenate information in Excel and keep the number form DaveAg02 Excel Worksheet Functions 7 May 9th 08 07:44 PM
Format Number to Text Roni Excel Worksheet Functions 2 May 17th 05 03:17 PM
Change Text to a number Brooks W. Excel Worksheet Functions 1 April 28th 05 05:20 AM
Change Text to a number jennifer Excel Worksheet Functions 1 April 27th 05 08:47 PM
returning a text cell based on a number cell Josh7777777 Excel Worksheet Functions 2 November 2nd 04 07:42 PM


All times are GMT +1. The time now is 04:14 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"