multiple sheet looks up and match

  • Thread starter Thread starter dinesh
  • Start date Start date
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
 
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.
 
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
 
Back
Top