#1   Report Post  
Posted to microsoft.public.excel.misc
Ken
 
Posts: n/a
Default Concatenation

I have two columns containing data and want to merge them into a third column
(Col D). Col B is number and Col C is text.

Existing data looks like this:

Col B Col C Col D
300 -0001 300-0001
300 -0002 300-0002
300 -0009 300-0003

I formatted C as CUSTOM (-0000). My concatenation formula (=(B2&"-000"&C2))
works until the Col C value is -0025, -0123, or -1234. These values appear as:

300-00025 (should be 300-0025)
300-00123 (should be 300-0123)
300-01234 (should be 300-1234)

Can someone help me fix this problem? Any help will be greatly appreciated
and thanks in advance.

KenP


  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Concatenation

=B2&TEXT(C2,"0000")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Ken" wrote in message
...
I have two columns containing data and want to merge them into a third

column
(Col D). Col B is number and Col C is text.

Existing data looks like this:

Col B Col C Col D
300 -0001 300-0001
300 -0002 300-0002
300 -0009 300-0003

I formatted C as CUSTOM (-0000). My concatenation formula

(=(B2&"-000"&C2))
works until the Col C value is -0025, -0123, or -1234. These values appear

as:

300-00025 (should be 300-0025)
300-00123 (should be 300-0123)
300-01234 (should be 300-1234)

Can someone help me fix this problem? Any help will be greatly appreciated
and thanks in advance.

KenP




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
Conditional concatenation? Colin Hayes Excel Worksheet Functions 1 February 13th 06 02:15 AM
Concatenation question ~C Excel Worksheet Functions 1 February 2nd 06 11:14 PM
Concatenation issue - Help, PLEASE! RUSH2CROCHET Excel Discussion (Misc queries) 2 October 19th 05 12:15 AM
Excel needs to expand text concatenation capability Steve Schultz Excel Worksheet Functions 4 March 21st 05 11:39 AM
Concatenation formula loses text wrap formatting DFM Excel Discussion (Misc queries) 5 December 27th 04 02:45 PM


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

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"