Lookup value in range

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

Guest

Hi! I am trying to do a lookup based on two criteria -one being in two
columns. I have one worksheet that has the entity and department bumber and
one that has account rep, entity, range of department numbers (see example).

What I want to do is bring the account rep into the first worksheet by
matching the entity and if the department is >= to beginning dept and <=
ending dept. I have done an index and match based on entity and begining
dept and if that is an NA error match entity and ending dept. I cant figure
out what the formula needs to be if the department number falls within that
beg-end range.

Example:

Ent Begin Dept End Dept Acct Rep
1 6110 6119 dflood

If Ent = 1 and dept = 6115, bring over acct rep "dflood"

Does anyone know of a formula that could help?
 
Hi
try the following array formula (entered with CTRL+SHIFT+ENTER):
=INDEX(D1:D100,MATCH(1,(A1:A100=1)*(B1:B100<=6115)*(C1:C100>=6115),0))
 

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