ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Autofill 1 column with changing data and changing range (https://www.excelbanter.com/excel-programming/415180-autofill-1-column-changing-data-changing-range.html)

cdclayton

Autofill 1 column with changing data and changing range
 
Excel 2003
I have one column of data which has about 500 values within 4,000
cells. So I have a value in A1 (e.g. "red") and then blanks until A6
(e.g. "blue23") when it changes values and then blanks until A23 (e.g.
"15abc"). What I would like to do is to take the value in A1 ("red")
and copy it down and fill all the blanks and then take the new value
found in A6 ("blue23") and copy that down until it gets to A23, etc.
There is no pattern to the blanks spots or the values. Sometimes I
have 3 blanks between values and other times 23 blanks. In the column
to the right of this data I have values in all cells so I know that I
can doubleclick the value in A1 and get the autofill to work for me.
However, since the data is so much, is there a way to do this through
VBA otherwise I will be clicking for a while.

Thanks,

Charles D Clayton Jr


All times are GMT +1. The time now is 09:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com