+ Reply to Thread
Results 1 to 5 of 5

Count Letters/Hyphenate?

  1. #1
    Registered User
    Join Date
    06-08-2007
    Location
    Scotland...Lagos...Moscow!
    Posts
    57

    Count Letters/Hyphenate?

    I've got some 40-odd thousand cells in a single column (B) in Excel with data in them.... it's in the somewhat random looking format below.

    FDV0002
    PI7502/1
    PSHH7502

    What I need to do (in column C) is add 1- before them all, then, at the end of the letters add another dash..... so the examples above would end up:

    1-FDV-0002
    1-PI-7502/1
    1-PSHH-7502

    Many thanks to anyone who can help......

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Count Letters/Hyphenate?

    Hi
    one of the forum gurus could probably do this with a formula, but I resorted to a macro
    it should copy your new values into column c, begining at the first row

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-08-2007
    Location
    Scotland...Lagos...Moscow!
    Posts
    57

    Re: Count Letters/Hyphenate?

    That is very nearly perfect, thanks. I've obviously got to hightlight the range required, but the sheet has a header row and the code is moving the first result from B2 up to cell C1, so every result is a cell too high........

  4. #4
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Count Letters/Hyphenate?

    Hi
    just change y=1 to y=2 on the second row - this sets the row in column c to copy the first value to

  5. #5
    Registered User
    Join Date
    06-08-2007
    Location
    Scotland...Lagos...Moscow!
    Posts
    57

    Re: Count Letters/Hyphenate?

    That is perfect now, thank you so much.......

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count sum of letters from the right in a cell
    By Gunilla in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-24-2012, 12:38 PM
  2. Count Letters in Range
    By rajuabju in forum Excel General
    Replies: 10
    Last Post: 07-20-2009, 08:48 PM
  3. count letters
    By kristygrippo in forum Excel General
    Replies: 3
    Last Post: 04-07-2009, 03:02 PM
  4. How do i count numbers and letters to find a total count of all
    By Linda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2005, 12:55 PM
  5. Count letters
    By JIM.H. in forum Excel General
    Replies: 4
    Last Post: 07-04-2005, 02:05 AM

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