PC Review


Reply
Thread Tools Rate Thread

Copy cells into range of cells until cell change

 
 
=?Utf-8?B?bWRlYW5kYQ==?=
Guest
Posts: n/a
 
      22nd Apr 2005
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 With Quote
 
 
 
 
=?Utf-8?B?Ymo=?=
Guest
Posts: n/a
 
      22nd Apr 2005
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PLEASE HELP??? copy every other cell value to a range of cells Newbie Microsoft Excel Misc 3 14th May 2010 07:23 PM
change colors in a range of excel cells based on another range of cells Bobbi Muck Microsoft Excel Programming 1 9th Apr 2010 03:47 AM
How to I copy text from a range of cells to another single cell? =?Utf-8?B?V1JU?= Microsoft Excel Misc 2 18th Dec 2005 06:17 AM
How to use macros to copy a range of cells which can exclude some cells which I didn't want to be copied? excelnovice Microsoft Excel Worksheet Functions 2 25th Sep 2005 12:38 AM
copy one cell to range of cells =?Utf-8?B?c2hvdXA=?= Microsoft Excel Programming 2 15th Jun 2005 04:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:18 AM.