+ Reply to Thread
Results 1 to 3 of 3

Vlookup Formula with variable

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Vlookup Formula with variable

    Hello:

    I need a varaible to apply in Vlookup function.

    Assume I have J3 = 4

    I have formula in cell E3 = VLookup(C5,Data,XX,0)
    Here i need XX to be the value of J3 so formula needs to be like:

    =Vlookup(C5,Data,4,0)

    Please let me know if any questions.

    Riz

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Vlookup Formula with variable

    Try this:

    = VLookup(C5,Data,J3,0)

    although you might want to trap errors if there is no exact match, like this:

    =IFERROR(VLookup(C5,Data,J3,0),"")

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Vlookup Formula with variable

    Hello Pete:

    Seems to works, will do futher testing and let u know if any issues.
    Thanks a lot

    Riz

+ 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. [SOLVED] VLookUP Formula with variable
    By rizmomin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2016, 11:02 AM
  2. Vlookup Formula With 2 Variable To Check
    By astronotbumi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-23-2014, 10:06 AM
  3. [SOLVED] Add variable into VBA for a vlookup formula
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2014, 10:33 AM
  4. VLookup with Variable Column Formula
    By Nlich in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2014, 12:29 AM
  5. VBA Vlookup Formula not populating variable with answer
    By orozvik in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-15-2013, 01:01 PM
  6. Using Variable within Vlookup Formula
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2013, 12:04 PM
  7. [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

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