+ Reply to Thread
Results 1 to 9 of 9

Adding a symbol

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Adding a symbol

    I am wondering if there is a way to add a symbol in the same place in multiple rows using a formula.

    EX: 0010055C
    0010260C
    0010860C

    I need to add a "-" (dash) after the first three digits, so it looks like this:
    001-0055C
    001-0260C
    001-0860C

    There are 1354 rows I need to do this in, so if there is a formula it would help out a lot!
    Thank you.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Adding a symbol

    Try a formula in an adjescent column

    =REPLACE(A1,4,0,"-")

  3. #3
    Registered User
    Join Date
    04-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Adding a symbol

    Jonmo1,

    That works for one row, but is there a way to do multiple at a time?

    I tried this formula:
    =REPLACE(A2:A10,4,0,"-")

    Once I typed the "A2" part of the formula I would drag the blue box that surrounds the cell down to add more rows. After the formula is done I would hit enter but only A2 would be how I need it.

    Thanks for your help.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Adding a symbol

    Just put the formula in one cell.
    =REPLACE(A2,4,0,"-")

    Then fill it down, the A2 will change to A3 then A4 as the formual is filled down.

  5. #5
    Registered User
    Join Date
    04-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Adding a symbol

    It worked! Thank you so much for your help!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Adding a symbol

    Great, glad to help.

  7. #7
    Registered User
    Join Date
    04-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Adding a symbol

    Actually,

    Now when I'm actually trying to replace the old column, without the dashes, with the new column, with the dashes, it won't let me because I'm deleting the building blocks for the formula that I used. So, if I delete column A and then paste the new column to column A it says "REF". Is there a way arround that?

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Adding a symbol

    Copy the column with the formulas
    PasteSpecial-Values onto the original column
    Delete the column with the formulas.

  9. #9
    Registered User
    Join Date
    04-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Adding a symbol

    Wonderful. Thank you.

+ 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