+ Reply to Thread
Results 1 to 3 of 3

merging text fields into 1 field

  1. #1
    Registered User
    Join Date
    03-16-2010
    Location
    Antwerp, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    1

    merging text fields into 1 field

    Dear all,

    How do I merge text fields of 3 different columns into 1 field?
    For example:
    A1: 120071
    B1: 15
    C1: 000
    D1: all 3 fields must be pasted to become: 12007115000

    What if I would like a dot in between each field? --> 120071.15.000

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: merging text fields into 1 field

    You can use this formula to create a text string of those values:

    =A1 & B1 & C1

    If you want them to be an actual number, then use:

    =(A1 & B1 & C1) + 0

    Lastly, for the periods (which will result in a text string):

    =A1 & "." & B1 & "." & C1


    NOTE: You will need to format those cells as General for the formulas to work.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: merging text fields into 1 field

    Quote Originally Posted by Mr DV View Post
    Dear all,

    How do I merge text fields of 3 different columns into 1 field?
    For example:
    A1: 120071
    B1: 15
    C1: 000
    D1: all 3 fields must be pasted to become: 12007115000

    What if I would like a dot in between each field? --> 120071.15.000

    Thanks!
    I think you have posted this on the wrong board. This is OUTLOOK programming I suspect you meant Excel Worksheet functions.

    If so then = A1 & B1 & C1
    or =A1 & "." & B1 & "." & C1


    click on the * Add Reputation if this was useful or entertaining.

+ 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