+ Reply to Thread
Results 1 to 5 of 5

VLookup function

  1. #1
    Registered User
    Join Date
    12-06-2009
    Location
    HK
    MS-Off Ver
    Excel 2002
    Posts
    2

    Question VLookup function

    Hi all,

    I am using MS. Excel 2002.
    I have encountered some problem with the vlookup function.
    My excel file (test.xls) has got two sheets, Category and Fruit.
    (I have attached the excel file for further reference)

    In the Category sheet, it has got some data like these:
    Column A - FruitID {1,2,3,4}
    Column B - FruitIName {Banana, Apple, Orange, Melon}
    Column C - NumbersInStock{12, 22, 55, 45}

    And in the Fruit Sheet, it contains these data:
    List {1,2,3....,11}
    Fruit_Sold{Banana, Apple, ....Banana, Banana}
    Fruit_ID{#N/A}

    I am trying to use vlookup function to refer to the fruit_ID in the Category sheet using this formula:
    =VLOOKUP(B2,Category!A$2:C$5,1,FALSE)
    But it returns #N/A.

    Could you help me please?
    Thank you.

    Matthew
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Need help with vlookup function

    Welcome to the Forum. Please take a few minutes to read the Forum Rules that you have just agreed to.

    I will edit your thread title & move it to the correct forum
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Need help with vlookup function

    The lookup value has to be in the leftmost column of a table. It cannot return a value from the first column

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Need help with vlookup function

    See amended table 7 formulas
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-06-2009
    Location
    HK
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: Need help with vlookup function

    Quote Originally Posted by royUK View Post
    The lookup value has to be in the leftmost column of a table. It cannot return a value from the first column

    Thank you so much for the help, royUK.
    It really works.

+ 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