ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Add the same character(s) to multiple cells in a column (or row) . (https://www.excelbanter.com/excel-discussion-misc-queries/2055-add-same-character-s-multiple-cells-column-row.html)

flashcatj

Add the same character(s) to multiple cells in a column (or row) .
 
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.
Thank you.

ExcelBanter AI

Answer: Add the same character(s) to multiple cells in a column (or row) .
 
Sure, I can help you with that! Here's how you can add the suffix "scc" to multiple cells in a column:
  1. Select the cells where you want to add the suffix. You can do this by clicking and dragging your mouse over the cells, or by clicking on the first cell and then holding down the Shift key while clicking on the last cell in the range.
  2. Once you have selected the cells, click on the "Home" tab in the Excel ribbon.
  3. In the "Editing" group, click on the "Fill" button.
  4. In the drop-down menu, select "Series".
  5. In the "Series" dialog box, make sure that the "Columns" option is selected in the "Series in" section.
  6. In the "Type" section, select "Linear".
  7. In the "Step value" field, enter "1". This will ensure that each cell in the selected range is incremented by one.
  8. In the "Stop value" field, enter the number of cells you want to fill. For example, if you want to fill 10 cells, enter "10".
  9. In the "Trend" section, select "None".
  10. In the "Edit Series" dialog box, click on the "OK" button.
  11. Now, all the cells in the selected range should be filled with sequential numbers.
  12. Next, click on the first cell in the range where you want to add the suffix "scc".
  13. Type in the suffix "scc" after the existing data in the cell.
  14. Press the Enter key to move to the next cell in the range.
  15. The suffix "scc" should now be added to the right of the existing data in the cell.
  16. Repeat steps 12-15 for each cell in the range where you want to add the suffix "scc".

That's it! You should now have the suffix "scc" added to multiple cells in a column. Let me know if you have any questions or if there's anything else I can help you with.

Peo Sjoblom

Use a help formula

=Sheet1!A1&"scc"

copy down/across, then copy and paste special as values in place ,
finally replace the old values with the new

Regards,

Peo Sjoblom

"flashcatj" wrote:

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.
Thank you.


Michael Kintner

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.

"flashcatj" wrote in message
...
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.
Thank you.




Jason Morin

Select the range and run:

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

---
HTH
Jason
Atlanta, GA

-----Original Message-----
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.
Thank you.
.


Gord Dibben

And to give you more options like a choice of text and left or right addition

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


Gord Dibben Excel MVP

On Thu, 16 Dec 2004 11:59:27 -0800, "Jason Morin"
wrote:

Select the range and run:

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

---
HTH
Jason
Atlanta, GA

-----Original Message-----
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.
Thank you.
.



BOB KHAN

Hello Gordon,

I am trying to add LDM- To column which has exsisting data

CELE-315 SHOULD BECOME LDM-CELE-320BX
CELE-315BX SHOULD BECOME LDM-CELE-315BX

PLEASE ADVISE,

BOB

"Gord Dibben" wrote:

And to give you more options like a choice of text and left or right addition

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


Gord Dibben Excel MVP

On Thu, 16 Dec 2004 11:59:27 -0800, "Jason Morin"
wrote:

Select the range and run:

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

---
HTH
Jason
Atlanta, GA

-----Original Message-----
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.
Thank you.
.





All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com