Hi guys,
I know almost nothing about writing VBA code, so I'm hoping you all can help me out.
I two arrays of data, O:O and A:M. What I need is a code that, anytime there is a number in say, O3, the numbers in A3:M3 are held constant for the next five cells.
So if you take a look at the attached workbook, O3 has a number, so A3:A7 should all by .00018, B3:B7 should all be .00056, C3:C7 should all be .00067, ect. Since O8 is blank, all of A8:M8 should be blank. Then the code will find another number in O9, so the same thing should happen to A9:A13, and across to M:M.
O14:O18 is blank, so A:M should also be blank for all those rows. The code would then pick up again at O19.
Things may get tricky at O26 because of the #N/A in C26. I can't have C26:C30 populated with an #N/A, instead I need the code to find the previous available value in that column, in this case C24, and populate C26:C30 with that number.
To give you an idea of what it would look like, all of the column in A:M should match pattern in O:O.
A note on the ranges: they need to be named because I'm constantly adding and deleting columns.
Please ask me any questions if I'm being unclear. I'll get back to you immediately as I'll be watching this post.
Bookmarks