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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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
So then maybe something like this?
[Table="width:, class:grid"][tr][td] [/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][td]
D​
[/td][/tr]
[tr][td]
1​
[/td][td]
10​
[/td][td]
10​
[/td][td]a[/td][td]a[/td][/tr]

[tr][td]
2​
[/td][td]
20​
[/td][td]
12​
[/td][td]b[/td][td][/td][/tr]

[tr][td]
3​
[/td][td]
30​
[/td][td]
14​
[/td][td]c[/td][td][/td][/tr]

[tr][td]
4​
[/td][td]
40​
[/td][td]
16​
[/td][td]d[/td][td][/td][/tr]

[tr][td]
5​
[/td][td]
50​
[/td][td]
18​
[/td][td]e[/td][td][/td][/tr]

[tr][td]
6​
[/td][td]
60​
[/td][td]
20​
[/td][td]f[/td][td]b[/td][/tr]

[tr][td]
7​
[/td][td]
70​
[/td][td]
22​
[/td][td]g[/td][td][/td][/tr]

[tr][td]
8​
[/td][td]
80​
[/td][td]
24​
[/td][td]h[/td][td][/td][/tr]

[tr][td]
9​
[/td][td]
90​
[/td][td][/td][td][/td][td][/td][/tr]

[tr][td]
10​
[/td][td]
100​
[/td][td][/td][td][/td][td][/td][/tr]
[/table]

D1=IFERROR(INDEX($C$1:$C$8,MATCH(B1,$A$1:$A$10,0)),"")
copied down
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,601
Members
452,658
Latest member
GStorm

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