Formula to Insert data from column D into column B if Column A = Column C

justinf10000

New Member
Joined
Feb 24, 2016
Messages
2
It sounds a bit confusing so please let me explain.

I have 2 columns:
Column A is a serial number
Column B is blank (but i want it to contain a part number)


Then I have 2 more columns
Column C is a serial number
Column D is the corresponding part number to the serial number in column C.

I need to get the correct part number into column B. So basically i need excel to run logic to check which cell from Column C is equal to column A and then insert the correct cell data from column D into column B.

How do i do this? I'm not that good with excel.

I would appreciate any help. Also if this cannot be done with excel, I can use access instead but i'm not sure how to do it there either.

Thank you!!
 

Some videos you may like

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
WElcome to the board.

In B2 and filled down, put
=VLOOKUP(A2,C:D,2,FALSE)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,564
Messages
5,596,863
Members
414,106
Latest member
Tigretto

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
Top