Hi all,
Is there an easy way to add a period to the end of each cell's contents in a particular column? I have a column with over 500 rows and need to add a period to the end of the data in each row. There must be an easier way to this other than manually, perhaps using VBA?
Thanks!
Nathan
Last edited by ntallman; 05-13-2010 at 12:13 PM.
Can you give an example?
Right now from what I'm thinking you could put this in a cell ="."
Example would help though
One way......assumes data in A1:A500....
Put this formula in B1
=A1&"."
and copy down to row 500 (if you place the cursor on the bottom right of B1 until you see a black "+" and then double click that will copy down automatically)
Now copy column B and use Edit > Paste special > values to convert formulas to values
Now you can delete the original column A
there is the =CONCATENATE(....) formula as well
The & between the two items is essentially concatenating the items....there is the =CONCATENATE(....) formula as well
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Here is a macro that will do the trick.
Let me know if you have any questionsSub AddPeriod() Dim n As Long, LastRow As Long, c As Range, ActiveCol As Integer ActiveCol = ActiveCell.Column LastRow = Cells(65536, ActiveCol).End(xlUp).Row For Each c In Range(Cells(1, ActiveCol), Cells(LastRow, ActiveCol)) If Right(c, 1) <> "." Then c = c & "." Next c End Sub
Thanks everyone for your replies! I used the =A1&"." formula and it worked like a charm.
Nathan
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks