2 condition vlookup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need a 2 condition vlookup to lookup a date and when it matches the date
then it looks to match a state and then return a value on another worksheet.
Any ideas on how to do this?

example;
2/17/06 <---lookup this date
AZ value 1 <---Then lookup the state and then return value which is
on another worksheet
ID value 1
CA value 1
OR value 1
 
You can use this kind of syntax:

=index(othersheet!$c$1:$c$100,
match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet!$b$1:$b$100),0))
(one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column.

This returns the value in othersheet column C when column A and B (of
othersheet) match A2 and B2 of the sheet with the formula.

And you can add more conditions by just adding more stuff to that product
portion of the formula:

=index(othersheet!$d$1:$d$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100)
*(c2=othersheet!$c$1:$c$100),0))

(still an array formula)
 

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

Similar Threads

VLookup 1
Two Condition Vlookup 1
vlookup with 2 conditions? 2
IF and Vlookup 1
Look up a reference which has more than 1 exact match 1
Excel VBA 1
vlookup not working 3
Vlookup Help 3

Back
Top