+ Reply to Thread
Results 1 to 6 of 6

Using Indirect in VLookup

  1. #1
    Registered User
    Join Date
    12-21-2007
    Posts
    65

    Using Indirect in VLookup

    I want to use "Indirect" in my VLookup to give the starting range to search.

    I want to substitute, Indirect(E16) for $B$1 in the following formula.

    Any help would be greatly appreciated.
    Thank you.


    =IF(ISERROR(VLOOKUP($C$8,'Relativity Summary'!$B$1:$J$65536,9,FALSE)),"No More",VLOOKUP($C$8,'Relativity Summary'!$B$1:$J$65536,9,FALSE))


    Justine

  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,695

    Re: Using Indirect in VLookup

    Try it this way:

    =IF(ISERROR(VLOOKUP($C$8,INDIRECT("'Relativity Summary'!"&E16&":$J$65536"),9,FALSE)),"No More",VLOOKUP($C$8,INDIRECT("'Relativity Summary'!"&E16&":$J$65536"),9,FALSE))

    where it is assumed that E16 contains something that looks like a cell address, like B1, B15 etc. (no need for the $ symbols, as it is text).

    Hope this helps.

    Pete

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,729

    Re: Using Indirect in VLookup

    so to use in your formula

    =IF(ISERROR(VLOOKUP($C$8,indirect("'Relativity Summary'!"&E16&":$J$65536"),9,FALSE)),"No More",VLOOKUP($C$8,indirect("'Relativity Summary'!"&E16&":$J$65536"),9,FALSE))

  4. #4
    Registered User
    Join Date
    12-21-2007
    Posts
    65

    Re: Using Indirect in VLookup

    Thank you sooo much. It's perfect!!!

    Justine

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,729

    Re: Using Indirect in VLookup

    your welcome

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using Indirect in VLookup

    What version of Excel are you using?

    What type of data does the formula normally return? Is it TEXT? Numeric? Could be both? Something else?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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