+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    03-17-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Name cells using text present in adjacent calls

    Looking for help with automating the following:

    I have data in cells A1:A10 and I'd like to name each cell in A1:A10.

    I'd like to name each cell with the text that I have in the contents of cells B1:B10 and also add a prefix to each. For example:
    In B1:B10 I have
    joe.1999
    joe.2000
    joe.2001
    ....
    joe.2009

    I want the cells in A1.A10 to be named with the text in the adjacent B column row and also affix "boy." to each so the names in A1:A10 now read boy.joe.1999, boy.joe.2000, etc.

    Would love any help on a script for this.
    Thanks!
    Last edited by amexcel; 03-17-2010 at 01:50 PM.

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,163

    Re: Name cells using text present in adjacent calls

    Can't you just overwrite A1 with ="boy."&B1 and copy down to A10?
    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.

  3. #3
    Registered User
    Join Date
    03-17-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Name cells using text present in adjacent calls

    I don't think so - I don't want to fill the cells - I want to name them.

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