How to add extra letters .ss to each cell

excelrater

New Member
Joined
May 17, 2019
Messages
21
i would like to certain cells and add a .ss after every word in a cell how would i go about doing this?

For example cell A1 has sa i want it to have sa.ss
and cell A2 has dd i want it to have dd.ss
and cell B1 has ff i want it to have ff.ss
etc..

how would i do this?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
what do you mean by certain cells ??
but by formula you could use

Code:
=A1&".ss"

or it can be done by VBA, but we would need more inforamtion pertaining to "certain cells"
 
Last edited:
Upvote 0
i would like to certain cells and add a .ss after every word in a cell how would i go about doing this?
Will the cells have only one word each in them as your examples seem to indicate or could there be more than one word per cell as the above highlighted text seems to indicate?

Also, what are the "certain cells" you want this functionality applied to?
 
Upvote 0
i would like to certain cells and add a .ss after every word in a cell how would i go about doing this?

For example cell A1 has sa i want it to have sa.ss
and cell A2 has dd i want it to have dd.ss
and cell B1 has ff i want it to have ff.ss
etc..

how would i do this?
Do your cells have only a single "word" as in your three examples or could some of them have multiple words? In the latter case, would you want .ss after each word in the cell?
 
Upvote 0
my cells only have one word in them :)
Then you can add the .ss like this:
Excel Workbook
AB
1sasa.ss
2dddd.ss
3ffff.ss
Sheet1

After you have entered the formula in B1, copy it down to cover all your data cells. Then copy the formula range in col B and paste special values to the same col B range. You can then delete col A if you want to remove the original data.
 
Upvote 0
If this is a display issue only (that is, if no other cells will reference the values with the ".ss"), then you can Custom Format the cells using this pattern...

@".ss"

If the ".ss" has to physically be in the cells, and since you did not tell us the "certain cells" that need this functionality, I have assumed the cells are contiguous and that you will have selected them prior to running this macro...
Code:
Sub AddDotss()
  Selection = Evaluate("IF({1}," & Selection.Address & "&"".ss"")")
End Sub
 
Upvote 0
If this is a display issue only (that is, if no other cells will reference the values with the ".ss"), then you can Custom Format the cells using this pattern...

@".ss"

If the ".ss" has to physically be in the cells, and since you did not tell us the "certain cells" that need this functionality, I have assumed the cells are contiguous and that you will have selected them prior to running this macro...
Code:
Sub AddDotss()
  Selection = Evaluate("IF({1}," & Selection.Address & "&"".ss"")")
End Sub


Thank you it worked much much appreciated.:)
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,969
Members
449,059
Latest member
oculus

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