Copying cells from one sheet based on another sheet

chauber

New Member
Joined
Oct 14, 2019
Messages
5
Sorry if the title doesn't make much sense, I will try to explain better. I have a set of data on sheet 1 that looks like the following:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Column 1
[/TD]
[TD]Column 2
[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

On sheet 2 I have data that looks like the following:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Column 1
[/TD]
[TD]Column X
[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]text1[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]text1
[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]text2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]text2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]text2[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]text3[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]text4[/TD]
[/TR]
</tbody>[/TABLE]

How do I make a formula where if a Cell in Sheet 1 Column 1 equals a value in Sheet 2 Column 1, then text from Sheet 2 Column X is copied to Sheet 1 Column 2? Sheet 1 would look like the following

[TABLE="width: 500"]
<tbody>[TR]
[TD]Column 1
[/TD]
[TD]Column 2
[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]text1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]text2[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]text3[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]text4[/TD]
[/TR]
</tbody>[/TABLE]
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]Column 1
[/TD]
[TD]Column 2
[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
</body>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
If you want a formula, how about
=INDEX(Sheet2!$X$2:$X$10,MATCH(A2,Sheet2!$A$2:$A$10,0))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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