+ Reply to Thread
Results 1 to 7 of 7

Vlookup using skip column

  1. #1
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Vlookup using skip column

    I have two excel sheets. One is databank & second is list. Our data in databank sheet.

    sheet : databank
    column a is : name
    column b is : address1
    column b is : address2
    column c is : city
    column d is : district

    sheet : list

    column a is : name
    column b is : city
    column c is : district

    Now i want in list sheet : name match with city & district respectively relevent name.
    I m attaching file.
    Attached Files Attached Files
    Last edited by avk; 01-24-2010 at 04:40 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Vlookup using skip column

    Adjust range references as needed. See attached.

    =VLOOKUP($A2,DATABANK!$A$2:$E5,4,FALSE)
    Attached Files Attached Files
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Vlookup using skip column

    Or try this

    Enter this in B2 and Drag as far as Your Range

    =VLOOKUP($A2,DATABANK!$A$2:$E$5,COLUMN(D:D),FALSE)

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Vlookup using skip column

    Quote Originally Posted by Palmetto View Post
    Adjust range references as needed. See attached.

    =VLOOKUP($A2,DATABANK!$A$2:$E5,4,FALSE)
    It is ok if in both sheets name in common row & column.

    But if code in column A
    address is column c

    I want in c11 position : require "station inchage" we are trying but show like this #NA

    If it is possible let me know.
    Attached Files Attached Files

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup using skip column

    take a look at the VLOOKUP() function in help and try to understand how it works. Otherwise you'll be back here for each new cell you want to enter it into.

    VLOOKUP(<what>,<where>,<column>,<approximate>)

    =VLOOKUP($B11,DATABANK!$A$2:$C35,4,FALSE)

    what - the value that you want to lookup. In your formula you are not referring to the correct cell. You need A11, not B11
    where - the range of columns and rows that you want to look in. Your range is A2 to C35 on the Databank sheet.
    column - the column from which you want to return a result. Your formula specifies "4" but your "where" only has three columns. You need a 3 here.
    approximate - true or false, depending on whether you want an approximate result if an exact match is not found.

    This should give you some pointers towards the correct formula.

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Vlookup using skip column

    ok thanks. solved.
    Last edited by teylyn; 01-24-2010 at 04:47 PM. Reason: removed spurious quote

  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup using skip column

    please don't quote whole posts.

+ 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