Lookup with multiple lookup values

G

Guest

How do I set up a lookup formula that uses two lookup values? I am trying to
do a formula that has one absolute value (it will always equal "A"), but each
row will have a variable value ("1", "2", etc.). So I have a column that
each cell will reference the absolute value of "A" and the variable value of
"1", "2", etc. If the corresponding sheet that I am pulling the information
from matches both "A" and "7", for instance, it will return the value that
relates to these two lookup values. Also, I was wanting to find out how to
have a lookup function return a blank cell or an amount of $0 if there is
nothing that matches to the given criteria. I am getting a value input on
the ones that should be blank of another cell's information. Let me know if
my questions are confusing or if you need further clarification. Thanks.
 
F

Frank Kabel

Hi
first try the array formula (entered with cTRL+sHIFT+eNTER):
=INDEX('sheet1'!C1:C100,MATCH(1,('sheet1'!A1:A100="A")*('sheet1'!B1:B10
0=7),0))

For the second one use the array formula:
=IF(ISNA(MATCH(1,('sheet1'!A1:A100="A")*('sheet1'!B1:B100=7),0)),0,INDE
X('sheet1'!C1:C100,MATCH(1,('sheet1'!A1:A100="A")*('sheet1'!B1:B100=7),
0)))

--
Regards
Frank Kabel
Frankfurt, Germany

Aaron said:
How do I set up a lookup formula that uses two lookup values? I am trying to
do a formula that has one absolute value (it will always equal "A"), but each
row will have a variable value ("1", "2", etc.). So I have a column that
each cell will reference the absolute value of "A" and the variable value of
"1", "2", etc. If the corresponding sheet that I am pulling the information
from matches both "A" and "7", for instance, it will return the value that
relates to these two lookup values. Also, I was wanting to find out how to
have a lookup function return a blank cell or an amount of $0 if there is
nothing that matches to the given criteria. I am getting a value input on
the ones that should be blank of another cell's information. Let me know if
my questions are confusing or if you need further clarification.
Thanks.
 
G

Guest

Frank - Thanks so much for your help. I will try this out today and
hopefully it will work. Aaron
 

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

Lookup returning wrong results 0
Nested If with Lookup 1
Embedded lookup 3
lookup 4
LOOKUP/IF Formula Help!! 1
Help with lookup 3
CONCATENATE & LOOKUP Functions 0
Need Help 4

Top