+ Reply to Thread
Results 1 to 3 of 3

Cell References in LOOKUP Function

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    Colorado Springs
    MS-Off Ver
    Excel 2007
    Posts
    2

    Cell References in LOOKUP Function

    Greetings,

    I could really use some help. I've been using the LOOKUP function to pull data from another sheet that contains a large amount of structured data produced by another application. See G1 in the attached example. The problem is that the lookup vector and result vector change often, and there are hundreds of these lookup vectors. I'm able to identify these vectors (columns A-D in the example), but I can't seem to figure out how to work them into the LOOKUP formula. I've played with INDIRECT and tried to use OFFSET but I must be doing something wrong.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Cell References in LOOKUP Function

    hi LaserSafety, welcome to the forum. i'm assuming your formula is right since you do not have any data in the file. try:
    =LOOKUP(F1,INDIRECT("'Sheet2'!"&A1&":"&B1),INDIRECT("'Sheet2'!"&C1&":"&D1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-29-2012
    Location
    Colorado Springs
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Cell References in LOOKUP Function

    Quote Originally Posted by benishiryo View Post
    hi LaserSafety, welcome to the forum. i'm assuming your formula is right since you do not have any data in the file. try:
    =LOOKUP(F1,INDIRECT("'Sheet2'!"&A1&":"&B1),INDIRECT("'Sheet2'!"&C1&":"&D1))
    benishiryo,

    Domo arigato! That formula worked great. Thanks again.

+ 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