+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 : vlookup to specific range

  1. #1
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    vlookup to specific range

    i have code here that lookup Sheet1 col.A[no specific range], the lookup matrix is in sheet2 col A:B [with specific range].

    heres the code

    Please Login or Register  to view this content.
    but my problem is how can i run this automatically and stop to where colA sheet1 has no value already.?

    *//blankcell must also equal to "blank"
    kindly see attachment.


    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: vlookup to specific range

    The formula stops at the last row of Column A

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vlookup to specific range

    Hi JieJenn

    its not working thou.


    Thanks.

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: vlookup to specific range

    My bad. You need to name the table in worksheet 2 as tbl

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vlookup to specific range

    thanks its working.
    btw can i add 1 column. i need to have a specific range to stop the lookup.

    let me say

    3 columns in sheet1
    in col A data is 1-15
    in col B data is 1-9[with data] 10-15[blank data], blank data is equal to blank.
    how can you manage to lookup all data in colum B. 1-15[no specific range].

    sheet2 [table matrix, still the same].

    Thanks.

  6. #6
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: vlookup to specific range

    Cells(Rows.Count, 1).End(xlUp).Row change 1 to 2

    2 means column # 2 which is B

  7. #7
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vlookup to specific range

    i will look up the all col B in sheet 1 and the answers in col C.

    how will i do that.

    thanks.

  8. #8
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vlookup to specific range

    Thanks JieJenn

    i already get it.

  9. #9
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vlookup to specific range

    Hi

    how can i look up if my table matrix is in the other server. using your code above.

    thanks.

  10. #10
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: vlookup to specific range

    change the table name to workbook reference. instead of table, you'll most likely doing a vlookup against workbookxyz!$A some number $G some number, col G #, 0)

  11. #11
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vlookup to specific range

    heres my code,

    Please Login or Register  to view this content.
    but it gives me error.


    Thanks.

+ 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