I have a spreadsheet that contains hundreds of lines, where each line essentially has a bill of material for all components that make up that item. The first column has the master part number, and then the next 20+ columns have the item numbers of each component. I want to flag all the lines that contain certain item numbers, but they could appear in any of columns B-W. I played around for a while and essentially found three workaround solutions, but I feel there has to be a more simple way to make it work. A simplified version of the sheet is here:
Capture.PNG
Columns A-D have the various item numbers. E has a concatenate of the first four columns (necessary for solution 3). The three cells over to the right are the values I want to flag if present in any of the first columns. You can see my possible solutions in the first three lines. They all work, but is there a better way to look up any value from one range inside another range?
Bookmarks