Lookup with 3 criterias

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

Guest

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!
 
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)
 
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!!!
 
=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!
 
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)
 
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)
 
Yes. It works like a charm. This is absolutely great and helpful! Thanks!
 

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