excelnewbie1986
New Member
- Joined
- May 16, 2018
- Messages
- 16
Hi everyone,
I have an Excel spreadsheet with a column (column Z) that contains multiple values (C, G, M and S). I would like to create a Macro to delete the rows that contain the value of G in this particular column. So, for example, if cell Z18 has a value of G I'd like the Macro to delete the entire row 18 and move the next row of data up by one row to replace the blank row that's been left by the deletion. I know I can sort the spreadsheet and manually delete rows that contain G, but there are 84,000 rows of data, and over 500 instances of G that I want removing. I've never created a Macro before and would really appreciate your help in guiding me to create the Macro.
Thank you so much!!!
AP
I have an Excel spreadsheet with a column (column Z) that contains multiple values (C, G, M and S). I would like to create a Macro to delete the rows that contain the value of G in this particular column. So, for example, if cell Z18 has a value of G I'd like the Macro to delete the entire row 18 and move the next row of data up by one row to replace the blank row that's been left by the deletion. I know I can sort the spreadsheet and manually delete rows that contain G, but there are 84,000 rows of data, and over 500 instances of G that I want removing. I've never created a Macro before and would really appreciate your help in guiding me to create the Macro.
Thank you so much!!!
AP