(VBA) Formula Help: Copy Cell If Another Cell Matches Criteria

hiljaisuus

New Member
Joined
Feb 8, 2012
Messages
1
I'm quite stumped trying to figure out how to do this, so I'm turning for this community for help. I'm working with Excel 2011 for Mac.

The setup:
I have a workbook with two sheets: Master List and User List.

Master List contains a large number of rows (starting from a row 4) with various pieces of information on Columns B-H. I'm interested in Columns B and E.

User List has matching column headers, and a field A2 with the name that matches one of the possible values in the column E in the Master List.

What I'm trying to do:
I'm looking to create a macro that goes through the data in Master List, and:
1. if the column E on any row matches the value of A2 in User List,
2. copy the value in the column A on that row to the column D on the User List, starting from the row 6.

And does this for all the rows where the column E matches the given criteria.

The Master List data will be updated on a regular basis, so I'm looking for a macro that I can easily run whenever needed and update the data on the User List.

Any help, tips and pointers appreciated!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,215,619
Messages
6,125,871
Members
449,267
Latest member
ajaykosuri

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