Adding periods to sentences.

G

Gord Dibben

One sentence per cell and all at once?

Data in A1:A10

Select B1:B10

In B1 enter =A1 & "." then hit CTRL + ENTER

Copy/paste special>values>OK>Esc

Delete original A1:A10.

You could also use a macro if desired.

Select the cells and run.

Sub Add_Text_Right()
Dim cell As Range
Dim moretext As String
Dim thisrng As Range
On Error GoTo justformulas
Set thisrng = Range(ActiveCell.Address & "," & Selection.Address) _
.SpecialCells(xlCellTypeConstants, xlTextValues)
moretext = InputBox("Enter your Text")
For Each cell In thisrng
cell.Value = cell.Value & moretext
Next
Exit Sub
justformulas:
MsgBox "only formulas in range"
End Sub

When the InputBox comes upm enter a period and OK


Gord Dibben MS Excel MVP
 
R

Ricter

In an empty cell, say B1, next to, for example, A1, where your sentence is,
you could enter =A1 & "."

Then you could copy the contents of B1 and Paste Special > Data back into
cell A1.

To do a range of cells, simply copy the formula down the column. Delete the
formula column when you're satisfied your sentences are how you want them.
Backup your spreadsheet before doing this of course...
 
Top