+ Reply to Thread
Results 1 to 6 of 6

match & offset copying values

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Bristol
    MS-Off Ver
    Excel 2003
    Posts
    3

    match & offset copying values

    Hi,

    I have data in A1 of workbook Test.xls which I want to find in column A of workbook Test2.xls, once found I want to return the value of H5 in Test.xls into the corresponding row in column C of Test2.xls

    Both worksheets are called Sheet1 in each workbook.

    Can someone let me know how I can macro this as I need to extend the same process with further data copying in the future.

    Thanks.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: match & offset copying values

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    I will edit the title this time
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: match & offset copying values

    Depending on the layouts of the sheets you might be able to do this with VLOOKUP, not VBA.

    Post exampl workbooks

  4. #4
    Registered User
    Join Date
    12-14-2009
    Location
    Bristol
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: match & offset copying values

    Hi,

    Sorry for the rule thingy.

    I've attached the two files, cell references slightly different to my original posting but the same process applies. I'd like to match the Works Order Number in Test.xls and then transfer data such as Property Ref in C10 into Test2.xls.

    I don't pretend to know the best solution, but thought a macro may be the only way as Test.xls will be used by several people, whereas Test2.xls will be a document that all other people copy data to.

    Hope that's clear.
    Attached Files Attached Files

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: match & offset copying values

    You don't need VBA as i thought.

    There's not enough data for a proper test, but adding a contractor in the table of data for the first number, displayed on the form this formula works

    =VLOOKUP(I8,[Test2.xls]Sheet1!$B$7:$P$28,4,0)

    The formula will update without you needing to open the data workbook

    Currently you need to clean up the form to use by removing the data validatio 7 possibly the code

  6. #6
    Registered User
    Join Date
    12-14-2009
    Location
    Bristol
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: match & offset copying values

    I don't think I wrote my initial query clearly enough when re reading it.

    I want to send the information the other way than the answer proposes.

    Test holds information that primarily will be keyed in by the user. Once finished, certain pieces of information will be sent to Test2 (acting as a register).

    The reason I think a macro is required is because I may have 2 or 3 users working in a local version of test and writing the information back to the same Test2 workbook. Therefore I need the information to be sent over and then fixed (copy&paste values I guess), then when the next user registers their's it'll go into the next available record.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1