Matching cells from a column and returning value from a third column.

NicolaiK

New Member
Joined
Feb 13, 2016
Messages
7
Hello all,

I am having difficulties with matching information from two columns and returning information from a third column.

Example:

Column A has 50 rows each with a value
Column B has 30 Rows each with a corresponding value
Column C has 30 Rows each with a value

I need a formula that match A and B and when they match, return me the value from C

I am currently trying to make this IF formula work: =IF(A1=B1:B30,C1:C30,0)

Anyone have a solution for me?

Thanks for helping out!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Thank you for trying to help FDibbins! But I cant get the solution you sent to work for me... could you try to explain the J2=INDEX(A$2:A$6,MATCH($H$1&$H$2&$H$3,INDEX($A$2:$A$6&$D$2:$D$6&$B$2:$B$6,0),0)) formula using my problem?

Is this correct?

=INDEX(A1:A50,MATCH(A1,INDEX(B1:B30),0)0)

I dont think I understand what the different parts of the formula does, and so the formula might work if I input the data correctly?
 
Upvote 0
You have 2 criteria you want to match - A and B, and if they match, you want to return C. Where do you want the results shown, and where will the criteria be that you want to match against?
 
Upvote 0
Yes thats correct.
The result can be shown in D1.

The criteria is A1, so if B1=A1 return C1 in D1
 
Upvote 0
So then maybe something like this?
A​
B​
C​
D​
1​
10​
10​
aa
2​
20​
12​
b
3​
30​
14​
c
4​
40​
16​
d
5​
50​
18​
e
6​
60​
20​
fb
7​
70​
22​
g
8​
80​
24​
h
9​
90​
10​
100​
D1=IFERROR(INDEX($C$1:$C$8,MATCH(B1,$A$1:$A$10,0)),"")
copied down
 
Upvote 0

Forum statistics

Threads
1,215,281
Messages
6,124,045
Members
449,139
Latest member
sramesh1024

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