Lookup with 3 criterias

G

Ginger

I want to find the row in the second workbook which satisfies the following
three criterias and return the number in column D of that row in the second
workbook to the first (original) workbook. Return blank if the number is not
available.
1. the content of column A in the first worksheet = the content of column A
in the second worksheet (text);
2. the content of column B in the first worksheet = the content of column B
in the second worksheet (numeric);
3. the content of column C in the first worksheet = the content of column C
in the second worksheet (numeric and text);

I was trying to use Lookup, Match and Index formulas but didn't succeed.

Thanks much in advance for your help!
 
B

Bob Phillips

How about

=MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Sheet2!C1:C100,0)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
G

Ginger

It didn't work. I also need to return the value in column D of sheet2 to a
column in sheet1. If the value is not available, I'd like to return blank. I
also tried the following but it didn't work either. I got "#value!"
=INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Sheet2!C1:C100,0))

Thanks!!!
 
G

Ginger

=MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Sheet2!C1:C100,0) entered with
ctrl + shift & enter does give me the row number I wanted. But I also need to
return the value in column D of that row. So I enter the following formula
with ctrl + shift & enter:

=INDEX(Sheet2!A1:D100,MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Sheet2!C1:C100,0),4))

This should work but it gives me #N/A. Any thoughts?
Thanks!
 
B

Bob Phillips

Try

INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Sheet2!C1:
C100,0),4))

array entered again

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
B

Bob Phillips

meant

=INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Sheet2!C1
:C100,0))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Top