+ Reply to Thread
Results 1 to 4 of 4

string concatenation

  1. #1
    Registered User
    Join Date
    09-24-2008
    Location
    Vancouver
    Posts
    9

    string concatenation

    I have two columns that consist of strings that I want to combine in a certain way. The first column has a string that consist of numbers and letters and the second column just has 3 letter codes. What I want to do is get rid of the letters in the numbers string and then add the 3 letter code on to the end of the numbers, and have this placed in a seperate column.

    For example: if column 1 contains "12F51Q" and column 2 contains "ABC" then the result would be "1251 ABC". Is this possible??
    Last edited by VBA Noob; 12-02-2008 at 05:08 PM. Reason: SOLVED

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    U can use this user define function.


    Please Login or Register  to view this content.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    string concatenation

    If the alphanumeric cell will ALWAYS be 6 characters...then

    With
    A1 containing a 6-character alphanumeric string....eg 12F51Q
    B1 containaing a text string................eg ABC

    This formula prepends the numbers from A1 to the text of B1
    Please Login or Register  to view this content.
    In the above example, the formula returns: 1251 ABC

    Is that something you can work with?
    Post back if you have more questions.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    09-24-2008
    Location
    Vancouver
    Posts
    9
    thanks, solved

+ 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