# Compare cells in two different sheets and copy adjacent cell to specific cell

#### ssbhatban

##### Board Regular
Dear friends
I need a help in solving below problem

I have some 6000 alphanumeric data in column B of sheet 1, I have same or some of the same alpha numeric data of sheet 1 in column B in sheet 2 also. In column C & column D of sheet 2 i have three digit numbers
Now i want to compare column B of sheet 1 with column B of sheet 2, find the matching no & copy the adjacent cell value of column C & D in sheet 2 to matching row of column in B of sheet 1 & place the values in column E column F
If this can be done thru either V or H look up or built in function it is good or else VBA code also OK
It is very urgent can any body help me

### 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.
Like this maybe?

In column E
Excel Formula:
``=VLOOKUP(B1,Sheet2!\$B\$1:\$D\$100,2,0)``

In column F
Excel Formula:
``=VLOOKUP(B1,Sheet2!\$B\$1:\$D\$3,3,0)``

Thanks, looks fine, but my data in both index column will not be sorted, will it work for it

Yes, should not be a problem

Thanks for the solution, looks fine, will it also work if columns are not sorted

Thanks for the solution, looks fine, will it also work if columns are not sorted
Yes it should be fine.

Book1
BCD
1Stuff
2Text21C10D20
3Text13C2D12
4
5Text15C14D24
6Text16C5D15
7Text17C6D16
8xxxxxzC9D19
9Text19C8D18
10Text20C15D25
11Text12C1C11
12Text22C11D21
13Text23C12D22
14Text24C13D23
15AbcC4D14
16Text26C19D29
17Text27C3D13
18Text28C17D27
19Text29C18D28
20Text14C16D26
21Text18st
22
23
Sheet2

Why don't you test it using a sample or backed up data?

Ok will try

Replies
2
Views
483
Replies
10
Views
234
Replies
3
Views
119
Replies
11
Views
383
Replies
6
Views
147

1,203,236
Messages
6,054,303
Members
444,715
Latest member
GlitchHawk

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