+ Reply to Thread
Results 1 to 2 of 2

Need a table, which fills in numbers automatically depending on text in column

  1. #1
    Registered User
    Join Date
    01-20-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Need a table, which fills in numbers automatically depending on text in column

    Hi Guys and excel Pros :-)

    could you help me with my problem?

    I want to have a list in Sheet2, lets say:

    Column A B
    Apple 8
    Banana 9
    Pear 10

    And then I need a table in Sheet1, Where I put the name of fruit in column A and it automatically fills in relevant number (8) to next cell in column B.

    So I am looking for forumula to put in Sheet1 in column B.

    I was trying with vlookup function, but I can't wrap my head around it.

    Can you please help me with this?

    Thank you.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Need a table, which fills in numbers automatically depending on text in column

    Hi Hotsoup and welcome to the forum

    from the sounds of it, vlookup is indeed what you need to use. the syntax for vlookup is...
    =VLOOKUP(what-you-want-to-find,range-to-search-in,column-that-contains-the-match,FALSE) FALSE is for finding an exact match

    So your formula would look something like...
    =VLOOKUP(A1,Sheet2!$A$1:$B$3,2,FALSE)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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