Hi,
I have a spreadsheet with data in columns A and B. In both columns the data is sporatic, meaning most cells are empty, some have data, and the ones that do have data are pretty random.
I need code to look at a rows from a cell that has a value in column A to 1 row above the next cell in column A that has a value. Then within that range, if all cells in column B are empty then all rows within the range should be deleted, but if there is anything in any of the cells in column B then the whole range should stay. Then move on to the next range and repeat.
Let me know if I'm not making any sense. It seems like a straight forward macro, but I can't figure out what to do.
I have a spreadsheet with data in columns A and B. In both columns the data is sporatic, meaning most cells are empty, some have data, and the ones that do have data are pretty random.
I need code to look at a rows from a cell that has a value in column A to 1 row above the next cell in column A that has a value. Then within that range, if all cells in column B are empty then all rows within the range should be deleted, but if there is anything in any of the cells in column B then the whole range should stay. Then move on to the next range and repeat.
Let me know if I'm not making any sense. It seems like a straight forward macro, but I can't figure out what to do.