Hello,
I am trying to delete rows if a cell is blank
and also delete rows with the same ID as
the blank cell.
Hello,
I am trying to delete rows if a cell is blank
and also delete rows with the same ID as
the blank cell.
Hi
In the attached file I added some 'helper' columns to check whether a row should be deleted or not.
The first helper column contains a simple formula that just puts the corresponding ID number in it if the associated Name is blank i.e. this helper column contains all the ID numbers that will be removed.
The second helper column then uses a formula to check whether the ID number in column A is found anywhere in the helper column that contains those ID's that will be removed. We can use the simple MATCH function to check this. If an ID number is NOT found, the MATCH function will give a #N/A result. So our formula just has to check if the MATCH is #N/A or not. We use the Excel ISNA function to check for this.
So the second helper column will now show Y for those rows that are to be deleted.
You can use a Filter on this helper column etc etc etc
Now, are you really using Excel 2003 for this????
zeddy
Hi to all.
I came up with this macro:Please Login or Register to view this content.
Thank you. I'll try that later.
Last edited by davesexcel; 02-13-2021 at 04:19 AM.
Works perfectly. Grazie.
Last edited by davesexcel; 02-13-2021 at 04:19 AM.
Glad we were able to help .
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks