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

#### justinf10000

##### New Member
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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a \$25,000 loan, 5% annual interest, 60 month loan.
WElcome to the board.

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

Thank you !

You're welcome.

Replies
3
Views
236
Replies
1
Views
85
Replies
5
Views
349
Replies
2
Views
174
Replies
5
Views
301

1,219,997
Messages
6,151,365
Members
451,022
Latest member
Baijano23

### 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.

### Which adblocker are you using?

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

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