+ Reply to Thread
Results 1 to 4 of 4

Vlookup functions

  1. #1
    Registered User
    Join Date
    12-16-2008
    Location
    india
    Posts
    4

    Smile Vlookup functions

    i know basic use of vlookup.

    but i need is .

    This is Sheet1

    A B

    arun 101

    bala 102

    raja 103


    this type.

    what i'm ask means.

    i have sheet2 only number for column A

    this is sheet2


    A B

    101

    102

    103


    i need name for b column.

    using vlookup.

    Not change column A for Sheet1

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Vlookup doesn't read right to left, it reads left to right, so you need something else.

    As long as the codes in column B are IN ORDER ascending, a simple LOOKUP will do the trick, but any out of order codes will result in an error.

    =LOOKUP(A1,Sheet1!B1:B3,Sheet1!A1:A3)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi there,

    Welcome to the forum.

    Assuming your dataset starts at row 2 - row 1 being for headings (change as required) the following left lookup on Sheet2 will do the trick (regardless of the order):

    =OFFSET(Sheet1!$B$2,MATCH(A2,Sheet1!$B$2:$B$4,0)-1,-1,1,1)

    HTH

    Robert

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Your post does not comply with Rule 5 of our Forum RULES. We have Seven question forums: Miscellaneous, General, Programming, Worksheet Functions, Charting, Excel 2007 Help and New Users. Please choose the appropriate forum, and post your question in ONLY one forum.
    Hope that helps.

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

    Free DataBaseForm example

+ 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