+ Reply to Thread
Results 1 to 7 of 7

Thread: Adding a period to the end of cell contents

  1. #1
    Registered User
    Join Date
    03-01-2010
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2003
    Posts
    12

    Adding a period to the end of cell contents

    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.

  2. #2
    Registered User
    Join Date
    09-26-2009
    Location
    Mississauga, Ontario (Canada)
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Adding a period to the end of cell contents

    Can you give an example?

    Right now from what I'm thinking you could put this in a cell ="."

    Example would help though

  3. #3
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,056

    Re: Adding a period to the end of cell contents

    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

  4. #4
    Registered User
    Join Date
    09-26-2009
    Location
    Mississauga, Ontario (Canada)
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Adding a period to the end of cell contents

    there is the =CONCATENATE(....) formula as well

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Adding a period to the end of cell contents

    there is the =CONCATENATE(....) formula as well
    The & between the two items is essentially concatenating the items....
    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.

  6. #6
    Valued Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    433

    Re: Adding a period to the end of cell contents

    Here is a macro that will do the trick.

    Sub 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
    Let me know if you have any questions

  7. #7
    Registered User
    Join Date
    03-01-2010
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Adding a period to the end of cell contents

    Thanks everyone for your replies! I used the =A1&"." formula and it worked like a charm.

    Nathan

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0