Excel - VLOOKUP to filter rows based on numbers

August 2017




Issue


I have list of Incident numbers (both Closed and open) in Column A and only open incident numbers in column B. I should be able to filter the rows based on the numbers in column B so I can mass close the rest of the incidents.

Solution


In column C you can have a VLOOKUP or MATCH

Lets say data in Column A starts from Row 2
and data in column B starts from Row 2
then in C2 you can write

=IF(ISERROR(MATCH(A2,B:B, 0)),
"Close Incident", "Open Incident")

Idea is if number in A2, is not found in column B, then it is a closed incident. If the number is found then it is open incident.

You can drag this formula down and apply filter to see what needs to be done

Note


Thanks to rizvisa1 for this tip on the forum.

Related


Published by aakai1056. Latest update on March 23, 2010 at 08:02 AM by aakai1056.
This document, titled "Excel - VLOOKUP to filter rows based on numbers," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).