+ Reply to Thread
Results 1 to 11 of 11

add underscore in between letter and number

  1. #1
    Registered User
    Join Date
    01-29-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    add underscore in between letter and number

    I dont know very much about excel and have searched all over Google for half the day tired of wasting time.
    I have hundreds of columns that look like this

    01A
    01B
    01C
    01D
    02A ect.....

    I need to add an underscore in between the letter and number like this

    01_A
    01_B ect......

    any help would be greatly appreciated,
    Last edited by thatguy2012; 01-29-2009 at 05:18 PM. Reason: needs to read the posting rules

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: need a little help

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: add underscore in between letter and number

    Thanks for fixing the title...

    are the consistently 2-digits, underscore, 1 or more letters...

    If yes,

    try =REPLACE(A1,3,0,"_")

    where A1 contains first item to change...

    You can then copy|Paste Special >> Values over original if desired.

  4. #4
    Registered User
    Join Date
    01-29-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: add underscore in between letter and number

    This kind of works but not really it will require me to change the formula for each cell, when I copy and paste special it just ends up

    01_A
    01_A
    01_A
    01_A
    01_A

    yes there will be two digits they run in sets 01A-D, 02A-D..... and so on I really just need to add the underscore in between the number and letter

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: add underscore in between letter and number

    You need to enter the formula in a cell adjacent to the top-most code... then copy that formula down by double-clicking the little black square at the bottom right corner of the cell with the formula in it. It should create the new code with the underscore in each cell below.

    Then you select this new column, copy it... go to the old column and go to Edit|Paste Special and select Values.

    it should look like this:

    01_A
    01_B
    01_C
    01_D
    02_A
    etc...

  6. #6
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379

    Re: add underscore in between letter and number

    Can you post an example workbook, NBVC's formula should work fine.

  7. #7
    Registered User
    Join Date
    01-29-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: add underscore in between letter and number

    Here ya go, the column in question is J.
    Attached Files Attached Files

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: add underscore in between letter and number

    See attached..

    First I entered formula in L4 and copied it down to L11.

    Then I selected and copied L4:L11.

    Went to J4.

    Went to Edit|Paste Special and selected Values.

    Click Ok and presto.

    Now you can delete column L entries.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379

    Re: add underscore in between letter and number

    Ok, I have updated the file the first sheet contains the formula before the copy and paste special, the second contains it after the copy and paste special.

    Not sure where the problem lies, let me know if that is ok.

    EDIT: Beaten to it! But did exactly the same as above and worked for me too.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    01-29-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: add underscore in between letter and number

    It works I just have to go into every worksheet separately. Its faster than the way I was doing it.

    Thank you

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: add underscore in between letter and number

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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