I think you're going to have to check each column of sheet2:
=IF(ISNUMBER(MATCH(A1,Sheet2!A:A,0)),VLOOKUP(A1,Sheet2!A:G,5,FALSE),
IF(ISNUMBER(MATCH(A1,Sheet2!B:B,0)),VLOOKUP(A1,Sheet2!B:G,4,FALSE),
IF(ISNUMBER(MATCH(A1,Sheet2!C:C,0)),VLOOKUP(A1,Sheet2!C:G,3,FALSE),
"Missing")))
(I think...)
The bad news is that etc portion. You can only have 7 nested levels.
You may find something like this that concatenates a bunch of strings:
=IF(ISERROR(MATCH(A1,Sheet2!A:A,0)),"",VLOOKUP(A1,Sheet2!A:G,5,FALSE))
&IF(ISERROR(MATCH(A1,Sheet2!B:B,0)),"",VLOOKUP(A1,Sheet2!B:G,4,FALSE))
&IF(ISERROR(MATCH(A1,Sheet2!C:C,0)),"",VLOOKUP(A1,Sheet2!C:G,3,FALSE))
This just returns empty strings when there isn't a match--but when it finds one,
it returns that other cell. And since you said that there is a unique
location, it should work.
If you're returning a number, then you won't want to concatenate text:
=IF(ISERROR(MATCH(A1,Sheet2!A:A,0)),0,VLOOKUP(A1,Sheet2!A:G,5,FALSE))
+IF(ISERROR(MATCH(A1,Sheet2!B:B,0)),0,VLOOKUP(A1,Sheet2!B:G,4,FALSE))
+IF(ISERROR(MATCH(A1,Sheet2!C:C,0)),0,VLOOKUP(A1,Sheet2!C:G,3,FALSE))
> > Saved from a few previous posts:
> >
[quoted text clipped - 47 lines]
> All the best
> Jonas

Signature
Dave Peterson