Hello,
I have two sheets sheetA and sheetB with two names ranges rngA and rngB respectively.
rngA in sheetA has one column and contains cell addresses (like, $F$6, $H$2, $G$3, ...)
rngB in sheetB is say $F$3:$H$9
I need to delete cell addresses in rngA that are not in rngB. For example, $H$2 is outside $F$3:$H$9, so the entire row containing value $H$2 in sheetA should be deleted.
Any help will be appreciated. I have tried intersect (could not get it to work), double loop (not very effective). Thank you for your help.
I have two sheets sheetA and sheetB with two names ranges rngA and rngB respectively.
rngA in sheetA has one column and contains cell addresses (like, $F$6, $H$2, $G$3, ...)
rngB in sheetB is say $F$3:$H$9
I need to delete cell addresses in rngA that are not in rngB. For example, $H$2 is outside $F$3:$H$9, so the entire row containing value $H$2 in sheetA should be deleted.
Any help will be appreciated. I have tried intersect (could not get it to work), double loop (not very effective). Thank you for your help.