+ Reply to Thread
Results 1 to 6 of 6

Make the same change to all cells in a column

  1. #1
    Registered User
    Join Date
    09-16-2010
    Location
    toronto, ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Make the same change to all cells in a column

    In Excel, how do I add the same letters to each cell.

    For example, I have a list of letters. (a b c d e f g h)

    I want to add (.tsx) to each letter to become

    a.tsx
    b.tsx
    c.tsx
    d.tsx

    How am i able to do this?

    Thanks,

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Re: Make the same change to all cells in a column

    Put the letters in your cells then highlight them and run this

    Please Login or Register  to view this content.
    Cheers
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  3. #3
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Re: Make the same change to all cells in a column

    Sorry the sub needs a name of course

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-16-2010
    Location
    toronto, ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Make the same change to all cells in a column

    Hi,

    What would be the code if I wanted to do the opposite. For example remove .tsx from all cells that have .tsx at the end?

    I appreciate the help

  5. #5
    Registered User
    Join Date
    09-16-2010
    Location
    toronto, ontario
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Make the same change to all cells in a column

    nvm I guess I can just use replace .tsx with blank..haha

    thanks for the help!

    but out of curiosity what would be the VBA code?

  6. #6
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Thumbs up Re: Make the same change to all cells in a column

    Hi Mate

    it would be something like this:

    Please Login or Register  to view this content.
    It basically saying

    Take the cell value
    Then take the letter to the left
    But only take the letters that are before and including the length of the string (less 4 becuase ".tsx" is 4 characters)

    i hope thats clear?

    please feel free to leave some feedback by clicking on the scales inthe top right

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.6.0 RC 1