Forum Discussion
TommyD500
Apr 07, 2022Copper Contributor
Use multiple cells on one sheet to delete cells with same value on another sheet
Sheet A has a long list of numbers (each cell in one column has a unique number) that are "bad" numbers. Each month I generate a separate Sheet B in the same format, but I need to quickly search and remove any of the occurrences of the numbers on Sheet A. Using the Find/Replace to search each number individually takes way too long! Any suggestions for how to quickly find and delete any occurrences of the numbers on Sheet A, from Sheet B?
Let's say the list on Sheet A is in A2:A1000, and the list on Sheet B is in D2 and down.
In E2 (or another cell in row 2) on Sheet2, enter the formula
=ISNUMBER(MATCH(D2,'Sheet A'!$A$2:$A$1000,0))
(use the actual sheet name and range)
Fill down.
You can now filter the column with the formulas on the value TRUE.
Then delete the visible cells in column B.
Turn the filter off.
2 Replies
Sort By
Let's say the list on Sheet A is in A2:A1000, and the list on Sheet B is in D2 and down.
In E2 (or another cell in row 2) on Sheet2, enter the formula
=ISNUMBER(MATCH(D2,'Sheet A'!$A$2:$A$1000,0))
(use the actual sheet name and range)
Fill down.
You can now filter the column with the formulas on the value TRUE.
Then delete the visible cells in column B.
Turn the filter off.
- TommyD500Copper Contributor
HansVogelaar fantastic! Thank you so much!!