+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Need help with a concatenate issue

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    Atlanta Ga.
    MS-Off Ver
    210
    Posts
    61

    Need help with a concatenate issue

    Happy Holidays to all.
    Thanks in advance to all that help.

    I have a list of equipment serial numbers that are in a different format than our main list. See sample of sheet attached. I did a search and replace for the year to convert to a the last two digits. I did a custom number format on the serial number column to make those that are 4 digits to five digits.The first issue is when I do the concatenate I lose the zeros that formatted into the numbers. The second is how do I get the dashes in the correct location.

    Thanks to all that help.
    Attached Files Attached Files
    Last edited by grsnipe; 12-23-2010 at 11:12 AM.

  2. #2
    Registered User
    Join Date
    12-18-2010
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010
    Posts
    79

    Re: Need help with a concatenate issue

    I am puzzled because there is no sign of a concatenation in your spreadsheet.
    David
    Access and Excel Developer | UK

  3. #3
    Registered User
    Join Date
    12-18-2010
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010
    Posts
    79

    Re: Need help with a concatenate issue

    Maybe this does it for you:
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-16-2010
    Location
    Atlanta Ga.
    MS-Off Ver
    210
    Posts
    61

    Re: Need help with a concatenate issue

    Big D,
    Thanks for your quick response.
    Sorry I did not post what I had done just the results.
    What you have shows me what I needed to do.
    Please look at your attached file cells L4:L5. There needs to be a zero between the A and the four digits. All serial numbers should show 5 digits in them.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need help with a concatenate issue

    Try this

    =B3&"-"&RIGHT(C3,2)&"-"&TRIM(D3)&TEXT(E3,"00000")

    Or
    =CONCATENATE(B3,"-",RIGHT(C3,2),"-",TRIM(D3),TEXT(E3,"00000"))

    Both do the same thing.

    Hope this helps
    Last edited by Marcol; 12-23-2010 at 09:51 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Registered User
    Join Date
    08-16-2010
    Location
    Atlanta Ga.
    MS-Off Ver
    210
    Posts
    61

    Re: Need help with a concatenate issue

    Marcol,
    Thanks that took care of the problem.

  7. #7
    Registered User
    Join Date
    08-16-2010
    Location
    Atlanta Ga.
    MS-Off Ver
    210
    Posts
    61

    Re: Need help with a concatenate issue

    Many thanks to both Big D and Marcol for the help with 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