+ Reply to Thread
Results 1 to 4 of 4

Formula to Find same data in a second workbook and bring associated data

  1. #1
    Registered User
    Join Date
    09-21-2011
    Location
    Victoria, British Columbia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Formula to Find same data in a second workbook and bring associated data

    Hi there,

    First time I've posted here but have been using this forum for a long time to help me figure things out based on other peoples experience.

    However I've come across something I can't seem to find in the forum, maybe I'm not using the right terms.

    I have two separate workbooks that I am trying to bring together a little bit. One has the some information, the other has some just because of the other people who have been working on it.

    What I am trying to do is get a value from one worksheet onto another based on if the data in two specific columns match.

    So in words (without a formula) If Sheet 1A1 can be found in A1:A100 enter B1

    Is there a formula that can do this?

    I look forward to seeing the responses
    Last edited by nzginga; 09-21-2011 at 05:36 PM.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: A formula beyond my skill

    Hi
    Do you mean to check the value of workbook 1, sheet 1, cell A1 against the same cell in workbook 2 and if they match return the value to cell B1 sheet 1 of workbook 1 and so on down column B?

  3. #3
    Registered User
    Join Date
    09-21-2011
    Location
    Victoria, British Columbia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: A formula beyond my skill

    Wow that was fast,

    I mean if Cell A1 (in sheet 1) can be found in '[Sheet 2.xlsx]Totals'!$A$1:$A$100 return the value from '[Sheet 2.xlsx]Totals'!$B$1:$B$100 that corresponds to the cell that was found to match cell A1. So if a4 was found to match i would want the value from b4 and so on.

    Any thoughts?

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: A formula beyond my skill

    You could try the following formula typed in Sheet 1 cell B1, which would return the value from the Totals sheet column B that matches the value you have in Sheet 1 cell A1.

    =VLOOKUP(A1,[WorkbookName]Totals!A$1:B$100,2,0)

    The only problems is that the VLOOKUP function finds the first match and returns a value from that. So if the column you are searching has duplicate values it only finds the first in the list. At the moment I don't know a way round that. I am using Excel 2003 and I'm not sure if there's anything in later versions that works differently.

+ 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