Return value adjacent based on match

cms90740

New Member
Joined
Apr 26, 2016
Messages
12
Hi all,

I believe I've done something similar to my current problem but I can't quite figure this one out. Would appreciate any advice!

I'm trying to match 2 values in different columns and then return the adjacent value from a third column. Hopefully this demonstrates it clearly.

titlevaluetitlesvalue
greengreen1
orangeblue2
greenred3
redorange4

<tbody>
</tbody>


I'd like to create a formula for column B that matches column A against column C and returns the corresponding value in column D. For instance, B2 would equal 1, B3 would equal 4, B4 would equal 1, and B5 would equal 3. Hope that makes sense. Thanks in advance for your help!
 
Last edited:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Assuming no dup;icates in column C try VLOOKUP.
Excel Workbook
ABCD
1titlevaluetitlesvalue
2green1green1
3orange4blue2
4green1red3
5red3orange4
Sheet
 
Upvote 0
Assuming no dup;icates in column C try VLOOKUP.

ABCD
1titlevaluetitlesvalue
2green1green1
3orange4blue2
4green1red3
5red3orange4

<colgroup><col style="width:30px; "><col style="width:67px;"><col style="width:66px;"><col style="width:71px;"><col style="width:76px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B2=VLOOKUP(A2,$C$2:$D$5,2,0)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

This worked perfectly, thank you!
 
Upvote 0

Forum statistics

Threads
1,213,515
Messages
6,114,080
Members
448,548
Latest member
harryls

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