+ Reply to Thread
Results 1 to 5 of 5

Cross check two different spreadsheets and transfer value from one to the other

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Cross check two different spreadsheets and transfer value from one to the other

    Hi,

    I have two separate spreadsheets with lists of email addresses. Each spreadsheet has email addresses in column A, followed by different properties in subsequent columns to Column D. I'm looking for a way in excel to search one spreadsheet to see if the same email is present in both spreadsheets. Then, if it finds a match, I'm hoping to transfer the cell contents from one of the properties to the other spreadsheet.

    In excel terms its something like this.

    If an email address in Spreadsheet#1 cell A2 is found in the range A1:A10000 of Spreadsheet#2, then grab the information relevant to that email address from column B in Spreadsheet #2, and add it to E2 in Spreadsheet #1.

    I'm sorry that I couldn't find a better way to explain this, but I'm fairly new to excel!

    Thank you for your help!

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Cross check two different spreadsheets and transfer value from one to the other

    Try this:

    'Run this code in Spreadsheet#1
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Cross check two different spreadsheets and transfer value from one to the other

    Thanks for your help jewelsharma. I ran the line of code, but kept getting Runtime error '1004' on the line If .Range("B"..... saying that it was unable to get the Vlookup property of the WorksheetFunctionClass. I attached an example spreadsheet (without actual email addresses) to see if we can sort it with references that are a little less abstract.

    So for example: I'm looking to see if the email address in A2 of 'Email List 1' exists in the range (A2:A5)of sheet 'Email List 2'. If so, I want it to put the corresponding "Car" value for that email address into column F of 'Email List 1'.


    Test Spreadsheet.xlsx

  4. #4
    Registered User
    Join Date
    07-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Cross check two different spreadsheets and transfer value from one to the other

    Looks like this is a Vlookup problem, I think I figured it out.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Cross check two different spreadsheets and transfer value from one to the other

    Hi thewhawk,

    Notes:
    • i renamed the files as Test1 and Test2.
    • i renamed worksheets as "Sheet1" in both the files.
    • the code is to be run from Test1 workbook.

    Try this modified code:
    Please Login or Register  to view this content.
    This works fine when I tested. Let me know if this worked for you.

    Warm regards,
    Jewel

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cross Referencing from 3 Spreadsheets
    By emma_edi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-03-2013, 11:22 AM
  2. Cross Check Information in Two Spreadsheets
    By MCN56171 in forum Excel General
    Replies: 3
    Last Post: 05-01-2013, 01:59 PM
  3. Cross Referencing two spreadsheets? (vlookup)
    By AnthonyC in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2008, 04:35 PM
  4. How do i cross reference two excel spreadsheets?
    By Paula in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-30-2006, 05:30 AM
  5. cross reference two spreadsheets using MS Excel
    By Eric P in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2005, 04:05 PM

Tags for this Thread

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