+ Reply to Thread
Results 1 to 3 of 3

How to concatenate columns

  1. #1
    Registered User
    Join Date
    09-20-2006
    Posts
    1

    How to concatenate columns

    Hi all,

    My problem is to concatenate three columns as it is.

    Suppose i have data as following

    fjdkfldklf ca 00123
    jfhdkfdjd mo 01234
    fjkdlfldjk pa 12345


    when i am concatenating above three columns i am not getting starting zeros of the third column, but i need as it is.


    can anyone help about this.
    Last edited by ajkrishna001; 09-20-2006 at 05:09 PM.

  2. #2
    Forum Contributor
    Join Date
    11-16-2004
    Posts
    282

    Convert numeric to text using TEXT function within CONCATENATE function

    Try converting the column with the numeric values to text using the TEXT function within the CONCATENATE function like this (it assumes data is in columns A, B, C):

    =CONCATENATE(A2, B2, TEXT(C2,"00000"))

    Using the text function, you must specifiy the format of the numeric to convert to text. In this example, the numeric value in column C is filled with leading zeros to make it 5-digits in length.

    Hope this helps,
    theDude

  3. #3
    Registered User
    Join Date
    09-19-2006
    Posts
    4
    Hi there,

    what i suggest is u make the third column as Format--->Cells--->Text
    then use the concatenate Function then it works....


    Quote Originally Posted by ajkrishna001
    Hi all,

    My problem is to concatenate three columns as it is.

    Suppose i have data as following

    fjdkfldklf ca 00123
    jfhdkfdjd mo 01234
    fjkdlfldjk pa 12345


    when i am concatenating above three columns i am not getting starting zeros of the third column, but i need as it is.


    can anyone help about this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1