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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
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,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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