+ Reply to Thread
Results 1 to 2 of 2

Concatenate

Hybrid View

  1. #1
    Registered User
    Join Date
    09-08-2009
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003
    Posts
    17

    Concatenate

    Hi

    I have a file that is formatted in text as follows:

    2009113000000000000080928102EUR

    Seperated out it looks as:

    20091130 80928102 EUR

    I need to add the zeros back to the 2nd column (80928102) in excel & save merge the columns back to look the same as the original txt format so I can save the txt file - how can I do this? what formats/concatinations need to be applied???

    Thanks!!! :-)

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

    Re: Excel to txt help!! Concatanate

    With A1:C1 containing these values
    20091130   80928102   EUR
    This formula rebuilds the text string you are looking for:
    D1: =A1&REPT("0",31-SUMPRODUCT(LEN(A1:C1)))&B1&C1
    In the above example, the formula returns:
    2009113000000000000080928102EUR
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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