+ Reply to Thread
Results 1 to 4 of 4

double lookup

  1. #1
    Registered User
    Join Date
    03-27-2009
    Location
    Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    1

    double lookup

    I have a file that I would like to lookup variable row and a variable column. I have tired vlookup and hlookup but these do not work because you have to specify a given column or row versus having that column or row be variable. Is there a way to do this.

    Think of a set of times tables. I would like to input 8 and 9 and get 72 as an output. How could I go about doing this?

    Or in the attached file, I would like to say A and 15 and get A15.
    Attached Files Attached Files
    Last edited by Damedron; 03-27-2009 at 04:51 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: double lookup

    Try:

    =INDEX($B$2:$J$16,MATCH(15,$A$2:$A$16,0),MATCH("A",$B$1:$J$1,0))

    replace the 15 and "A" with cell references containing those inputs, if desired.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-25-2009
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: double lookup

    You can also try "Offset". Say you have the column # in cell A1, and row # in cell A2. Your table is in the range "B4:G20". Then your formula in cell C1 would look something like:

    Please Login or Register  to view this content.
    Notice that offset is "0-based". So (0,0) would be B4. If you want it "1-based", you can write the formula using "A3" instead of "B4". Hope this helps.

    J.

  4. #4
    Registered User
    Join Date
    04-01-2008
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    85

    Re: double lookup

    I created these notes for a co-worker after watching a podcast a week or two ago that might be what you're looking for.

    Hope this helps,
    Cullen
    Attached Files Attached Files

+ 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