Results 1 to 6 of 6

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

  1. #1
    Seeker lee2121's Avatar
    Join Date
    Sep 2018
    Posts
    11
    Articles
    0
    Excel Version
    Office 365

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



    Register for a FREE account, and/
    or Log in to avoid these ads!

    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.

    Click image for larger version. 

Name:	Sheet2_data.PNG 
Views:	9 
Size:	14.0 KB 
ID:	8450

    Click image for larger version. 

Name:	sheet1_data.PNG 
Views:	7 
Size:	29.3 KB 
ID:	8451

  2. #2
    Magician NoS's Avatar
    Join Date
    Jan 2013
    Location
    British Columbia
    Posts
    711
    Articles
    0
    Excel Version
    Excel 2010 64bit
    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?)

  3. #3
    Seeker lee2121's Avatar
    Join Date
    Sep 2018
    Posts
    11
    Articles
    0
    Excel Version
    Office 365
    Yes your right, see attached.

    excel move data 13.09.2018.xlsx

  4. #4
    Magician NoS's Avatar
    Join Date
    Jan 2013
    Location
    British Columbia
    Posts
    711
    Articles
    0
    Excel Version
    Excel 2010 64bit
    Have a look at this and #3 here.
    What are you hoping to get here different from what you've already have ?

  5. #5
    Super Moderator Pecoflyer's Avatar
    Join Date
    Oct 2011
    Location
    Brussels Belgium
    Posts
    1,429
    Articles
    0
    Excel Version
    2010 on Xubuntu
    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.
    Thank you Ken for this secure forum.

  6. #6
    Seeker lee2121's Avatar
    Join Date
    Sep 2018
    Posts
    11
    Articles
    0
    Excel Version
    Office 365
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •