Consulting

Results 1 to 6 of 6

Thread: Vlookup or Match? Copying data from one sheet to another.

  1. #1

    Vlookup or Match? Copying data from one sheet to another.

    Hi All,

    another issue im come up against:

    I need to build a macro to copy data from the source sheet into the Resolver Sheet so the end result looks like the Completed_Sheet. I cant get my head round wheter I need to use vlookup or match to transfer the data correctly. Can anyone help with this?

    many thanks.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    B6: =Source_Sheet!A3
    C6: =IF(ISNA(MATCH(C$5,Source_Sheet!2:2,0)),0,INDEX(Source_Sheet!3:3,MATCH(C$5, Source_Sheet!2:2,0)))
    copy across to J6
    K6: =SUM(C6:J6)

    copy these down
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Hi, thanks fior the response but this doesn't really help with automating the task.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Why not?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    Can anyone help with this? I just basically need a piece of code that will look for a value and once found copy all the data below it into the corresponding column in the other sheet.

  6. #6
    VBAX Mentor MaximS's Avatar
    Joined
    Sep 2008
    Location
    Stoke-On-Trent
    Posts
    360
    Location
    try this, see attached for details.

Posting Permissions

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