VLookup VBA between sheets on selected columns

Jasmaine86

New Member
Joined
Jul 26, 2023
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Not sure if there is a solution to my request as I am strugglying to find a solution that isnt a looped result.

I have a project where we will soon start to recieve data with pricing, all in the same format.

The list size will vary each time so it will need to be "As Long" on both.

I have a workbood and want a simple solution that will allow a copy and paste of data on one tab, and from a selected cell or column, the option to run a VBA vlookup.

if not possible, i am open to other ideas to get a similar result.
 

Attachments

  • Destination Sample.JPG
    Destination Sample.JPG
    73 KB · Views: 2
  • Copy and Paste Tab.JPG
    Copy and Paste Tab.JPG
    63.7 KB · Views: 2

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi All,

Not sure if there is a solution to my request as I am strugglying to find a solution that isnt a looped result.

I have a project where we will soon start to recieve data with pricing, all in the same format.

The list size will vary each time so it will need to be "As Long" on both.

I have a workbood and want a simple solution that will allow a copy and paste of data on one tab, and from a selected cell or column, the option to run a VBA vlookup.

if not possible, i am open to other ideas to get a similar result.

Just to add, I have tried the below VBA with an error:

Sub Automate_VLOOKUP()

Dim Jas_Cell As Range

For Each Jas_Cell In Range("J3:J3286")

Jas_Cell.Value = _
Application.WorksheetFunction.VLookup(Jas_Cell.Offset(0, -9), _
Sheets("Copy").Range("A2:E800"), 5, 0)

Next Jas_Cell

End Sub
 

Attachments

  • VBA.JPG
    VBA.JPG
    226.7 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,258
Members
449,149
Latest member
mwdbActuary

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