Multiple vlookup arguments

  • Thread starter Thread starter ichall
  • Start date Start date
I

ichall

Does anyone know the solution to the following problem?

I have data with three columns. The first column is a spatial ID
column, the second a depth column. For any given ID there are multiple
depth values (i.e. there are repeating ID's for a number of different
depth values). The third column is a results column.

I then want to compare a given ID and depth to the 3 columns and return
the result.

I want to creat a formula that compares both my ID to the ID column and
my depth to the depth column to get the correct result. I've tried
different vlookup, and, if, and array combinations to no avail.

anyone?

Thanks

Ian
 
Assumptions:

A1:A10 contains the ID

B1:B10 contains the Depth

C1:C10 contains the Result

Formula:

=INDEX($C$1:$C$10,MATCH(1,($A$1:$A$10=E1)*($B$1:$B$10=F1),0))

....where E1 contains the ID of interest, and F1 contains the Depth of
interest. The formula needs to be confirmed with CONTROL+SHIFT+ENTER,
not just ENTER.

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top