+ Reply to Thread
Results 1 to 4 of 4

Populating fields in 2nd spreadsheet from another spreadsheet

Hybrid View

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Populating fields in 2nd spreadsheet from another spreadsheet

    Hi. Please see simple example below.

    Col 1 Col 2

    Roger British
    Sharon French
    Emily Canadian

    In the second sheet I want to type 'Roger' and in another cell I need the formula which returns 'British'. What is my formula please? I seem to be struggling with IF for this job.
    Thanks

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Populating fields in 2nd spreadsheet from another spreadsheet

    hi Cirro, welcome to the forum. assuming your data is in Sheet1, A1:B3, & "Roger is in A1 of Sheet2, try this in Sheet2:
    =VLOOKUP(A1,Sheet1!$A$1:$B$3,2,0)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-13-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Populating fields in 2nd spreadsheet from another spreadsheet

    Quote Originally Posted by benishiryo View Post
    hi Cirro, welcome to the forum. assuming your data is in Sheet1, A1:B3, & "Roger is in A1 of Sheet2, try this in Sheet2:
    =VLOOKUP(A1,Sheet1!$A$1:$B$3,2,0)
    Perfect. Thanks. Sorry it was so simple!

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Populating fields in 2nd spreadsheet from another spreadsheet

    Assumptions:
    - Your table, Roger British, etc. are in Cells A1 and B1 of Sheet1
    - Your Query is in Cell A1 of Sheet2
    Use this formula
    =VLOOKUP(A1,Sheet1!A1:B3,2)

    The formula says look at Cell A1 of this worksheet. Now look at Array(Range) A1:B2 of Sheet1. If there is a match, return what is in column 2 in the corresponding row in Sheet1.

    Hope that helps
    Click on star (*) below if this helps

+ 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