ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   multiple sheet looks up and match (https://www.excelbanter.com/excel-worksheet-functions/242323-multiple-sheet-looks-up-match.html)

Dinesh

multiple sheet looks up and match
 
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

Max

multiple sheet looks up and match
 
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
---
"dinesh" wrote:
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


pshepard[_2_]

multiple sheet looks up and match
 
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),IN DEX(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.
--
If this post helps click Yes
---------------
Peggy Shepard


"Max" wrote:

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
---
"dinesh" wrote:
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


Max

multiple sheet looks up and match
 
Sorry, I assumed the return "amount" col was in col E earlier
=INDEX(Sheet1!E$2:E$100 ...


Just change it to point to col G instead in the earlier expression:
=INDEX(Sheet1!G$2:G$100 ..

It should work fine ..
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---

Ashish Mathur[_2_]

multiple sheet looks up and match
 
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

"dinesh" wrote in message
...
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




All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com