Sharid
Well-known Member
- Joined
- Apr 22, 2007
- Messages
- 1,066
- Office Version
- 2016
- Platform
- Windows
I want to delete any rows that have duplicates in Sheet3 column B to the last row with data in it starting from row 2.
However it needs to ignore any blank cells in column B and NOT delete them. As I tried excel's delete duplicates and it was taking the blank cells and also deleting them. I tried to write a vba code, but it would only look for duplicates until it reached the first blank cell. So if column B had data Row 1 to 100 and cell B30 was empty my code only check upto B2 to B30. I need one that would do the lot.
However it needs to ignore any blank cells in column B and NOT delete them. As I tried excel's delete duplicates and it was taking the blank cells and also deleting them. I tried to write a vba code, but it would only look for duplicates until it reached the first blank cell. So if column B had data Row 1 to 100 and cell B30 was empty my code only check upto B2 to B30. I need one that would do the lot.