+ Reply to Thread
Results 1 to 5 of 5

Copying values from another spreadsheet

  1. #1
    Registered User
    Join Date
    05-30-2007
    Posts
    7

    Copying values from another spreadsheet

    Any help for an Excel noob?

    I need to automatically copy certain fields from 1 spreadsheet into another. But the fields obviously all need to copy into specific rows.

    For example

    Sheet 1

    Unique ID Hours Remaining Hours Cost
    1 20 17 2100
    72 12 1 1489
    64 12 9 100
    23 90 67 45000

    Sheet 2

    Unique ID Name Code Hours Remaining Hours Cost
    72 Bob 1089
    1 Ron 4456
    23 Amy 1112

    So the unique identifiers are not in the same order in the two spreadsheets.
    I need to automatically update all rows in spreadsheet 2 with the corresponding values in spreadsheet 1.

    I believe I need to record a Macro, but am not sure how to go about it .

    Any help will be greatly appreciated.

    Kind regards

  2. #2
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    You should be able to use VLOOKUP to achieve this. If you don't know about this function, check this link:

    http://www.ozgrid.com/Excel/excel-vlookup-formula.htm

    HTH,

    SamuelT

  3. #3
    Registered User
    Join Date
    05-30-2007
    Posts
    7
    That link is certainly useful, however it doesn't go into as much detail as I need.

    Ideally I would like to create some kind of macro so that I do not need to continuosly enter a new formula each time a new row is created. Also the link doesnot show you how to write the formula for copying in fields from another spreadsheet and it only searches the first column in the table whereas I need to match column 3 in spreadsheet 1 to column 2 in spreadsheet 2.

    Many thanks

  4. #4
    Registered User
    Join Date
    04-16-2007
    Posts
    4
    Not sure if this is what your looking for but have attached file that does what I think you require.

    Mike

  5. #5
    Registered User
    Join Date
    04-16-2007
    Posts
    4
    File did not attach

    Mike

    Test.zip

+ 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