VLOOKUP multiple search locations

Copper Contributor

I'm trying to get excel to VLOOKUP multiple columns and return a result from 1 column but cant work it out.

 

in detail:

Sheet 1 holds an overview of info for a device, (about 2000 rows)

 

sheet 2 holds a mass of other details regarding power source for devices. (About 1700 rows)

within sheet 2 there is only one column of results needed, (shown in green) and 8 potential locations the ID number from Sheet one might be placed.

currently i am using VLOOKUP and IFERROR formulas but there has to be an easier way?

VLOOKUP could be the way forward if it can Look up multiple columns rather then just the 1st in the array.

 

can anyone help me with a better solution?

 

1 Reply

@PatarmaganM 

 

Say the columns you want to check are in A2:O100 and the data you want to return is in column T.  You could try:

 

=INDEX(T:T,MIN(IF(A2:O100="Device",ROW(A2:O100),"")))

 

Entered with Ctrl+Shift+Enter after keying/copying into the formula bar. Also, replace "Device" with whatever your device name is you're trying to find or a cell reference to the device name.