tommyleinen
Board Regular
- Joined
- Aug 22, 2009
- Messages
- 74
I have a sheet of data that needs each row to be dealt with a certain way. To assist with this I've added a helper column (U) which is a vlookup to a set of conditions. the cell value from U10 downwards returns a value 1-6. The formula gets pasted into column U, so the next blank cell (usually around 50 - 100 rows down), is where the data ends and this can vary.
1 means delete row
2 means IF L>0 Then clear contents of M and N
3 means IF L>N then make N the value of L, and clear contents of L and M
4 means clear contents of L and M
5 means delete row unless sheetname is Sheet4
6 means clear contents of L and N
I think I can put together the code for 1, apart from making the new active cell to be U of the row after the one deleted.
2-6 look within my capability
Really I need help with 1 and looping through the rows until the next cell is blank.
Any help would be appreciated
1 means delete row
2 means IF L>0 Then clear contents of M and N
3 means IF L>N then make N the value of L, and clear contents of L and M
4 means clear contents of L and M
5 means delete row unless sheetname is Sheet4
6 means clear contents of L and N
I think I can put together the code for 1, apart from making the new active cell to be U of the row after the one deleted.
2-6 look within my capability
Really I need help with 1 and looping through the rows until the next cell is blank.
Any help would be appreciated