match/look up????

cke

New Member
Joined
Jan 13, 2005
Messages
13
I have the following data on one worksheet (worksheet 1)
A B C
1 000 1735 $4563.55
2 009 5100 $84.23
3 007 2159 $649.35
4 007 5420 $2.95
The other worksheet (2) looks like this:
A B C
1 000 1735
2 007 5420
3 007 2159
4 009 5100
On worksheet 2, I want to put in C1, that if A1 and B1, match that same as the A&B in worksheet 1, put the $ amount in C.
Example….Since A2 & B2 in worksheet 2, match exactly to A4 & B4 in worksheet 1, then C2 in worksheet 2 is $2.95
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
What are the contents of column A on both sheets?
 
Upvote 0
sorry, formatting went off....A is actually the 3 digit "Cost Center", while the 1-4 represent the row number. B should be the 4 digit "dept", then C the $ amount
 
Upvote 0
Hi,

The following solution assumes that the combination of values in Columns A and B in Sheet1 represents a unique reference.

In C1 of Sheet2, try:

Code:
=INDEX(Sheet1!C$1:C$100,MATCH(1,IF(Sheet1!A$1:A$100=A1,IF(Sheet1!B$1:B$100=B1,1)),0))

Which is an array formula and therefore needs committing with CTRL+SHIFT+ENTER, and can then be copied down.

Matty
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,572
Members
452,927
Latest member
whitfieldcraig

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top