+ Reply to Thread
Results 1 to 2 of 2

Expanding and Filling a Range in a Single Cell

  1. #1
    Registered User
    Join Date
    08-03-2010
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    8

    Expanding and Filling a Range in a Single Cell

    Hi, experts! Thank you in advance for your help

    Here is my scenario:

    I have a worksheet full of cells that have ranges desribed like "C1-C4" or "R30-R50". There could be more than one in each cell or it could be just by itself. I was hoping to write a code so that it expands those ranges and fills them out so therefore it would say "C1, C2, C3, C4" in only that cell. I can manually do it, or I can take the first character, fill it down, copy it and paste it into the cell, but I have hundreds of worksheets like this. Can any of you think of a way of doing this? I was thinking of using the character "-" and writing a code so that it takes the first letter/number combo and it expands it until it reaches the last one, but I'm not quite sure how to do it.

    I'm sorry if that is not very suscinct, but I will answer any questions, if you have any.

    Thank you again for your help!
    -Rachel

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Expanding and Filling a Range in a Single Cell

    Hello AliveNThisMoment,

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    Please supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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