+ Reply to Thread
Results 1 to 2 of 2

Using Variable within Vlookup Formula

  1. #1
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Ventura, united States
    MS-Off Ver
    Excel 2010
    Posts
    346

    Using Variable within Vlookup Formula

    I'm trying to use a variable to represent a workbook in a Vlookup formula. While it is on the sheet I define the variable as the activeworkbook. Later in the macro, while in a different sheet, I'm trying to refer back to this sheet.

    The Vlookup equation looks like this:

    Please Login or Register  to view this content.
    I can't get this substitution to work. Any help?

    Please Login or Register  to view this content.
    I also tried this:


    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    09-22-2011
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003,2007, 2010
    Posts
    85

    Re: Using Variable within Vlookup Formula

    You might need to use the INDIRECT reference formula

+ 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. using a variable named range in a vlookup formula
    By Daniela1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-15-2013, 02:10 PM
  2. Macro to write Vlookup formula with variable column index
    By Ashali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2012, 09:40 PM
  3. Unable to get range variable to work in Vlookup formula
    By ZmeY in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2012, 11:28 PM
  4. Variable File Reference and Variable Table Array in VBA VLOOKUP
    By Gingeiko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2011, 11:08 PM
  5. [SOLVED] VLOOKUP Formula using variable for lookup_value
    By Los in RI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2005, 05:55 PM

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