I have an Excel formula that matches a cell on one spredsheet and searches through a column on another, then returns the contents of adjacent cells to that column for any matches. The problem is I need to search through two different columns for that match, and if either of the columns contains the match, return another adjacent cell. I have tried using:
=INDEX('PNO Lookup'!$A:$A,MATCH(Summary!D25,'PNO Lookup'!$G:$J,0))
which should search from column G to column J, but I get a #VALUE error. Can anyone explain how I would search both column G and J for the value in cell D25?
=INDEX('PNO Lookup'!$A:$J,MATCH(Summary!D25,'PNO Lookup'!$G:$J,0))$G:$Jis not 'two different columns'.Index(lookup range, row number, column number)you are missing the column numbercolumn numberis optional. If the range is only one column or row it is not needed.