multiple sheet looks up and match

D

dinesh

Sheet1 looks like below

A B C D G

Cust# Date Cust # Date Amount

1256 500

2456 1000

2566 2000



Sheet2

A B C

Cust# Amount Match Function ?

1256 500

2456 1000

2566 2000


I need a formula to match Cust# & $ value of Sheet2 against Sheet1.


Thanks,
Dinesh
 
M

Max

One way

In Sheet2,
In B2, normal ENTER
=INDEX(Sheet1!E$2:E$100,MATCH(A2&"",INDEX(Sheet1!A$2:A$100&Sheet1!C$2:C$100,),0))
Copy down

Any good? Hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
 
P

pshepard

There are two Cust# columns in Sheet1 - column A and column C. The last
column is labelled as column G (Amount) in sheet1,

paste as an array formula into cell C2 of sheet2 by entering with
CTRL+SHIFT+ENTER:

=IFERROR(INDEX(Sheet1!$A$1:$G$100,MATCH(1,(Sheet1!$A$1:$A$100=$A2)*(Sheet1!$G$1:$G$100=$B2),0),7),INDEX(Sheet1!$A$1:$G$100,MATCH(1,(Sheet1!$C$1:$C$100=$A2)*(Sheet14!$G$1:$G$100=$B2),0),7))

this formula matches the customer# and matches the amount.
 
A

Ashish Mathur

Hi,

Confusing question - still not clear about what do you want as an output in
column C of sheet 2. If you want the amount there, then you can use this
formula

=SUMPRODUCT((Sheet1!$A$2:$C$4=Sheet2!A2)*(Sheet1!$G$2:$G$4=Sheet2!B2)*(Sheet1!$G$2:$G$4))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 

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