vlookup

K

kevcar40

Hi I have a table of data contaning
department name op number production


AA1 AA2 AA3
press op 10 40
wash op 10 90

A5 = press
b5 = op 10

i want to return the value of the identified op in b5 from the
identified department in a5
i am trying to use vlookup to achieve this


any suggestion on the best way forward


thanks


kevin
 
K

kevcar40

thanks for reply dave

i want to check both department and op then return the value
 
D

Dave Peterson

=index($ac$1:$ac$3,match(1,(a5=$aa$1:$aa$3)*(b5=$ab$1:$ab$3),0))

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 only use the whole column in xl2007.
 

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

Top