I have a repetitive task at work that needs to be done, and I was hoping that there was a way to build a macro to take care of this. I am attaching a spreadsheet to give you an idea what I need to do.
I have a set of data that always begins on cell B6. The data set can extend for over 1000 rows, with a code beginning with 3L at the bottom (3LV115 in this example). I've been asked to sort the data set by column B (excluding the 3L code from my sort so it stays at the bottom), and then delete any rows that have a cell in column B that starts with the letter m. For this example, I would need to remove m1, m2, m3, and m5. Once these are deleted, I have to sort the data again by column I. Once sorted, I need to delete any rows that have a value of 0 in column I, again excluding the row that has a cell in column B that begins with 3L.
Summarized:
1. Sort data by column B, excluding 3L cell.
2. Delete rows with cells beginning with M in column B.
3. Sort data again by column I, excluding 3L cell.
4. Delete rows with value of 0 in column I, excluding 3L cell.
The 3L code can have longer extensions on it and changes daily, but those two letters always stay constant. Is there a solution to this?
Bookmarks