+ Reply to Thread
Results 1 to 3 of 3

Macro for matching between two spreadsheets and finding a value

  1. #1
    Registered User
    Join Date
    10-27-2008
    Location
    London
    Posts
    2

    Macro for matching between two spreadsheets and finding a value

    Hey people.

    I've been given a terribly daunting task and just know that a macro can save my day.

    I have two spreadsheets, spreadsheet A and B. In each spreadsheet there is a column labeled 'event' and a number in that column. I need to match the event number in spreadsheet A with the same number in spreadsheet B. In spreadsheet B in the same row as the event number is another value that I need copied back to spreadsheet A.

    Manually I would have to copy the event number from spreadsheet A and use 'find' in spreadsheet B. Then check in the same row as the event number in spreadsheet B for a specific number, copy that, head back to spreadsheet A and paste it next to the event number.

    I've tried to create a macro to do this but when using 'find' to match the event number in spreadsheet B it keeps on using the first event number I used instead of moving down a row onto the next number.

    I can upload the spreadsheet if needed.

    Please help

    ps: This isn't easy to explain for me, so if I can clarify my problem in any way please let me know.

    EDIT: Added both spreadsheets, can explain more thouroughly now.

    I need to match the value of 'event number' in spreadsheet A (columb B) with the 'event number' in spreadsheet B (column A). I then need to get the value under column U in spreadsheet B and copy it to spreadsheet A column A.

    Please forgive my noobness at excel
    Attached Files Attached Files
    Last edited by someoneelse84; 10-28-2008 at 03:19 PM. Reason: added spreadsheets

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    You can use the VLOOKUP function to do this. In A2 enter the formula
    Please Login or Register  to view this content.
    , update to reflect the proper spreadsheet names, then copy down. Will fill as required.

    HTH

    rylo

  3. #3
    Registered User
    Join Date
    10-27-2008
    Location
    London
    Posts
    2
    Thank you very, very much rylo!

+ 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