Hi all,
Let me lay out my problem so you can understand what I'm trying to accomplish.
In a given sheet (Sheet1), I have two columns,
A1 and B1 are column headings
column A has names, so let's say A2 = John, A17 = Fred, A47 = Larry, and A91 = Zeus. All cells between the cells mentioned are blank.
Column B has order numbers, and every cell from B2 - B125 has an order number in it.
So my array in question is A1:B125.
What I am trying to do is find a macro that will look in column A and if the cell is blank, copy the name from above. If the cell isn't blank then the cell remains unchanged. This is done until the last row of data is reached. Please note that in the example above the last row of data for column A would be A125 (not A91).
I can actually put together a working macro that would essentially insert a temp column, insert a formula, copy the values of that temp column and then delete the temp column. That just seems like an incredibly inefficient way of doing it.
Any ideas?
Let me lay out my problem so you can understand what I'm trying to accomplish.
In a given sheet (Sheet1), I have two columns,
A1 and B1 are column headings
column A has names, so let's say A2 = John, A17 = Fred, A47 = Larry, and A91 = Zeus. All cells between the cells mentioned are blank.
Column B has order numbers, and every cell from B2 - B125 has an order number in it.
So my array in question is A1:B125.
What I am trying to do is find a macro that will look in column A and if the cell is blank, copy the name from above. If the cell isn't blank then the cell remains unchanged. This is done until the last row of data is reached. Please note that in the example above the last row of data for column A would be A125 (not A91).
I can actually put together a working macro that would essentially insert a temp column, insert a formula, copy the values of that temp column and then delete the temp column. That just seems like an incredibly inefficient way of doing it.
Any ideas?