+ Reply to Thread
Results 1 to 9 of 9

Help with VLOOKUP function to retrieve values from another page

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2003
    Posts
    4

    Smile Help with VLOOKUP function to retrieve values from another page

    Hi,

    I have 2 worksheets, sheet1 and sheet2.

    On sheet 1, I have 3 columns:

    Document Type (2 numbers.... 01, 02, 10, 20, etc...)
    English Name (English description of the document type)
    French Name (French description of the document type)

    On sheet 2, also have those 3 columns... but, I'd like to be able to type 02, 10, 20 etc into the Document Type column and have excel retrieve the english and french name from sheet 1 so I don't have to type them all in manually, or copy them one by one.

    Just wondering if anyone can tell me what function to use?

    Thanks!
    Last edited by bagel; 06-15-2011 at 08:57 AM.

  2. #2
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465

    Re: Help with a function

    Hi,

    You can use IF or Vlookup function for the same.
    attach some sample file.
    __________________
    Regards
    Rahul Nagar
    Founder of www.myshortcutkeys.com.


    If you get the answer of your questions then please click EDIT in your original post then click on GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  3. #3
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Help with a function

    Assuming you have headers, on Sheet2!B2, use the following:

    =VLOOKUP($A2,Sheet1!$A:$C,2,false)

    In C2, use the same except using "3,false" instead of "2,false"

    Alternatively, a possibly better but more complex formula incorporates the INDEX and MATCH functions:

    B2:
    =INDEX(Sheet1!$A:$C,MATCH($A2,Sheet1!$A:$A,0),MATCH(B$1,Sheet1!$1:$1,0))

    This formula is better if you have a larger number of columns as you can drag this over a few columns without having to amend the formula. But this assumes that you have column headers which match on both sheets.

    Finally, one of the forum rules is to title your thread with something that accurately describes your problem. This enables people with similar problems to search the forum and find answers more easily.

  4. #4
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Re: Help with a function

    Assume your values are in column A,B&C (Doc Type, Eng & French) respectively in both sheets,
    then in sheet2 type the fomula;
    in cell B2 =VLOOKUP(A2,Sheet1!A:B,2,0)
    in cell C2 =VLOOKUP(A2,Sheet1!A:C,3,0)

    Thanks

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with a function

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    06-15-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: VLOOKUP Function to retrieve values from another page

    I looked at my post again and I just wanted to add some more detail in case it helps

    I have one sheet called 'Sheet1'

    On this sheet, I have 3 columns: Document Type Code, English Description, French Description

    Example:

    Code English Name French Name

    01 Accounts Payable Comptes créditeurs
    12 Invoice Facture

    On sheet 2, I will need to manually type in the Document Type Code.. depending on what code I type in, it will retrieve the english and french description of that code from sheet 1 and populate it in sheet 2.

    I will need to type in the document code manually in sheet 2

    Thanks
    Last edited by bagel; 06-15-2011 at 08:39 AM.

  7. #7
    Registered User
    Join Date
    06-15-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help with VLOOKUP function to retrieve values from another page

    Thanks everyone for your help I really appreciate it, I got it to work.. it definitely was VLOOKUP.

  8. #8
    Registered User
    Join Date
    05-08-2011
    Location
    riyadh
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Help with VLOOKUP function to retrieve values from another page

    Quote Originally Posted by bagel View Post
    Hi,

    I have 2 worksheets, sheet1 and sheet2.

    On sheet 1, I have 3 columns:

    Document Type (2 numbers.... 01, 02, 10, 20, etc...)
    English Name (English description of the document type)
    French Name (French description of the document type)

    On sheet 2, also have those 3 columns... but, I'd like to be able to type 02, 10, 20 etc into the Document Type column and have excel retrieve the english and french name from sheet 1 so I don't have to type them all in manually, or copy them one by one.

    Just wondering if anyone can tell me what function to use?

    Thanks!

    Check this video out , I Made For you along with sample sheet

    video link

    http://www.how-videos.com/videos/vid...up-excel-2010/

  9. #9
    Registered User
    Join Date
    06-15-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help with VLOOKUP function to retrieve values from another page

    Hey hany_c_v,

    I can't believe you made a video with my question, it was really well done. I really appreciate it!!!!

    Thanks very much

+ 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