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!!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

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)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,650
Messages
5,854,950
Members
431,689
Latest member
jacker01

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