Adding Text to Cells

Bill Matt

New Member
Joined
Sep 13, 2006
Messages
2
I am trying to add something to names already in cells in a workbook. Is there a way to select a group of names and text to the names...
Example: Mike, Pat, Bill etc would become Mike-4, PAt-4, Bill-4
I am trying to avoid using the find and replace method because there are over 200 names...
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Here'e one way...enter this into an empty cell... '-4 which will not show the apostrophe in the cell, but will make it text instead of a minus 4.
Then add an empty column to the right of your existing list. Then formula is, say, =A1&$D$1 where D1 contains the '-4. Then copy the results down. This should do the trick, but to "seal the deal" you need to copy the formula column, then edit/paste special, values...to remove the dependence upon the original data cells. HTH /s/ Larry
 
Upvote 0
if you're looking for a macro then;
select cells you want to change then run this code.
Code:
Sub test()
For Each c In Selection
c.Value = c.Value & "-4"
Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top