VBA Data Pull based on cell value

Kaladin

New Member
Joined
Jul 16, 2014
Messages
48
Hey everybody. I feel like this should be super simple, but I have the flu so I can't think straight.

I can do this with a vlookup + offset, but I am going to implement a data push so users can overwrite the data they've looked up.

Basically, I want to use find or vlookup in vba to locate the value of a range, let's say Sheet1.Range("A1"), in sheet2, then offset... 3 columns to the right and 1 column down, copy that, and paste it to Sheet1.Range("C1").

Any help on how to do this would be greatly appreciated. Thanks a ton.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Glad it works for you.

I notice a typo on sheet 1

"x to clear data in Col A"

Should be Col C.

And if you want a list of the values returned to C, use the commented out line instead.


'c.Offset(1, 3).Copy Sheets("Sheet1").Range("C" & Rows.Count).End(xlUp)(2)

Regards,
Howard
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,478
Members
448,967
Latest member
visheshkotha

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