Results 1 to 5 of 5

Thread: How to add similar characters in Excel Cells

  1. #1
    Join Date
    Jan 2012
    Posts
    24

    How to add similar characters in Excel Cells

    I want to add the suffix "scc" into the contiguous cells of several columns on an existing Excel spreadsheet. There is existing data (alpha/numeric) in each of the cells already, so the scc suffix would be added to the right of the existing entries. I'm trying to avoid having to enter each suffix into each cell individually. I have Excel 2002 and Windows XP Professional.

  2. #2
    Join Date
    Aug 2011
    Posts
    460

    Re: How to add similar characters in Excel Cells

    Use this formula. This will be helpful for you. Try =Sheet1!A1&"scc" copy down/across, then copy and paste special as values in place , finally replace the old values with the new. You can also format the cell and add the text around the number so the value stays a number vs text by added a text string.

  3. #3
    Join Date
    Aug 2011
    Posts
    564

    Re: How to add similar characters in Excel Cells

    Select the range and run:
    Code:
    Sub AddSuffix()
    Dim cell As Range
    Application.ScreenUpdating = False
    For Each cell In Selection
    With cell
    If Not .HasFormula Then
    .Value = .Value & "scc"
    End If
    End With
    Next
    Application.ScreenUpdating = True
    End Sub

  4. #4
    Join Date
    Aug 2011
    Posts
    580

    Re: How to add similar characters in Excel Cells

    And to give you more options like a choice of text and left or right addition
    Code:
    Sub Add_Text()
    Dim Cell As Range
    Dim moretext As String
    Dim thisrng As Range
    On Error GoTo endit
    whichside = InputBox("Left = 1 or Right =2")
    Set thisrng = Range(ActiveCell.Address & "," & Selection.Address) _
    .SpecialCells(xlCellTypeConstants, xlTextValues)
    moretext = InputBox("Enter your Text")
    If whichside = 1 Then
    For Each Cell In thisrng
    Cell.Value = moretext & Cell.Value
    Next
    Else
    For Each Cell In thisrng
    Cell.Value = Cell.Value & moretext
    Next
    End If
    Exit Sub
    endit:
    MsgBox "only formulas in range"
    End Sub

  5. #5
    Join Date
    Aug 2011
    Posts
    540

    Re: How to add similar characters in Excel Cells

    I am trying to add LDM- To column which has exsisting data. Below is what I expected.
    • CELE-315 SHOULD BECOME LDM-CELE-320BX
    • CELE-315BX SHOULD BECOME LDM-CELE-315BX

Similar Threads

  1. Replies: 3
    Last Post: 14-01-2014, 09:44 AM
  2. How to renumber cells in Microsoft Excel
    By Weslee in forum MS Office Support
    Replies: 2
    Last Post: 24-01-2012, 05:25 PM
  3. Delete all Even cells in Excel
    By CAILYN in forum Windows Software
    Replies: 4
    Last Post: 24-06-2009, 11:26 PM
  4. Can't insert cells in Excel
    By Xavier1234 in forum Windows Software
    Replies: 3
    Last Post: 06-06-2009, 07:46 PM
  5. Excel Numbering of identical cells
    By Bullnettles in forum Windows Software
    Replies: 6
    Last Post: 07-04-2009, 10:51 AM

Tags for this Thread

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
  •  
Page generated in 1,713,555,749.03224 seconds with 17 queries