+ Reply to Thread
Results 1 to 2 of 2

Copy cells into range of cells until cell change

  1. #1
    mdeanda
    Guest

    Copy cells into range of cells until cell change

    In column C is the name of an employee follwowed by lines of data for
    that employee with no further data in column C until the next employee. This
    sequence repeats itself for 48,000 lines.
    Is there a formula/macro that will copy the employee name into the next
    row of column C until the name changes and then repeat for the next name?


  2. #2
    bj
    Guest

    RE: Copy cells into range of cells until cell change

    A brute force macro would be something like

    sub nmfill()
    nm=cells(1,3)
    for r = 2 to 48000
    if cells(r,3)="" then cells(r,3)=nm else nm = cells(r,3)
    next r
    end sub

    "mdeanda" wrote:

    > In column C is the name of an employee follwowed by lines of data for
    > that employee with no further data in column C until the next employee. This
    > sequence repeats itself for 48,000 lines.
    > Is there a formula/macro that will copy the employee name into the next
    > row of column C until the name changes and then repeat for the next name?
    >


+ 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