Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RJJ RJJ is offline
external usenet poster
 
Posts: 26
Default Adding periods to sentences.

How do I add periods to the ends of sentences in multiple cells at once?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Adding periods to sentences.

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 specialvaluesOKEsc

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





On Thu, 28 Sep 2006 14:34:02 -0700, RJJ wrote:

How do I add periods to the ends of sentences in multiple cells at once?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Adding periods to sentences.

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



"RJJ" wrote:

How do I add periods to the ends of sentences in multiple cells at once?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
building YTD figures by adding to a previous months total axialtilt Excel Discussion (Misc queries) 7 July 24th 06 04:07 PM
adding days jcool12 Excel Discussion (Misc queries) 4 June 14th 06 09:25 AM
calculating number of three month periods between two dates... neil Excel Discussion (Misc queries) 3 May 21st 06 01:52 PM
working out quarters (three-month periods) between two dates [email protected] Excel Worksheet Functions 1 May 17th 06 10:27 AM
adding vertical bars to an embedded chart using VBA Wazooli Excel Discussion (Misc queries) 0 November 15th 05 05:47 PM


All times are GMT +1. The time now is 02:44 PM.

Powered by vBulletin® Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"