+ Reply to Thread
Results 1 to 5 of 5

How to use Vlook up with end(xlup) ?

  1. #1
    Registered User
    Join Date
    12-19-2018
    Location
    Gurgaon
    MS-Off Ver
    11
    Posts
    9

    How to use Vlook up with end(xlup) ?

    I have 30 tabs.
    on first tab I have 29 rows with different values. I just need to use vlook function on 1st tab and look up values from each of the 29 tabs. In each of 29 worksheets, the table range shall be
    calculated as follows. First I need to go to g10000 and then use ctrl up ( to get to last g filled cell) and then ctrl shift up.
    How do I use this range in vlook up function. Please help

    Please Login or Register  to view this content.
    Last edited by AliGW; 08-19-2019 at 12:03 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: How to use Vlook up with end(xlup) ?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: How to use Vlook up with end(xlup) ?

    Add a last row:
    Please Login or Register  to view this content.
    But is unclear to me if you want to use the last row in the Vlookup or to autofill the formula untill last row. If first, then use entire columns and there is no need to specify the last row
    Click the * to say thanks.

  4. #4
    Registered User
    Join Date
    12-19-2018
    Location
    Gurgaon
    MS-Off Ver
    11
    Posts
    9

    Re: How to use Vlook up with end(xlup) ?

    Quote Originally Posted by PaulM100 View Post
    Add a last row:
    Please Login or Register  to view this content.
    But is unclear to me if you want to use the last row in the Vlookup or to autofill the formula untill last row. If first, then use entire columns and there is no need to specify the last row
    Well I have tables which are added to each of the tabs after every day. So I want to look up the data of only the last tables and not all the tables.

    Thanks for the code but it is saying giving an error that invalid or unqualified reference

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,601

    Re: How to use Vlook up with end(xlup) ?

    No: vloo = worksheetsfunction(vlookup(worksheets("sheet1").range("A1"), Range(Selection, Selection.End(xlUp).Offset(1, 0)).Select,1,2)

    Please Login or Register  to view this content.
    Last edited by protonLeah; 08-19-2019 at 03:36 PM.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. End(xlUp).Row (but more complicated)-HELP
    By kharding15 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2016, 02:22 PM
  2. [SOLVED] End method argument: If xlUp = -4162, why does End(xlUp) = End(3)?
    By joe31623 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-11-2016, 06:02 AM
  3. [SOLVED] End(xlUp)
    By m4nd4li4 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-17-2014, 09:33 PM
  4. Use of xlUp with SetValue_LastRowOffset
    By channel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2011, 04:45 PM
  5. about Shift:=xlUp
    By burugudug in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-26-2010, 10:10 AM
  6. End(xlUp)
    By chedges in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2009, 11:31 AM
  7. End(xlUp) code in VBA
    By excel26 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2008, 01:59 PM

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