Fetch data from another sheet matching a code and the correct column headers

Status
Not open for further replies.

lee2121

New member
Joined
Sep 10, 2018
Messages
11
Reaction score
0
Points
0
Excel Version(s)
Office 365
Hi i have two sheets within an excel file, Sheet 2 contains the data i wish to move to Sheet 1.

Sheet 2 the columns can have from 1 to 48 and the rows can go down to about 5000 rows, code will always be in column A starting in row 2.

Sheet 1 the columns appear at reference K22 to AY22 and the coumn numbers in sheet two need to enter the data into the correct coulmns in Sheet 1, the code appears in row BK25 to BK4284 this will match a code in Sheet2 where applicable.

How can i use VBA to move te data from Sheet 2 to Sheet 1 and put it into the correct columns?

Thank you for looking.

Sheet2_data.PNG

sheet1_data.PNG
 
You need to attach a workbook rather than pictures of spreadsheets as vba can't be tested on pictures and nobody wants to spend time guessing at things in order to re-creating something you've already got. (ie: are those yellow cells merged?)
 
Have a look at this and #3 here.
What are you hoping to get here different from what you've already have ?
 
Hi and welcome
Please,do not crosspost your question on multiple forums without including links here to the other threads on other forums.

Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

Do not post any further responses in this thread until a link has been provided to these cross posts.
 
Yes your quite right i'm working on a few different projects and got mixed up this has already been answered, please delete this post if possible.

Thank you.
 
Status
Not open for further replies.
Back
Top