VBA Copy Data Sheet 1 to Sheet 2 Based on Value of cell on Sheet 1

elybm1

New Member
Joined
Aug 18, 2016
Messages
1
Sheet 1
15-00131234

<tbody>
</tbody>
Sheet 2
15-00095432
15-00108569
16-0012
15-0013
15-00204587
16-0033

<tbody>
</tbody>

I have an excel workbook which holds a data table on Sheet 2 based on an order number (example 15-0013). I want to populate cells on the sheet by entering data on sheet 1 and pushing the information to the correct cell on sheet 2. In this example i want to push the value 1234 from cell B1 on sheet 1 to the correct row of Sheet 2, column B based on the value in Sheet 1 A1. I assume this includes looking up the correct row on sheet 2 and setting value of cell(correct row # and column B) equal to the value in sheet 1 B1. I am struggling to find an example online to follow for this VBA code. I would greatly appreciate any help you can provide on this example.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

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